/** * @service banner_format_setting read * @return Gpf_Data_RecordSet */ public function loadWrapperNames(Gpf_Rpc_Params $params) { $row = new Pap_Db_BannerWrapper(); $collection = $row->loadCollection(); $result = new Gpf_Data_RecordSet(); $result->setHeader(array('id', 'name')); foreach ($collection as $row){ $result->add(array($row->getId(), $row->getName())); } return $result; }