示例#1
0
 /**
  * Given a string or an array of strings, determine the bitmask
  * for this set of actions
  *
  * @param mixed either a single string or an array of strings
  *
  * @return int the action mask corresponding to the input args
  * @access public
  * @static
  *
  */
 function map($item)
 {
     $mask = 0;
     if (is_array($item)) {
         foreach ($item as $it) {
             $mask |= CRM_Core_Action::mapItem($it);
         }
         return $mask;
     } else {
         return CRM_Core_Action::mapItem($item);
     }
 }