protected function getActionObject() { $this->action = Pap_Features_PerformanceRewards_Action::create($this); return $this->action; }
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; }