Public Attributes | |
const | PAGE_TYPE_VARIANT = 'variant' |
Protected Member Functions | |
_afterLoad () | |
_beforeSave () | |
_validate () | |
Protected Attributes | |
$_entityType = 'page' |
Definition at line 34 of file Page.php.
_afterLoad | ( | ) | [protected] |
Processing object after load data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 39 of file Page.php.
00040 { 00041 if ($data = $this->getAdditionalData()) { 00042 $data = unserialize($data); 00043 if (isset($data['page_type'])) { 00044 $this->setPageType($data['page_type']); 00045 } 00046 } 00047 return parent::_afterLoad(); 00048 }
_beforeSave | ( | ) | [protected] |
Processing object before save data
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 50 of file Page.php.
00051 { 00052 00053 if ($pageType = $this->getData('page_type')) { 00054 $this->setData('additional_data', serialize(array( 00055 'page_type' => $pageType)) 00056 ); 00057 } 00058 parent::_beforeSave(); 00059 }
_validate | ( | ) | [protected] |
Validate sctipts that assigned on entity
Reimplemented from Mage_GoogleOptimizer_Model_Code.
Definition at line 61 of file Page.php.
00062 { 00063 if ($this->getPageType() && $this->getPageType() == self::PAGE_TYPE_VARIANT) { 00064 if ($this->getTrackingScript()) { 00065 return true; 00066 } 00067 } 00068 return parent::_validate(); 00069 }
$_entityType = 'page' [protected] |
const PAGE_TYPE_VARIANT = 'variant' |