private function getData(&$data, $method, $primaryKeyName) { if ($this->visitorId == '') { return null; } if ($data === self::NOT_LOADED_YET) { $request = new Gpf_Rpc_DataRequest('Pap_Tracking_Visit_SingleVisitorProcessor', $method, $this->session); $request->addParam('visitorId', $this->visitorId); $request->addParam('accountId', $this->accountId); $request->sendNow(); $data = $request->getData(); if (is_null($data->getValue($primaryKeyName))) { $data = null; } } return $data; }
public function createCommissionsReturnIds() { $request = new Gpf_Rpc_DataRequest('Pap_Features_RecurringCommissions_RecurringCommissionsForm', 'createCommissionsReturnIds', $this->getSession()); $request->addParam('id', $this->getId()); $request->addParam('orderid', $this->getField('orderid')); $request->addParam('totalcost', $this->getField('totalcost')); if ($this->getSession()->getSessionId() == '') { $request->addParam('initSession', Gpf::YES); } $request->sendNow(); return $request->getData()->getValue(Gpf_Rpc_Action::IDS); }