Example #1
0
 /**
  * get list of all available log actions
  */
 function get_log_actions()
 {
     $log_count = LogEvent::countByActions();
     $actions = LogAction::findBySQL('1 ORDER BY name');
     $log_actions = array();
     foreach ($actions as $action) {
         $log_actions[$action->getId()] = $action->toArray();
         $log_actions[$action->getId()]['log_count'] = (int) $log_count[$action->getId()];
     }
     return $log_actions;
 }