本文整理汇总了PHP中Ess_M2ePro_Model_Listing_Product::getAccount方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Model_Listing_Product::getAccount方法的具体用法?PHP Ess_M2ePro_Model_Listing_Product::getAccount怎么用?PHP Ess_M2ePro_Model_Listing_Product::getAccount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Model_Listing_Product
的用法示例。
在下文中一共展示了Ess_M2ePro_Model_Listing_Product::getAccount方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: process
public function process()
{
$dispatcherObject = Mage::getModel('M2ePro/Connector_Amazon_Dispatcher');
$connectorObj = $dispatcherObject->getConnector('custom', $this->getSearchMethod(), 'requester', $this->getConnectorParams(), $this->listingProduct->getAccount(), 'Ess_M2ePro_Model_Amazon_Search');
$searchData = $dispatcherObject->process($connectorObj);
return $this->prepareResult($searchData);
}
示例2: __construct
public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Product $listingProduct)
{
if (!is_null($listingProduct->getActionConfigurator())) {
$actionConfigurator = $listingProduct->getActionConfigurator();
} else {
$actionConfigurator = Mage::getModel('M2ePro/Ebay_Listing_Product_Action_Configurator');
}
$this->listingProduct = $listingProduct->loadInstance($listingProduct->getId());
$this->listingProduct->setActionConfigurator($actionConfigurator);
parent::__construct($params, $this->listingProduct->getMarketplace(), $this->listingProduct->getAccount());
}
示例3: process
public function process(Ess_M2ePro_Model_Listing_Product $listingProduct, $query)
{
$searchMethod = 'byQuery';
$tempQuery = str_replace('-', '', $query);
if ($this->isQueryEan($tempQuery) || $this->isQueryIsbn($tempQuery)) {
$query = $tempQuery;
$searchMethod = 'byEanIsbn';
}
$params = array('query' => $query, 'type' => 'manual', 'listing_product_id' => $listingProduct->getId());
Mage::getModel('M2ePro/Connector_Play_Dispatcher')->processConnector('search', $searchMethod, 'requester', $params, $listingProduct->getAccount(), 'Ess_M2ePro_Model_Play');
$result = Mage::helper('M2ePro/Data_Global')->getValue('temp_play_manual_search_result');
Mage::helper('M2ePro/Data_Global')->unsetValue('temp_play_manual_search_result');
return $result;
}
示例4: process
public function process(Ess_M2ePro_Model_Listing_Product $listingProduct, $query)
{
$searchMethod = 'byQuery';
if ($this->isQueryGeneralId($query) || $this->isQueryUpc($query)) {
$searchMethod = 'byIdentifier';
}
$params = array('query' => $query, 'type' => 'manual', 'listing_product_id' => $listingProduct->getId());
if ($searchMethod == 'byIdentifier') {
$params['search_type'] = $this->getSearchType($query);
}
Mage::getModel('M2ePro/Connector_Buy_Dispatcher')->processConnector('search', $searchMethod, 'requester', $params, $listingProduct->getAccount(), 'Ess_M2ePro_Model_Buy');
$result = Mage::helper('M2ePro/Data_Global')->getValue('temp_buy_manual_search_result');
Mage::helper('M2ePro/Data_Global')->unsetValue('temp_buy_manual_search_result');
return $result;
}
示例5: process
public function process(Ess_M2ePro_Model_Listing_Product $listingProduct, $query)
{
$searchMethod = 'byQuery';
$validation = Mage::helper('M2ePro');
$tempQuery = str_replace('-', '', $query);
if (Mage::helper('M2ePro/Component_Amazon')->isASIN($tempQuery) || $validation->isISBN10($tempQuery)) {
$query = $tempQuery;
$searchMethod = 'byAsin';
} elseif ($validation->isEAN($tempQuery) || $validation->isUPC($tempQuery) || $validation->isISBN13($tempQuery)) {
$query = $tempQuery;
$searchMethod = 'byIdentifier';
}
$params = array('item' => $query, 'type' => 'manual', 'only_realtime' => true, 'search_method' => $searchMethod, 'listing_product_id' => $listingProduct->getId());
if ($searchMethod == 'byIdentifier') {
$params['id_type'] = $this->getIdentifierType($query);
}
Mage::getModel('M2ePro/Connector_Amazon_Dispatcher')->processConnector('search', $searchMethod, 'requester', $params, $listingProduct->getAccount(), 'Ess_M2ePro_Model_Amazon');
$result = Mage::helper('M2ePro/Data_Global')->getValue('temp_amazon_manual_search_result');
Mage::helper('M2ePro/Data_Global')->unsetValue('temp_amazon_manual_search_result');
return $result;
}
示例6: __construct
public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Product $listingProduct)
{
$this->listingProduct = $listingProduct;
parent::__construct($params, $this->listingProduct->getMarketplace(), $this->listingProduct->getAccount());
}