本文整理汇总了PHP中Ess_M2ePro_Model_Listing_Product::deleteObjectLocks方法的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Model_Listing_Product::deleteObjectLocks方法的具体用法?PHP Ess_M2ePro_Model_Listing_Product::deleteObjectLocks怎么用?PHP Ess_M2ePro_Model_Listing_Product::deleteObjectLocks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Ess_M2ePro_Model_Listing_Product
的用法示例。
在下文中一共展示了Ess_M2ePro_Model_Listing_Product::deleteObjectLocks方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unsetLocks
public function unsetLocks($hash, $fail = false, $message = NULL)
{
if (!$this->unsetProcessingLock) {
return;
}
$this->listingProduct->deleteObjectLocks(NULL, $hash);
$this->listingProduct->deleteObjectLocks('in_action', $hash);
$this->listingProduct->deleteObjectLocks('search_action', $hash);
$this->listingProduct->getListing()->deleteObjectLocks(NULL, $hash);
$this->listingProduct->getListing()->deleteObjectLocks('products_in_action', $hash);
$this->listingProduct->getListing()->deleteObjectLocks('products_search_action', $hash);
$this->getAccount()->deleteObjectLocks('products_in_action', $hash);
$this->getAccount()->deleteObjectLocks('products_search_action', $hash);
$this->getMarketplace()->deleteObjectLocks('products_in_action', $hash);
$this->getMarketplace()->deleteObjectLocks('products_search_action', $hash);
$processingStatus = Ess_M2ePro_Model_Amazon_Listing_Product::GENERAL_ID_SEARCH_STATUS_NONE;
$this->listingProduct->getChildObject()->setData('general_id_search_status', $processingStatus)->save();
if ($fail) {
$logModel = Mage::getModel('M2ePro/Listing_Log');
$logModel->setComponentMode(Ess_M2ePro_Helper_Component_Amazon::NICK);
$logModel->addListingMessage($this->listingProduct->getListingId(), Ess_M2ePro_Model_Log_Abstract::INITIATOR_UNKNOWN, NULL, Ess_M2ePro_Model_Listing_Log::ACTION_UNKNOWN, $message, Ess_M2ePro_Model_Log_Abstract::TYPE_ERROR, Ess_M2ePro_Model_Log_Abstract::PRIORITY_HIGH);
}
}