/** * Sets the current Harmoni action. * @param string $action A dotted-pair action string. * @access public * @return void **/ function setCurrentAction($action) { ArgumentValidator::validate($action, DottedPairValidatorRule::getRule()); $this->_currentAction = $action; }
/** * Set a list of actions that require request tokens to prevent Cross-Site Request Forgery * attacks. All actions that could potentially change data should require this. * * Actions in this list will not be able to be loaded directly. * * @param array $actions An array of module.action strings. '*' wildcards are allowed. * @return void * @access public * @since 8/14/08 */ public function addRequestTokenRequiredActions($actions) { ArgumentValidator::validate($actions, ArrayValidatorRuleWithRule::getRule(DottedPairValidatorRule::getRule())); $this->_tokenRequiredActions = array_merge($this->_tokenRequiredActions, $actions); }