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); if ($this->session->getSessionId() == '') { $request->addParam('initSession', Gpf::YES); } $request->sendNow(); $data = $request->getData(); if (is_null($data->getValue($primaryKeyName))) { $data = null; } } return $data; }