本文整理汇总了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;
}
示例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);
}
示例3: getRecordSet
/**
* @return Gpf_Data_RecordSet
*/
public function getRecordSet()
{
$response = new Gpf_Data_RecordSet();
$response->loadFromObject($this->getStdResponse());
return $response;
}
示例4: loadFromObject
public function loadFromObject(stdClass $object)
{
$this->recordset = new Gpf_Data_RecordSet();
$this->recordset->loadFromObject($object->rows);
$this->totalCount = $object->count;
}
示例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;
}
示例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);
}
示例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());
}