示例#1
0
 protected function getActionObject() {
     $this->action = Pap_Features_PerformanceRewards_Action::create($this);
     return $this->action;
 }
示例#2
0
 private function createActionsRecordSet() {
     $recordset = new Gpf_Data_RecordSet();
     $recordset->setHeader(array('id', 'name'));
     
     foreach(Pap_Features_PerformanceRewards_Action::getAllActions() as $code) {
         try {
             $recordset->add(array((string)$code,
                 Pap_Features_PerformanceRewards_Action::toString($code)));
         } catch (Pap_Features_PerformanceRewards_UnknownRuleException $e) {}
     }
     return $recordset;
 }