本文整理汇总了PHP中Mage_Core_Model_Abstract::getIsMassStatus方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Abstract::getIsMassStatus方法的具体用法?PHP Mage_Core_Model_Abstract::getIsMassStatus怎么用?PHP Mage_Core_Model_Abstract::getIsMassStatus使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Abstract
的用法示例。
在下文中一共展示了Mage_Core_Model_Abstract::getIsMassStatus方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterSave
/**
* Call-back function
*/
protected function _afterSave(Mage_Core_Model_Abstract $object)
{
if (!$object->getIsMassStatus()) {
$this->_saveToStoreTable($object);
}
return parent::_afterSave($object);
}
示例2: _afterSave
protected function _afterSave(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Status $object */
if (!$object->getIsMassStatus()) {
}
return parent::_afterSave($object);
}
示例3: _afterSave
protected function _afterSave(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Permission $object */
if (!$object->getIsMassStatus()) {
$this->saveDepartmentIds($object);
}
return parent::_afterSave($object);
}
示例4: _afterSave
protected function _afterSave(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Template $object */
if (!$object->getIsMassStatus()) {
$this->saveStoreIds($object);
}
return parent::_afterSave($object);
}
示例5: _afterSave
protected function _afterSave(Mage_Core_Model_Abstract $object)
{
/** @var Mirasvit_Helpdesk_Model_Email $object */
if (!$object->getIsMassStatus()) {
}
if ($object->getAttachmentMessageId()) {
$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$query = "UPDATE {$resource->getTableName('helpdesk/attachment')} SET message_id = '{$object->getAttachmentMessageId()}' WHERE email_id = {$object->getId()}";
$writeConnection->query($query);
}
return parent::_afterSave($object);
}
示例6: _afterSave
protected function _afterSave(Mage_Core_Model_Abstract $object)
{
if (!$object->getIsMassStatus()) {
if ($object->getPath() == '/') {
$object->setPath($object->getId());
$this->_savePath($object);
} elseif (substr($object->getPath(), -1) == '/') {
$object->setPath($object->getPath() . $object->getId());
$this->_savePath($object);
}
$this->_saveStore($object);
}
return parent::_afterSave($object);
}
示例7: _beforeSave
/**
* Before save.
*
* @param Mirasvit_FeedExport_Model_Feed $object
*
* @return $this
*/
protected function _beforeSave(Mage_Core_Model_Abstract $object)
{
if ($object->isObjectNew() && !$object->hasCreatedAt()) {
$object->setCreatedAt(Mage::getSingleton('core/date')->gmtDate());
}
$object->setUpdatedAt(Mage::getSingleton('core/date')->gmtDate());
if (!$object->getIsMassStatus()) {
Mage::helper('feedexport/format')->preparePostData($object);
if (is_array($object->getCronDay())) {
$object->setCronDay(implode(',', $object->getCronDay()));
}
if (is_array($object->getCronTime())) {
$object->setCronTime(implode(',', $object->getCronTime()));
}
if (is_array($object->getNotificationEvents())) {
$object->setNotificationEvents(implode(',', $object->getNotificationEvents()));
}
}
$this->saveRules($object);
return parent::_beforeSave($object);
}