@param string $name
@param bool|string $key

@return Record|null
347383
protected function checkForeignModelFromRequest($name, $key = false)
    {
        $requestKey = $this->getRequestKeyFromString($name);
        if ($this->getRequest()->attributes->has($requestKey) === false) {
            $this->initForeignModelFromRequest($name, $key);
        }

        return $this->getRequest()->attributes->get($requestKey);
    }
1053289
public function getField($name)
    {
        return $this->fields->has($name) ? $this->fields[$name] : null;
    }
923987
public function column(string $name, ?string $key = null): self
    {
        return new static(array_column($this->storage, $name, $key));
    }
556027
public static function findRecord($key)
    {
        $record = new static;

        list($namespace, $group, $item) = $record->parseKey($key);

        return $record
            ->applyKey($key)
            ->remember(5, implode('-', [$record->getTable(), $namespace, $group, $item]))
            ->first();
    }
334225
public function getIndexOf(string $name): int
    {
        if (array_key_exists($name, $this->record) == false) {
            return -1;
        }

        $keyArray = array_keys($this->record);

        return array_search($name, $keyArray);
    }
1357037
public function fromQuery(Builder $builder, string $name, string $key = null): self
    {
        $key = $key ?? $builder->getModel()->getKeyName();

        return $this->setFromEloquent($builder, $name, $key);
    }
1229217
public function getGet($name){

		//check if null param supplied and return the while GET array
		if($name === null){

			//return the whole array
			return $this->getInputData;

		}

		//check for named paramter
		elseif ($this->KeyExists($name, $this->getInputData)) {
			
			//return the value of this key
			return htmlentities($this->getInputData[$name], ENT_QUOTES);

		}

		//this key does not exists, return bool false
		else{

			//return bool false
			return false;

		}

	}
684977
public function parameter(string $name): ?string
    {
        if (isset($this->parameters[$name])) {
            return $this->parameters[$name];
        }

        return null;
    }
324833
public function get($key)
    {
        if (!$this->isEnabled()) {
            return null;
        }

        $value = $this->server->get($this->prefix . $key);

        return false === $value ? null : $value;
    }
320587
public function unregister($key, $name)
    {
        if (empty($key) || empty($name)) {
            throw new \common_Exception(__('Unregister method expects $key and $name parameters.'));
        }

        if (is_object($name)) {
            $name = get_class($name);
        }

        switch ($key) {
            case self::GUARDIAN_KEY:
                $this->unregisterInstance(self::GUARDIAN_KEY, $name);
                return true;
                break;
            case self::CLASS_LOOKUP_KEY:
                $this->unregisterInstance(self::CLASS_LOOKUP_KEY, $name);
                return true;
                break;
        }
        return parent::unregister($key, $name);
    }
1149318
public function get($key = false)
    {
        return isset($this->_config[$key]) ? $this->_config[$key] : null;
    }
788999
protected function getKeyId($name)
    {
        return isset($this->keyMap[$name]) ? $this->keyMap[$name]['id'] : null;
    }
1127230
public function getRecord($name = null)
    {
        $recordName = $name ?: $this->record;

        if ($recordName === false) {
            return new NullRecord();
        }

        $recordName = $recordName ?: $this->getName();

        $mapper = $this->getDataMapper($name);

        if ($mapper instanceof AbstractDatabaseMapperProxy) {
            $mapper = $mapper::getInstance();
        }

        // (1) If name is class, just new it.
        if (class_exists($recordName)) {
            return new $recordName($this->table, $this->keys, $mapper);
        }

        // (2): Find object from registered namespaces
        if ($record = RecordResolver::create($recordName, $this->table, $this->keys, $mapper)) {
            return $record;
        }

        $errors[] = sprintf(
            'Record: "%s" not found from namespaces: (%s)',
            $recordName,
            implode(" |\n ", RecordResolver::dumpNamespaces())
        );

        // (3): Find from package directory.
        $class = sprintf(
            '%s\Record\%sRecord',
            MvcHelper::getPackageNamespace(static::class, 2),
            ucfirst($recordName)
        );

        if (class_exists($class)) {
            return new $class($this->table, $this->keys, $mapper);
        }

        $errors[] = sprintf('Class: %s not exists.', $class);

        // If name is NULL and this model prepared a default record name.
        // We must throw exception to tell developers record not found.
        if (!$name && $this->record) {
            throw new \LogicException(implode("\n- ", $errors));
        }

        // If name not NULL, set it as table name, otherwise use pre-set table property.
        $table = $name ?: $this->table;

        if (!$table) {
            throw new \LogicException(
                'Please add table property to ' . get_called_class() . " to support Record object. \n" .
                implode("\n- ", $errors)
            );
        }

        // (4): If name is null, we get default object with table name provided.
        return new Record($table, $this->keys, $mapper);
    }
122487
public function getField($key)
    {
        $fields = $this->getFields();
        return (array_key_exists($key, $fields)) ? $fields[$key] : null;
    }
1273106
public function getSetting($name, $key = null)
	{
		if( isset($this->_settings[$name]) )
		{
			if($key)
			{
				if(isset($this->_settings[$name][$key]))
				{
					return $this->_settings[$name][$key];
				}
			}
			else
			{
				return $this->_settings[$name];
			}
		}
		return null;
	}
804598
public function getMetaByKey($name)
    {
        $criteria = Criteria::create();
        $criteria->where(Criteria::expr()->eq('key', $name));

        return $this->metas->matching($criteria);
    }
48926
protected function _getField($name)
    {
        return isset( $this->_response[$name] ) ? $this->_response[$name] : null;
    }