Access the pagination args.

@param  string $key
@return array
177418
public function get_pagination_arg($key)
    {
        if ('page' == $key) {
            return $this->get_pagenum();
        }

        if (isset($this->pagination_args[$key])) {
            return $this->pagination_args[$key];
        }
    }
1071433
public function get_argument( $key ) {
		if ( $this->has_argument( $key ) ) {
			return $this->arguments[ $key ];
		}

		throw new \InvalidArgumentException( sprintf( 'Argument "%s" not found.', $key ) );
	}
1374996
private function searchPageByRequestKey($key)
	{
		$pageId = $this->getRequestParameter($key);

		if (empty($pageId)) {
			return null;
		}

		return $this->getEntityManager()
				->find(AbstractPage::CN(), $pageId);
	}
1135656
private function tokenizeKey($key)
    {
        $containerName = $this->containerName;
        if (false === $this->multiContainerMode) {
            return [$containerName, $key];
        }

        if (false === ($index = strpos($key, '/'))) {
            throw new \InvalidArgumentException(sprintf(
                'Failed to establish container name from key "%s", container name is required in multi-container mode',
                $key
            ));
        }
        $containerName = substr($key, 0, $index);
        $key = substr($key, $index + 1);

        return [$containerName, $key];
    }
1293952
public function getParameter($key)
    {
        $key = strtoupper($key);

        if (! isset($this->upperParameters[$key])) {
            throw new \InvalidArgumentException('Parameter ' . $key . ' does not exist.');
        }

        return $this->upperParameters[$key];
    }
164039
public function getArray($key)
	{
		$this->validateKey($key);
		return $this->has($key) ? $this->params[$key] : [];
	}
268271
protected function getSuccessResponseHeaders($key)
    {
        return [
            self::HEADER_UPGRADE => self::UPGRADE_VALUE,
            self::HEADER_CONNECTION => self::CONNECTION_VALUE,
            self::HEADER_ACCEPT => $this->getAcceptValue($key),
        ];
    }
1214596
public function keys(?string $key = null) : array
    {
        $value = $this->get($key);

        if (!is_array($value)) {
            throw new InvalidArgumentException(
                'method keys() should be called on array'
            );
        }

        return array_keys($value);
    }
1313576
public function getParam($key)
    {
        if (array_key_exists($key, $this->params)) {
            return $this->params[$key];
        }

        throw new RuntimeException(sprintf('Parameter with key "%s" is not found.', $key));
    }
1360835
public function args($key = array())
    {
        if (is_array($key)) {
            $args = array();
            if (!empty($key)) {
                foreach ($key as $k) $args[$k] = $this->args($k);
            } else {
                $args = $this->arguments;
            }
            return $args;
        } elseif (is_string($key) && !empty($key)) {
            return $this->$key;
        } else {
            return null;
        }
    }
1364046
public function getArgument($key)
    {
        if (! array_key_exists($key, $this->arguments)) {
            throw new ErrorException('Undefined index: '.$key);
        }

        return $this->arguments[$key];
    }
496970
public function getArgs($key = NULL)
    {
        if (NULL === $key) {
            return $this->args;
        }

        if (!isset($this->args[$key])) {
            return;
        }

        return $this->args[$key];
    }
829970
static public function findCurrentPage($key='page') {
        $f3 = \Base::instance();
        return $f3->exists('PARAMS.'.$key) ?
            preg_replace("/[^0-9]/", "", $f3->get('PARAMS.'.$key)) : 1;
    }
423902
public function mode($key = null): ?array
    {
        /** @var array $result */
        $result = $this->reduce(function ($carry, $value, $valueKey) use ($key) {
            $item = $value;

            if ($key) {
                $item = $this->accessKey($value, $key, $valueKey);
            }

            if (!isset($carry[$item])) {
                $carry[$item] = 0;
            }

            $carry[$item]++;
            return $carry;
        }, []);

        if (!count($result)) {
            return null;
        }

        arsort($result);

        $output = [];
        $highestCount = 0;

        foreach ($result as $itemKey => $count) {
            if (!$highestCount) {
                $highestCount = $count;
            }

            if ($highestCount !== $count) {
                break;
            }

            $output[] = $itemKey;
        }

        return $output;
    }
936462
protected function dig($key)
    {
        return Query::from(static::$table)
            ->select('*')
            ->where($this->_keyName, '=', $key)
            ->get(Query::GET_ARRAY);
    }
1147104
protected static function getTemplatesByKey($key)
    {
        $templates = [];
        $scheme = PhpSms::scheme();
        $config = PhpSms::config();
        foreach (array_keys($scheme) as $name) {
            if (isset($config[$name][$key])) {
                $templates[$name] = $config[$name][$key];
            }
        }

        return $templates;
    }
1351980
function get($key,$args=NULL) {
		if (is_string($val=$this->ref($key,FALSE)) && !is_null($args))
			return call_user_func_array(
				array($this,'format'),
				array_merge(array($val),is_array($args)?$args:array($args))
			);
		if (is_null($val)) {
			// Attempt to retrieve from cache
			if (Cache::instance()->exists($this->hash($key).'.var',$data))
				return $data;
		}
		return $val;
	}