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


PHP Mage_Core_Model_Abstract::_afterLoad方法代码示例

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


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

示例1: _afterLoad

 protected function _afterLoad()
 {
     if (is_string($this->getCategoryIds())) {
         $this->setCategoryIds(explode(',', $this->getCategoryIds()));
     }
     return parent::_afterLoad();
 }
开发者ID:bigtailbear14,项目名称:rosstheme,代码行数:7,代码来源:Widget.php

示例2: _afterLoad

 protected function _afterLoad()
 {
     parent::_afterLoad();
     if (!is_null($this->getCustomerGroup())) {
         $this->setCustomerGroupIds(explode(',', $this->getCustomerGroup()));
     }
 }
开发者ID:praxigento,项目名称:mage_app_prxgt_store,代码行数:7,代码来源:Zblocks.php

示例3: _afterLoad

 /**
  * Processing object after load data
  *
  * @return Maverick_Crawler_Model_Crawler
  */
 protected function _afterLoad()
 {
     if ($type = $this->getType()) {
         Mage::dispatchEvent($type . '_load_after', $this->_getEventData());
     }
     return parent::_afterLoad();
 }
开发者ID:JoniRambro,项目名称:magento-full-page-cache-crawler,代码行数:12,代码来源:Crawler.php

示例4: _afterLoad

 protected function _afterLoad()
 {
     parent::_afterLoad();
     //        if (!$this->getTaxPostcode()) {
     //            $this->setTaxPostcode('*');
     //        }
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:7,代码来源:Rate.php

示例5: _afterLoad

 protected function _afterLoad()
 {
     parent::_afterLoad();
     Mage::getSingleton('oscommerce/config')->initForeignConnection($this->getData());
     //		if (Mage::app()->getRequest()->getActionName() == 'run') {
     //			$this->importStores();
     //		}
 }
开发者ID:vinayshuklasourcefuse,项目名称:sareez,代码行数:8,代码来源:Mage_Oscommerce_Model_Oscommerce.php

示例6: _afterLoad

 /**
  * Decrypts encrypted details once they are loaded from DB
  *
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     foreach (array('username', 'password') as $field) {
         $this->setData($field, $this->decrypt($this->getData($field)));
     }
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:12,代码来源:User.php

示例7: _afterLoad

 protected function _afterLoad()
 {
     if ($this->getData('unsubscribed_customers') !== null && is_string($this->getData('unsubscribed_customers'))) {
         $this->setData('unsubscribed_customers', explode(',', $this->getData('unsubscribed_customers')));
     } else {
         $this->setData('unsubscribed_customers', array());
     }
     return parent::_afterLoad();
 }
开发者ID:ngagestudios,项目名称:emailreminders,代码行数:9,代码来源:Rule.php

示例8: _afterLoad

 protected function _afterLoad()
 {
     if (is_null($storeIds = $this->getCategoryStoreIds())) {
         $this->setCategoryStoreIds($this->getResource()->getStoreIds($this->getId()));
     } elseif (!is_array($storeIds)) {
         $this->setCategoryStoreIds(array_unique(explode(',', $storeIds)));
     }
     return parent::_afterLoad();
 }
开发者ID:praxigento,项目名称:mage_app_prxgt_store,代码行数:9,代码来源:Category.php

示例9: _afterLoad

 /**
  * @return Firegento_FlexCms_Model_Content_Data
  */
 protected function _afterLoad()
 {
     /** @var Firegento_FlexCms_Model_Content_Data $contentData */
     $contentData = $this->getContentDataModel();
     $this->setContent($contentData->getContent());
     $this->setDefaultContent($contentData->getDefaultContent());
     $this->setIsActive($contentData->getIsActive());
     return parent::_afterLoad();
 }
开发者ID:OurLaborisJoy,项目名称:FireGento_FlexCms,代码行数:12,代码来源:Content.php

示例10: _afterLoad

 /**
  * Perform actions after object load
  */
 protected function _afterLoad()
 {
     Mage_Core_Model_Abstract::_afterLoad();
     $conditionsArr = unserialize($this->getConditionsSerialized());
     if (!empty($conditionsArr) && is_array($conditionsArr)) {
         $this->getConditions()->loadArray($conditionsArr);
     }
     return $this;
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:12,代码来源:Segment.php

示例11: _afterLoad

 protected function _afterLoad()
 {
     if (is_string($this->getGuiData())) {
         $guiData = unserialize($this->getGuiData());
     } else {
         $guiData = '';
     }
     $this->setGuiData($guiData);
     parent::_afterLoad();
 }
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:10,代码来源:Profile.php

示例12: _afterLoad

 protected function _afterLoad()
 {
     $messages = @unserialize($this->getData('messages'));
     if (is_array($messages)) {
         foreach ($messages as $message) {
             $this->addMessage($message['text'], $message['admin_user'], $message['date']);
         }
     }
     return parent::_afterLoad();
 }
开发者ID:OurLaborisJoy,项目名称:FireGento_FlexCms,代码行数:10,代码来源:Changes.php

示例13: _afterLoad

 /**
  * @return Firegento_FlexCms_Model_Content_Data
  */
 protected function _afterLoad()
 {
     if (!is_array($this->getContent())) {
         try {
             $this->setContent(Zend_Json::decode($this->getContent()));
         } catch (Exception $e) {
             $this->setContent(array());
         }
     }
     return parent::_afterLoad();
 }
开发者ID:OurLaborisJoy,项目名称:FireGento_FlexCms,代码行数:14,代码来源:Data.php

示例14: _afterLoad

 /**
  * Processing object after load data
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterLoad()
 {
     if (!$this->getId() && !$this->getPosition()) {
         $this->setPosition($this->_getNextPosition());
     }
     if (strpos($this->getAttributeCode(), ',') !== false) {
         $this->setAttributeCode(explode(',', $this->getAttributeCode()));
     }
     $this->setOptions(unserialize($this->getOptions()));
     return parent::_afterLoad();
 }
开发者ID:tschifftner,项目名称:Magento-MEP,代码行数:16,代码来源:Mapping.php

示例15: _afterLoad

 protected function _afterLoad()
 {
     $helper = Mage::helper('core');
     $normalParams = $helper->jsonDecode($this->getParams());
     $hoverParams = $helper->jsonDecode($this->getHover());
     $style['normal'] = $this->_parseToCss($normalParams);
     $style['hover'] = $this->_parseToCss($hoverParams);
     $style['settings'] = $helper->jsonDecode($this->getSettings());
     $this->setData('style', $style);
     parent::_afterLoad();
 }
开发者ID:zaiats85,项目名称:blacknwhite,代码行数:11,代码来源:Css.php


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