get() public method

public get ( $i ) : Gpf_Data_Record
return Gpf_Data_Record
    /**
     * @service banner write
     * @param Gpf_Rpc_Params $params
     */
    public function saveFields(Gpf_Rpc_Params $params) {
        $result = parent::saveFields($params);

        $action = new Gpf_Rpc_Action($params);
        $fields = new Gpf_Data_RecordSet();
        $fields->loadFromArray($action->getParam("fields"));
        $field = $fields->get(0);


        $bannerInRotator = new Pap_Db_BannerInRotator();
        $bannerInRotator->setId($field->get('id'));
        $bannerInRotator->load();
        
        try {
            $this->removeRotatorFromCache($bannerInRotator->getParentBannerId());
        } catch (Gpf_Exception $e) {}
        return $result;
    }