/**
  * 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;
 }
Exemple #2
0
 /**
  * Load default content from robots.txt if customer does not define own
  *
  * @return Mage_Backend_Model_Config_Backend_Admin_Robots
  */
 protected function _afterLoad()
 {
     if (!(string) $this->getValue()) {
         $this->setValue($this->_getDefaultValue());
     }
     return parent::_afterLoad();
 }
Exemple #3
0
 /**
  * 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();
 }
 /**
  * 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;
 }
 /**
  * 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();
 }
Exemple #6
0
 /**
  * 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;
 }
 /**
  * 
  */
 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;
 }
 protected function _afterLoad()
 {
     $status = Mage::getModel('helpdeskultimate/status')->load('admin', 'status_type');
     $this->setValue($status->getLabel());
     parent::_afterLoad();
 }
 protected function _afterLoad()
 {
     $this->setValue(str_replace(",", "\n", $this->getValue()));
     return parent::_afterLoad();
 }
Exemple #10
0
 /**
  * Unserialize
  */
 protected function _afterLoad()
 {
     parent::_afterLoad();
     $this->setValue(unserialize($this->getValue()));
 }
 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();
 }
Exemple #12
0
 /**
  * unserialize values after load
  * @return Mage_Core_Model_Abstract|void
  */
 public function _afterLoad()
 {
     parent::_afterLoad();
     $value = $this->getCoreHelper()->jsonDecode($this->getValue());
     $this->setValue($value);
 }