本文整理汇总了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();
}
示例2: _afterLoad
protected function _afterLoad()
{
parent::_afterLoad();
if (!is_null($this->getCustomerGroup())) {
$this->setCustomerGroupIds(explode(',', $this->getCustomerGroup()));
}
}
示例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();
}
示例4: _afterLoad
protected function _afterLoad()
{
parent::_afterLoad();
// if (!$this->getTaxPostcode()) {
// $this->setTaxPostcode('*');
// }
}
示例5: _afterLoad
protected function _afterLoad()
{
parent::_afterLoad();
Mage::getSingleton('oscommerce/config')->initForeignConnection($this->getData());
// if (Mage::app()->getRequest()->getActionName() == 'run') {
// $this->importStores();
// }
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例11: _afterLoad
protected function _afterLoad()
{
if (is_string($this->getGuiData())) {
$guiData = unserialize($this->getGuiData());
} else {
$guiData = '';
}
$this->setGuiData($guiData);
parent::_afterLoad();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}