/** * @service campaign read * @return Gpf_Data_RecordSet */ public function getRow(Gpf_Rpc_Params $params) { if (!Pap_Db_Table_CommissionTypes::isSpecialType($params->get(self::SEARCH))) { return $this->getRowFromDB($params->get(self::SEARCH), $params->get('campaignid')); } return $this->getRowFromSpecialTypes($params->get(self::SEARCH)); }
protected function isMultiTierTransaction(Gpf_Rpc_Form $form) { try { $commTypeId = $form->getFieldValue(Pap_Db_Table_Transactions::COMMISSIONTYPEID); $rtype = $this->getCommType($commTypeId)->getType(); } catch (Gpf_Data_RecordSetNoRowException $e) { $rtype = $this->getRTypeFromForm($form); } catch (Gpf_DbEngine_NoRowException $e) { $rtype = $this->getRTypeFromForm($form); } if (Pap_Db_Table_CommissionTypes::isSpecialType($rtype)) { return false; } if ($form->getFieldValue('multiTier') != Gpf::YES) { return false; } return true; }