Get Data

Return phone data as an array, or
fetch a specific variable.

@param string $key Data key.
@return mixed Phone data. False on failure.
19084
public function get_data($key=null) {
		if (! $this->is_phone()) {
			return false;
		}

		if (\is_string($key)) {
			$key = \strtolower($key);
			return $this->phone[$key] ?? false;
		}

		return $this->phone;
	}
1092682
public function get($key = null)
    {
        $this->_prepareData($key);
        $data = null;

        if (is_null($key)) {
            $data = $this->_DATA;
        } elseif (array_key_exists($key, $this->_DATA)) {
            $data = $this->_DATA[$key];
        }

        if ($this->_getPreparationOn) {
            return $this->_dataPreparation($key, $data, $this->_dataRetrieveCallbacks);
        }
        return $data;
    }
810919
public function offsetGet($key)
    {
        if (! isset($this->data[$key]) or is_array($this->data[$key])) {
            return $this->getSubset($key);
        }
        return $this->data[$key];
    }
1345319
protected function get($key)
    {
        $this->checkForNonEmptyKey($key);
        if (!$this->requestDataHasBeenRetrieved) {
            $this->retrieveRequestData();
        }
        if (!isset($this->cachedRequestData[$key])) {
            return null;
        }

        return $this->cachedRequestData[$key];
    }
952230
public function do_get($key)
    {
        $context = $this->_context;

        if (isset($context->data[$key])) {
            if ($context->data[$key]['deadline'] >= time()) {
                return $context->data[$key]['data'];
            } else {
                unset($context->data[$key]);

                return false;
            }
        } else {
            return false;
        }
    }
1006253
public function get($key)
    {
        $key = is_array($key) ? $key : [$key];
        $config = $this->data;
        while ($key) {
            $k = array_shift($key);
            $config = isset($config[$k]) ? $config[$k] : [];
        }
        return $config;
    }
921278
public function get($key = null){
        if(null === $key){
            return array_merge($this->_data, $this->_dirty);
        }
        else{
            if(isset($this->_dirty[$key])){
                return $this->_dirty[$key];
            }
            elseif(isset($this->_data[$key])){
                return $this->_data[$key];
            }
            else{
                return null;
            }
        }
    }
88383
public function get($key)
    {
        if (is_null($this->data)) {
            $this->data = $this->table->getColumn($this->name)->toArray();
        }

        return $this->data[$key];
    }
400149
public function fetch($key, &$success = false)
	{
		if(!$this->exists($key)) {
			$success = false;
			return false;
		}

		// Get data and extract headers
		$data = file_get_contents($this->getPath($key));
		list($header, $var) = explode('|', $data, 2);

		// Detect if we need to unserialize this
		if($header == 1) {
			$var = unserialize($var);
		}

		return $var;
	}
406934
public function get(string $key): string
    {
        if (!isset($this->data[$key])) {
            $this->data[$key] = $key;
        }

        return $this->data[$key];
    }
1147284
protected function get(string $key, array $data = null)
    {
        /**
         * @var $loader mixed
         */
        $loader = $this->loader($key) ?: $data;

        if (null === $loader)
        {
            return true;
        }

        $mixed = [];

        if ($loader)
        {
            $mixed = $loader;

            if (\is_object($mixed))
            {
                $mixed = $loader->asArray();
            }
        }

        return $this->getLexemes($key, $mixed);
    }
912292
public function getDataset($key)
    {
        $data = $this->session->get(self::KEY);
        $set = isset($data[$key])
            ? $data[$key]
            : [];
        return $set;
    }
1245045
public function getDataAsArray($key = 'data')
    {
        $data = $this->getData();

        if (null === $data) {
            return array();
        }

        if (!is_array($data)) {
            $data = array($key => $data);
        }

        return $data;
    }
892686
public function get( $key )
	{
		if ( isset($this->postData[ $key ]) )
		{
			return $this->postData[ $key ];
		}
		else
		{
			return null;
		}
	}
1003953
public function getData($key = null)
	{
		if ($key !== null) {
			return array_key_exists($key, $this->data) ? $this->data[$key] : null;
		}

		return $this->data;
	}
897226
public function get($key)
    {
        $data = $this->getParsedBody();
        if (isset($data[$key])) {
            return $data[$key];
        }
    }
207397
function get($key)
    {
        if (!array_key_exists($key, $this->cache)) {
            return $this->read_record($key);
        }

        return $this->cache[$key];
    }