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;
        }
    }
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;
        }
    }
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 ; } }
Get one or more arguments from the request.

An empty array will return all arguments.

@param array|string $key The argument key or an array of argument keys.

@return array|mixed|null The value or an array of values for the requested
argument(s).
Get one or more arguments from the request .