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


PHP Mage_Eav_Model_Entity_Attribute_Backend_Abstract::afterLoad方法代码示例

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


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

示例1: afterLoad

 /**
  * After load method
  *
  * @param  Varien_Object $object Object Model
  * @return FireGento_DynamicCategory_Model_Entity_Attribute_Backend_Rule Self.
  */
 public function afterLoad($object)
 {
     parent::afterLoad($object);
     $attrCode = $this->getAttribute()->getAttributeCode();
     $object->setData($attrCode, unserialize($object->getData($attrCode)));
     return $this;
 }
开发者ID:hsq,项目名称:firegento-dynamiccategory,代码行数:13,代码来源:Rule.php

示例2: afterLoad

 /**
  * Convert create date from UTC to current store time zone
  *
  * @param Varien_Object $object
  * @return Mage_Eav_Model_Entity_Attribute_Backend_Time_Created
  */
 public function afterLoad($object)
 {
     $attributeCode = $this->getAttribute()->getAttributeCode();
     $date = $object->getData($attributeCode);
     $zendDate = Mage::app()->getLocale()->storeDate(null, $date, true);
     $object->setData($attributeCode, $zendDate->getIso());
     parent::afterLoad($object);
     return $this;
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:15,代码来源:Created.php

示例3: afterLoad

 public function afterLoad($object)
 {
     $attributeCode = $this->getAttribute()->getAttributeCode();
     $data = $object->getData($attributeCode);
     if (!is_array($data)) {
         $object->setData($attributeCode, @unserialize($data));
     }
     return parent::afterLoad($object);
 }
开发者ID:NimbusVisualization,项目名称:nimbus-3dproducts,代码行数:9,代码来源:Handler.php

示例4: afterLoad

 /**
  * Decrypts the value after load
  *
  * @param  Mage_Core_Model_Abstract $object Object
  * @return Itabs_Debit_Model_Entity_Customer_Attribute_Backend_Encrypted
  */
 public function afterLoad($object)
 {
     $helper = Mage::helper('core');
     $attributeName = $this->getAttribute()->getName();
     if ($object->getData($attributeName) != '') {
         $value = $helper->decrypt($object->getData($attributeName));
         $object->setData($attributeName, $value);
     }
     return parent::afterLoad($object);
 }
开发者ID:pette87,项目名称:Magento-DebitPayment,代码行数:16,代码来源:Encrypted.php

示例5: afterLoad

 public function afterLoad($object)
 {
     $attributeCode = $this->getAttribute()->getName();
     if ($attributeCode == self::ATTRIBUTE_CODE) {
         $data = $object->getData($attributeCode);
         if (!is_array($data)) {
             $object->setData($attributeCode, explode(',', $data));
         }
     }
     parent::afterLoad($object);
 }
开发者ID:VinuWebtech,项目名称:production267,代码行数:11,代码来源:Group.php

示例6: afterLoad

 public function afterLoad($object)
 {
     parent::afterLoad($object);
     if (!$this->_isEnabled()) {
         return;
     }
     $attrCode = $this->getAttribute()->getAttributeCode();
     $defValue = $this->getDefaultValue();
     if (!$object->getData($attrCode) && $defValue) {
         $object->setData($attrCode, $defValue);
     }
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:12,代码来源:Backend.php

示例7: afterLoad

 /**
  * Unserialize after loading
  *
  * @param Varien_Object $object
  * @return Mage_Eav_Model_Entity_Attribute_Backend_Serialized
  */
 public function afterLoad($object)
 {
     parent::afterLoad($object);
     $this->_unserialize($object);
     return $this;
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:12,代码来源:Serialized.php

示例8: afterLoad

 /**
  * Set category ids to product data
  *
  * @param Mage_Catalog_Model_Product $object
  * @return Mage_Eav_Model_Entity_Attribute_Backend_Abstract
  */
 public function afterLoad($object)
 {
     $object->setData($this->getAttribute()->getAttributeCode(), $object->getCategoryIds());
     return parent::afterLoad($object);
 }
开发者ID:nickimproove,项目名称:magento2,代码行数:11,代码来源:Category.php

示例9: afterLoad

 /**
  * In case the data was loaded, explode it into an array
  *
  * @param Mage_Core_Model_Abstract $object
  * @return Mage_Eav_Model_Entity_Attribute_Backend_Abstract
  */
 public function afterLoad($object)
 {
     $attributeCode = $this->getAttribute()->getAttributeCode();
     $data = $object->getData($attributeCode);
     // only explode and set the value if the attribute is set on the model
     if (null !== $data && is_string($data)) {
         $data = explode(',', $data);
         $object->setData($attributeCode, $data);
     }
     return parent::afterLoad($object);
 }
开发者ID:gewaechshaus,项目名称:groupscatalog2,代码行数:17,代码来源:Customergroups.php

示例10: afterLoad

 /**
  * Convert create date from UTC to current store time zone
  *
  * @param Varien_Object $object
  * @return Mage_Eav_Model_Entity_Attribute_Backend_Time_Created
  */
 public function afterLoad($object)
 {
     $attributeCode = $this->getAttribute()->getAttributeCode();
     $date = $object->getData($attributeCode);
     // ADD THIS
     if (!is_null($date)) {
         $date = strtotime($date);
     }
     $zendDate = Mage::app()->getLocale()->storeDate(null, $date, true, $this->_getFormat($date));
     $object->setData($attributeCode, $zendDate->getIso());
     parent::afterLoad($object);
     return $this;
 }
开发者ID:vishalpatel14,项目名称:indiankalaniketan,代码行数:19,代码来源:Created.php


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