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


PHP Ess_M2ePro_Model_Listing_Other::getAccount方法代码示例

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


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

示例1: __construct

 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     $defaultParams = array('status_changer' => Ess_M2ePro_Model_Listing_Product::STATUS_CHANGER_UNKNOWN);
     $params = array_merge($defaultParams, $params);
     $this->otherListing = $otherListing;
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:7,代码来源:Abstract.php

示例2: __construct

 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     if (!is_null($otherListing->getActionConfigurator())) {
         $actionConfigurator = $otherListing->getActionConfigurator();
     } else {
         $actionConfigurator = Mage::getModel('M2ePro/Ebay_Listing_Other_Action_Configurator');
     }
     $this->otherListing = $otherListing->loadInstance($otherListing->getId());
     $this->otherListing->setActionConfigurator($actionConfigurator);
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:11,代码来源:Abstract.php

示例3: __construct

 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     $defaultParams = array('status_changer' => Ess_M2ePro_Model_Listing_Product::STATUS_CHANGER_UNKNOWN);
     $params = array_merge($defaultParams, $params);
     if (isset($params['logs_action_id'])) {
         $this->logsActionId = (int) $params['logs_action_id'];
         unset($params['logs_action_id']);
     } else {
         $this->logsActionId = Mage::getModel('M2ePro/Listing_Other_Log')->getNextActionId();
     }
     $this->otherListing = $otherListing;
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:13,代码来源:Abstract.php

示例4: addProductFromOther

 public function addProductFromOther(Ess_M2ePro_Model_Listing_Other $listingOtherProduct, $checkingMode = false, $checkHasProduct = true)
 {
     if (!$listingOtherProduct->getProductId()) {
         return false;
     }
     $productId = $listingOtherProduct->getProductId();
     $result = $this->getParentObject()->addProduct($productId, $checkingMode, true);
     if ($checkingMode) {
         return $result;
     }
     if (!$result instanceof Ess_M2ePro_Model_Listing_Product) {
         return false;
     }
     $listingProduct = $result;
     /** @var $collection Mage_Core_Model_Mysql4_Collection_Abstract */
     $collection = Mage::getModel('M2ePro/Ebay_Item')->getCollection()->addFieldToFilter('account_id', $listingOtherProduct->getAccount()->getId())->addFieldToFilter('item_id', $listingOtherProduct->getChildObject()->getItemId());
     $ebayItem = $collection->getFirstItem();
     $ebayItem->setData('store_id', $this->getParentObject()->getStoreId())->save();
     $dataForUpdate = array('ebay_item_id' => $ebayItem->getId(), 'online_sku' => $listingOtherProduct->getChildObject()->getSku(), 'online_title' => $listingOtherProduct->getChildObject()->getTitle(), 'online_buyitnow_price' => $listingOtherProduct->getChildObject()->getOnlinePrice(), 'online_qty' => $listingOtherProduct->getChildObject()->getOnlineQty(), 'online_qty_sold' => $listingOtherProduct->getChildObject()->getOnlineQtySold(), 'online_bids' => $listingOtherProduct->getChildObject()->getOnlineBids(), 'start_date' => $listingOtherProduct->getChildObject()->getStartDate(), 'end_date' => $listingOtherProduct->getChildObject()->getEndDate(), 'status' => $listingOtherProduct->getStatus(), 'status_changer' => $listingOtherProduct->getStatusChanger());
     $listingProduct->addData($dataForUpdate)->save();
     return $listingProduct;
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:22,代码来源:Listing.php

示例5: __construct

 public function __construct(array $params = array(), Ess_M2ePro_Model_Listing_Other $otherListing)
 {
     $this->otherListing = $otherListing;
     parent::__construct($params, $this->otherListing->getMarketplace(), $this->otherListing->getAccount(), NULL);
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:5,代码来源:Abstract.php


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