本文整理汇总了PHP中Ess_M2ePro_Model_Marketplace::getNativeId方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Model_Marketplace::getNativeId方法的具体用法?PHP Ess_M2ePro_Model_Marketplace::getNativeId怎么用?PHP Ess_M2ePro_Model_Marketplace::getNativeId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Model_Marketplace
的用法示例。
在下文中一共展示了Ess_M2ePro_Model_Marketplace::getNativeId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process
public function process()
{
if (!is_null($this->marketplace)) {
$this->requestExtraData['marketplace'] = $this->marketplace->getNativeId();
}
if (!is_null($this->account)) {
$this->requestExtraData['account'] = $this->account->getChildObject()->getServerHash();
}
if (!is_null($this->mode)) {
$this->requestExtraData['mode'] = $this->mode;
}
parent::process();
}
示例2: receiveFromAmazon
protected function receiveFromAmazon(Ess_M2ePro_Model_Marketplace $marketplace)
{
$categories = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processVirtual('marketplace', 'get', 'info', array('include_categories' => true, 'marketplace' => $marketplace->getNativeId()), 'info', NULL, NULL);
$categories = is_null($categories) ? array() : $categories['categories'];
$this->getActualOperationHistory()->addText('Total received categories from Amazon: ' . count($categories));
return $categories;
}
示例3: receiveFromAmazon
protected function receiveFromAmazon(Ess_M2ePro_Model_Marketplace $marketplace)
{
$details = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processVirtual('marketplace', 'get', 'info', array('include_details' => true, 'marketplace' => $marketplace->getNativeId()), 'info', NULL, NULL);
if (is_null($details)) {
return array();
}
$details['details']['last_update'] = $details['last_update'];
return $details['details'];
}
示例4: receiveFromAmazon
protected function receiveFromAmazon(Ess_M2ePro_Model_Marketplace $marketplace, $partNumber)
{
$response = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processVirtual('marketplace', 'get', 'specifics', array('part_number' => $partNumber, 'marketplace' => $marketplace->getNativeId()));
if (is_null($response) || empty($response['data'])) {
$response = array();
}
$dataCount = isset($response['data']) ? count($response['data']) : 0;
$this->getActualOperationHistory()->addText("Total received specifics from Amazon: {$dataCount}");
return $response;
}