Get Entity Value

@param mixed $key Entity Key
@param null $default Default If Not Value/Key Exists

@return mixed|null
@throws exDataMalformed|exInvalidKey|exIOError
199263
function get($key, $default = null)
    {
        if ( $r = parent::get($key, $default) )
            return $r;


        $realm = $this->getRealm();

        try {

            $sql = "SELECT * FROM `KVStore` WHERE `realm` = '$realm' and `key` = '$key';";

            $stm = $this->pdo->prepare($sql);
            $stm->execute();
            $stm->setFetchMode(\PDO::FETCH_ASSOC);

            $document = $stm->fetch();

        } catch (\Exception $e) {
            throw new exReadError($e->getMessage(), $e->getCode(), $e);
        }

        $r = (false === $document)
            ? $default
            : $this->getDataInterchange()->retrieveBackward($document['value']);


        parent::set($key, $r);
        return $r;
    }
1000185
public function get(string $key, $default = null)
    {
        if ($this->has($key)) {
            return parent::get($key)['value'];
        }

        return $default;
    }
378534
public static function get($key=null,$default=null){
    return $key ? (filter_input(INPUT_GET,$key) ?: (is_callable($default)?call_user_func($default):$default)) : $_GET;
  }
974571
public function getValueByKey($key, $default = '', $class = null)
    {
        if (null === $class) {
            $class = $this->getEntityClass();
        }

        $result = $this->getDoctrine()->getRepository($class)->findOneBy(
            [
                'key' => $key,
            ]
        );

        if (null === $result) {
            return $default;
        }

        return $result->getValue();
    }
436284
public function get($key, $default = null)
    {
        if (array_key_exists($key, $this->params)) {
            return $this->params[$key];
        }

        return $default;
    }
193868
public function get(string $key, $default = null){
        $data   = $this->status() === self::ACTIVE
            ? $_SESSION : $this->finishedData;
        
        return array_key_exists($key, $data) ? $data[$key] : $default;
    }
656646
public function get($key, $default = null) {
        if (strpos($key, '.') === false) {
            $value = isset($this->_data[$key]) ? $this->_data[$key] : null;
        } else {
            $value = Hash::get($this->_data, $key);
        }

        if ($value === null) {
            return $default;
        }

        return $value;
    }
1349250
public function getParam($key, $default = null)
        {
            $key = (string) $key;
            if (isset($this->_params[$key])) {
                return $this->_params[$key];
            }

            return $default;
        }
872454
public function get($key, $default = null)
    {
        $values = $this->readFileContents();

        if ($this->has($key)) {
            return $values[$key][self::VALUE];
        }

        return $default;
    }
1038159
public function getValue($key, $default = null)
    {
        if (is_array($this->kwargs) && isset($this->kwargs[$key])) {
            return $this->kwargs[$key];
        }
        return $default; // @codeCoverageIgnore
    }
514138
public function getParameter($key, $default = null) {
        $value = $this->getUrl()->getQuery()->get($key);

        if ($value === null) {
            $value = $this->getData()->get($key, $default);
        }

        return $value;
    }
842033
public function get($key, $default = null) {
        $value = $this->memcached->get($key);

        if ($this->memcached->getResultCode() == 0) {
            return $value;
        }

        return $default;
    }
779022
public function & get($key = null, $default = null)
	{
		if (is_null($default) and func_num_args() === 1)
		{
			return $this->_view->get($key);
		}
		return $this->_view->get($key, $default);
	}
1165466
public function get($key, $default = null)
	{
		return is_array($this->response) ? \Arr::get($this->response, $key, $default) : $default;
	}
937668
public function get($key, $default = null)
    {
        $key = strtolower($key);

        if (!array_key_exists($key, $this->data)) {
            if (null === $default) {
                return null;
            }

            return $default;
        }

        return $this->data[$key];
    }
718822
public static function get($key, $default = null)
    {
        if (is_null($key)) {
            return $default;
        }

        return (isset($_GET[$key]) ? $_GET[$key] : $default);
    }
1347856
public function getObjects($key = null, $default = null)
    {
        $objData = $this->getObjData();

        return Util::getValueByKey($objData, $key, $default);
    }