/** * A callback function to populate the namedArgs array if activated * This should be triggered in the beforeFilter * @return TRUE always * **/ function getNamedArgs() { if ($this->namedArgs) { $this->namedArgs = array(); if (!empty($this->params['pass'])) { foreach ($this->params['pass'] as $param) { if (strpos($param, $this->argSeparator)) { list($name, $val) = split( this->argSeparator, $param ); $this->namedArgs[$name] = $val; } } } } return TRUE; }