Esempio n. 1
0
 public function act_getActionByName($actionname, $groupid)
 {
     if (!preg_match("/^[a-z_]*\$/i", $actionname)) {
         self::$errCode = '5806';
         self::$errMsg = 'actionname is error';
         return array();
     }
     $actionsingle = ActionModel::getInstance();
     $filed = ' action_id,action_description,action_name,action_group_id,group_description,group_name,group_system_id';
     $where = " WHERE action_name='{$actionname}' AND action_group_id={$groupid}";
     $actioninfo = $actionsingle->getActionInfo($filed, $where);
     return $this->_checkReturnData($actioninfo, array());
 }