/** * @service affiliate_email_notification read * @param $fields */ public function load(Gpf_Rpc_Params $params) { $form = new Gpf_Rpc_Form($params); $this->attribute = Gpf_Db_Table_UserAttributes::getInstance(); $this->attribute->loadAttributes(Gpf_Session::getAuthUser()->getAccountUserId()); $data = new Gpf_Db_UserAttribute(); $data->setAccountUserId(Gpf_Session::getAuthUser()->getUserId()); $data->setName('RecipientsList'); try { $data->loadFromData(array(Gpf_Db_Table_UserAttributes::ACCOUNT_USER_ID,Gpf_Db_Table_UserAttributes::NAME)); $form->setField("recipients",$data->getValue()); } catch(Gpf_DbEngine_NoRowException $e) { $form->setField("recipients",""); } $form->setField('affEmail',Gpf_Session::getAuthUser()->getUsername()); return $form; }