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


PHP Mage_Core_Model_Mysql4_Abstract::_afterLoad方法代码示例

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


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

示例1: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     /** @var  Mirasvit_Helpdesk_Model_Status $object */
     if (!$object->getIsMassDelete()) {
     }
     return parent::_afterLoad($object);
 }
开发者ID:cesarfelip3,项目名称:clevermage_new,代码行数:7,代码来源:Status.php

示例2: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     if (!$object->getIsMassDelete()) {
         $object = $this->loadStore($object);
     }
     return parent::_afterLoad($object);
 }
开发者ID:technomagegithub,项目名称:olgo.nl,代码行数:7,代码来源:Rewrite.php

示例3: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     parent::_afterLoad($object);
     $id = $object->getId();
     if (!$id) {
         return;
     }
     $read = $this->_getReadAdapter();
     $table = $this->getTable('udropship/shipping_website');
     $select = $read->select()->from($table)->where($table . '.shipping_id=?', $id);
     if ($result = $read->fetchAll($select)) {
         foreach ($result as $row) {
             $websites = $object->getWebsiteIds();
             if (!$websites) {
                 $websites = array();
             }
             $websites[] = $row['website_id'];
             $object->setWebsiteIds($websites);
         }
     }
     $table = $this->getTable('udropship/shipping_method');
     $select = $read->select()->from($table)->where($table . '.shipping_id=?', $id);
     if ($result = $read->fetchAll($select)) {
         foreach ($result as $row) {
             $methods = $object->getSystemMethods();
             if (!$methods) {
                 $methods = array();
             }
             $methods[$row['carrier_code']] = $row['method_code'];
             $object->setSystemMethods($methods);
         }
     }
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:33,代码来源:Shipping.php

示例4: _afterLoad

 /**
  *
  * @param Mage_Core_Model_Abstract $object
  */
 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     //if (!$object->getIsMassDelete()) {
     //     $object = $this->__loadImage($object);
     // }
     return parent::_afterLoad($object);
 }
开发者ID:amal-nibaya,项目名称:PB-BEERSHOP,代码行数:11,代码来源:Banner.php

示例5: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     if ($object->getData('mapping_serialized')) {
         $object->setMapping(unserialize($object->getData('mapping_serialized')));
     }
     return parent::_afterLoad($object);
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:7,代码来源:Category.php

示例6: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     if ($object->getId()) {
         $stores = $this->listStoreIds($object->getId());
         $object->setData('store_id', $stores);
     }
     return parent::_afterLoad($object);
 }
开发者ID:ankita-parashar,项目名称:magento,代码行数:8,代码来源:Magebuzz_Multipleorderemail_Model_Mysql4_Multipleorderemailrule.php

示例7: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     /** @var  Mirasvit_Helpdesk_Model_Permission $object */
     if (!$object->getIsMassDelete()) {
         $this->loadDepartmentIds($object);
     }
     return parent::_afterLoad($object);
 }
开发者ID:cesarfelip3,项目名称:clevermage_new,代码行数:8,代码来源:Mirasvit_Helpdesk_Model_Resource_Permission.php

示例8: _afterLoad

 /**
  * Perform operations after object load
  *
  * @param Mage_Core_Model_Abstract $object
  * @return Creativestyle_CheckoutByAmazon_Model_Mysql4_Log_Abstract
  */
 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     if ($object->getId()) {
         $orders = $this->lookupOrderIds($object->getId());
         $object->setData('order_id', $orders);
     }
     return parent::_afterLoad($object);
 }
开发者ID:jronatay,项目名称:ultimo-magento-jron,代码行数:14,代码来源:Abstract.php

示例9: _afterLoad

 /**
  * @param Mirasvit_FeedExport_Model_Feed $object
  *
  * @return $this
  */
 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     Mage::helper('feedexport/format')->expandFormat($object);
     $object->setCronDay(explode(',', $object->getCronDay()));
     $object->setCronTime(explode(',', $object->getCronTime()));
     $this->loadRules($object);
     return parent::_afterLoad($object);
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:13,代码来源:Feed.php

示例10: _afterLoad

 public function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     $connection = $this->_getReadAdapter();
     $select = $connection->select()->from($this->getMainTable(), array('store_id', 'translate'))->where('string=:translate_string');
     $translations = $connection->fetchPairs($select, array('translate_string' => $object->getString()));
     $object->setStoreTranslations($translations);
     return parent::_afterLoad($object);
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:8,代码来源:String.php

示例11: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     /** @var  Mirasvit_Helpdesk_Model_Template $object */
     if (!$object->getIsMassDelete()) {
         $this->loadStoreIds($object);
     }
     return parent::_afterLoad($object);
 }
开发者ID:cesarfelip3,项目名称:clevermage_new,代码行数:8,代码来源:Template.php

示例12: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     if ($object->getStoreIds()) {
         $object->setStoreIds(explode(',', $object->getStoreIds()));
     } else {
         $object->setStoreIds(array(0));
     }
     return parent::_afterLoad($object);
 }
开发者ID:ashfaqphplhr,项目名称:artificiallawnsforturf,代码行数:9,代码来源:Trigger.php

示例13: _afterLoad

 /**
  * @param Mage_Core_Model_Abstract $object
  *
  * @return $this|Mage_Core_Model_Resource_Db_Abstract
  */
 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     if (strlen($object->getStoreIds()) > 0) {
         $object->setStoreIds(array_map('intval', explode(',', $object->getStoreIds())));
     } else {
         $object->setStoreIds(array());
     }
     return parent::_afterLoad($object);
 }
开发者ID:protechhelp,项目名称:gamamba,代码行数:14,代码来源:Department.php

示例14: _afterLoad

 public function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     parent::_afterLoad($object);
     $read = $this->_getReadAdapter();
     if ($read) {
         $tags = $read->fetchCol('select tag from ' . $this->_tagTable . ' where url_rewrite_id=?', $object->getId());
         $object->setTags($tags ? $tags : array());
     }
     return $this;
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:10,代码来源:Rewrite.php

示例15: _afterLoad

 protected function _afterLoad(Mage_Core_Model_Abstract $object)
 {
     /** @var  Mirasvit_Helpdesk_Model_Ticket $object */
     if (!$object->getIsMassDelete()) {
         $this->loadTagIds($object);
     }
     if (is_string($object->getChannelData())) {
         $object->setChannelData(@unserialize($object->getChannelData()));
     }
     return parent::_afterLoad($object);
 }
开发者ID:cesarfelip3,项目名称:clevermage_new,代码行数:11,代码来源:Ticket.php


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