Example #1
0
 private function actionList()
 {
     //Add Action Table Data
     $actions = array('1' => 'View', '2' => 'Add', '3' => 'Update', '4' => 'Delete', '5' => 'Approver', '6' => 'Verifier');
     foreach ($actions as $key => $value) {
         Action::create(array('action_id' => $key, 'action_name' => $value, 'action_value' => pow(2, $key - 1)));
     }
 }
Example #2
0
 public static function getMaxAction()
 {
     return Action::sum('action_value');
 }