Example #1
0
 public function findRuleList($userId, $actions = null)
 {
     $out = array();
     $list = $this->ruleDao->findRuleList($userId, $actions);
     foreach ($list as $item) {
         $out[$item->action] = $item;
     }
     return $out;
 }