/** * Get persistent URL vars * * @param string $action action to override Naf::currentAction() * @param bool $asHidden when set to TRUE, return value is a string containing HTML hiddent inputs list * @return array | string */ function getPersistent($action = null, $asHidden = false) { if ($asHidden) { $tmp = $this->_persistent; $tmp['ctrl'] = $action ? $action : Naf::currentAction(); $html = ""; foreach ($tmp as $name => $value) { if (is_scalar($value)) { $html .= '<input type="hidden" name="' . htmlspecialchars($name, ENT_QUOTES) . '" value="' . htmlspecialchars($value, ENT_QUOTES) . '" />'; } } return $html; } return $this->_persistent; }
/** * @return string */ function getView() { return null === $this->_view ? Naf::currentAction() : $this->_view; }