当前位置: 首页>>代码示例>>PHP>>正文


PHP Gpf_Data_RecordSet::loadFromObject方法代码示例

本文整理汇总了PHP中Gpf_Data_RecordSet::loadFromObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Gpf_Data_RecordSet::loadFromObject方法的具体用法?PHP Gpf_Data_RecordSet::loadFromObject怎么用?PHP Gpf_Data_RecordSet::loadFromObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gpf_Data_RecordSet的用法示例。


在下文中一共展示了Gpf_Data_RecordSet::loadFromObject方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadFromObject

 public function loadFromObject(stdClass $object)
 {
     $this->rows = new Gpf_Data_RecordSet();
     $this->rows->loadFromObject($object->rows);
     $this->count = $object->count;
     $this->from = $object->from;
     $this->to = $object->to;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:8,代码来源:Table.class.php

示例2: getAffectedAffiliatesList

    /**
     *
     * @return Gpf_DbEngine_Row_Collection
     */
    public function getAffectedAffiliatesList($filters = null) {
        if (is_null($filters)) {
            $filters = array();
            $filter = new Gpf_Data_Filter("reachedCondition", "E", Gpf::NO);
            $filters[] = $filter->toObject();
        }

        $params = new Gpf_Rpc_Params();
        $params->add('filters', $filters);
        $params->add('columns', array(array('id'),array('id')));
        $params->add('limit', 100000);

        $grid = new Pap_Features_CompressedCommissionPlacementModel_PlacementOverviewGrid();
        $response = $grid->getRows($params);

        $recordSet = new Gpf_Data_RecordSet();
        $recordSet->loadFromObject($response->rows);

        $user = new Pap_Db_User();

        return $user->loadCollectionFromRecordset($recordSet);
    }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:26,代码来源:Processor.class.php

示例3: getRecordSet

 /**
  * @return Gpf_Data_RecordSet
  */
 public function getRecordSet()
 {
     $response = new Gpf_Data_RecordSet();
     $response->loadFromObject($this->getStdResponse());
     return $response;
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:9,代码来源:PapApi.class.php

示例4: loadFromObject

 public function loadFromObject(stdClass $object)
 {
     $this->recordset = new Gpf_Data_RecordSet();
     $this->recordset->loadFromObject($object->rows);
     $this->totalCount = $object->count;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:6,代码来源:Grid.class.php

示例5: getIntegrationStepsList

 /**
  * Proxy request from server to Addons web server and return list of Integration steps
  * @service integration_methods read
  * @param Gpf_Rpc_Params $params
  * @return Gpf_Data_RecordSet
  */
 public function getIntegrationStepsList(Gpf_Rpc_Params $params) {
     $proxyRequest = new Gpf_Rpc_Request('Aw_Db_Table_IntegrationSteps', 'getIntegrationStepsList');
     $this->sendRequest($proxyRequest, $params);         
     
     $recordSet = new Gpf_Data_RecordSet();
     $recordSet->loadFromObject($proxyRequest->getResponseObject()->toObject());
     
     $this->processIntegrationSteps($recordSet);
     
     return $recordSet;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:17,代码来源:IntegrationMethods.class.php

示例6: makeRefundChargebackByParams

    /**
     *
     * @service transaction write
     * @return Gpf_Rpc_Action
     */
    public function makeRefundChargebackByParams(Gpf_Rpc_Params $params) {
        $transactionsGrid = new Pap_Merchants_Transaction_TransactionsGrid();
        $ransactionsResponse = $transactionsGrid->getRows($params);

        $transactionsRecordSet = new Gpf_Data_RecordSet();
        $transactionsRecordSet->loadFromObject($ransactionsResponse->rows);

        $ids = Array();
        foreach ($transactionsRecordSet as $transactionRrecord) {
            $ids[] = $transactionRrecord->get(Pap_Db_Table_Transactions::TRANSACTION_ID);
        }

        $refundParams = new Gpf_Rpc_Params();
        $refundParams->add(Gpf_Rpc_Action::IDS, $ids);
        $refundParams->add(self::REFUND_MERCHANT_NOTE, $params->get(self::REFUND_MERCHANT_NOTE));
        $refundParams->add(self::REFUND_TYPE, $params->get(self::REFUND_TYPE));
        $refundParams->add(self::REFUND_FEE, $params->get(self::REFUND_FEE));
        return $this->makeRefundChargeback($refundParams);
    }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:24,代码来源:TransactionsForm.class.php

示例7: getBanners

 public function getBanners(Gpf_Data_RecordSet $recordSet) {
     $result = $recordSet->toShalowRecordSet();
     foreach ($recordSet as $record) {
         try {
             try {
                 Pap_Db_Table_UserInCommissionGroup::getStatus($record->get('campaignid'), Gpf_Session::getAuthUser()->getPapUserId());
             } catch (Gpf_DbEngine_NoRowException $e) {
                 if ($record->get('ctype') == Pap_Db_Campaign::CAMPAIGN_TYPE_ON_INVITATION) {
                     throw new Gpf_Exception($this->_('Private campaign'));
                 }
             }
             $result->addRecord($record);
         } catch (Gpf_Exception $e) {
         }
     }
     $recordSet->clear();
     $recordSet->loadFromObject($result->toObject());
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:18,代码来源:Main.class.php


注:本文中的Gpf_Data_RecordSet::loadFromObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。