本文整理汇总了PHP中Mage_Core_Model_Config_Data::_afterLoad方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_Config_Data::_afterLoad方法的具体用法?PHP Mage_Core_Model_Config_Data::_afterLoad怎么用?PHP Mage_Core_Model_Config_Data::_afterLoad使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_Config_Data
的用法示例。
在下文中一共展示了Mage_Core_Model_Config_Data::_afterLoad方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _afterLoad
/**
* Send only the Checksum part of the Site Id Checksum Field.
* @return self
*/
protected function _afterLoad()
{
parent::_afterLoad();
list($justTheHash, ) = Mage::helper('eems_display')->splitSiteIdChecksumField($this->getOldValue());
$this->setValue($justTheHash);
return $this;
}
示例2: _afterLoad
/**
* if we dont' have a value yet retrieve a starting value from
* the default config xml configuration
*
* @return Fooman_PdfCustomiser_Model_Backend_Pdftotal
*/
protected function _afterLoad()
{
if ($this->getValue() == '') {
$this->setValue((string) Mage::getConfig()->getNode($this->_getGlobalConfigPath()));
}
return parent::_afterLoad();
}
示例3: _afterLoad
/**
* Check permission to read product prices before the value is shown to user
*
* @return Enterprise_PricePermossions_Model_System_Config_Backend_Catalog_Product_Price_Default
*/
protected function _afterLoad()
{
parent::_afterLoad();
if (!Mage::helper('enterprise_pricepermissions')->getCanAdminReadProductPrice()) {
$this->setValue(null);
}
return $this;
}
示例4: _afterLoad
/**
* Processing object after load data
*
* @return Mage_Core_Model_Abstract
*/
protected function _afterLoad()
{
$value = $this->getValue();
if (!preg_match('#^{{((un)?secure_)?base_url}}#', $value)) {
$value = Mage::helper('core/url')->decodePunycode($value);
}
$this->setValue($value);
return parent::_afterLoad();
}
示例5: _afterLoad
/**
* Take the current configuration view and append the Display Feed frontName
* to present a complete route
*/
protected function _afterLoad()
{
parent::_afterLoad();
$storeId = Mage::helper('eems_display')->getStoreIdForCurrentAdminScope();
$siteId = Mage::helper('eems_display/config')->getSiteId($storeId);
if (empty($siteId)) {
$this->setValue('');
} else {
$this->setValue(Mage::helper('eems_display')->getProductFeedUrl($storeId));
}
return $this;
}
示例6: _afterLoad
/**
*
*/
protected function _afterLoad()
{
$__result = parent::_afterLoad();
$this->setValue((string) $this->getValue());
$__shadowString = Mage::getModel('activitystream/shadowString');
$__shadowString->setValue($this->getValue());
if (strlen($this->getValue()) == 0) {
$__shadowString->setShadowValue(Mage::getStoreConfig($this->__getReservationPath(), $this->getStore()));
}
$this->setValue($__shadowString);
return $__result;
}
开发者ID:ashfaqphplhr,项目名称:artificiallawnsforturf,代码行数:15,代码来源:AdminhtmlSystemConfigBackendTurnable.php
示例7: _afterLoad
protected function _afterLoad()
{
$status = Mage::getModel('helpdeskultimate/status')->load('admin', 'status_type');
$this->setValue($status->getLabel());
parent::_afterLoad();
}
示例8: _afterLoad
protected function _afterLoad()
{
$this->setValue(str_replace(",", "\n", $this->getValue()));
return parent::_afterLoad();
}
示例9: _afterLoad
/**
* Unserialize
*/
protected function _afterLoad()
{
parent::_afterLoad();
$this->setValue(unserialize($this->getValue()));
}
示例10: _afterLoad
protected function _afterLoad()
{
$statuses = Mage::getModel('helpdeskultimate/status')->getCollection();
if (($storeId = $this->getStoreId()) !== null) {
$statuses->addStoreFilter($storeId);
}
$labels = array();
foreach ($statuses as $status) {
$labels[] = $status->getLabel();
}
$this->setValue(implode(", ", $labels));
parent::_afterLoad();
}
示例11: _afterLoad
/**
* unserialize values after load
* @return Mage_Core_Model_Abstract|void
*/
public function _afterLoad()
{
parent::_afterLoad();
$value = $this->getCoreHelper()->jsonDecode($this->getValue());
$this->setValue($value);
}