/** * * called by the request object to translate a string into a mask * * @param string $action the action to be resolved * * @return int the action mask corresponding to the input string * @access public * @static * */ function resolve($str) { $action = 0; if ($str) { $items = explode('|', $str); $action = CRM_Core_Action::map($items); } return $action; }