/** * @anonym * @service direct_link read */ public function getAffiliateId(Pap_Contexts_Click $context, Gpf_Rpc_Params $params) { $data = new Gpf_Rpc_Data($params); $context = new Pap_Contexts_Click(); $context->getRequestObject()->setRequestParameter( Pap_Tracking_Request::PARAM_REFERRERURL_NAME, $params->get('url')); $match = $this->getMatch($context); if ($match != null) { foreach ($match as $key => $value) { $data->setValue($key, $value); } } return $data; }