Public Member Functions | |
load ($id, $field=null) | |
noRoutePage () | |
checkIdentifier ($identifier, $storeId) | |
Public Attributes | |
const | NOROUTE_PAGE_ID = 'no-route' |
Protected Member Functions | |
_construct () | |
Protected Attributes | |
$_eventPrefix = 'cms_page' |
Definition at line 35 of file Page.php.
_construct | ( | ) | [protected] |
Enter description here...
Reimplemented from Varien_Object.
Definition at line 42 of file Page.php.
00043 { 00044 $this->_init('cms/page'); 00045 }
checkIdentifier | ( | $ | identifier, | |
$ | storeId | |||
) |
Check if page identifier exist for specific store return page id if page exists
string | $identifier | |
int | $storeId |
Definition at line 69 of file Page.php.
00070 { 00071 return $this->_getResource()->checkIdentifier($identifier, $storeId); 00072 }
load | ( | $ | id, | |
$ | field = null | |||
) |
Load object data
integer | $id |
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 47 of file Page.php.
00048 { 00049 if (is_null($id)) { 00050 return $this->noRoutePage(); 00051 } 00052 return parent::load($id, $field); 00053 }
noRoutePage | ( | ) |
Definition at line 55 of file Page.php.
00056 { 00057 $this->setData($this->load(self::NOROUTE_PAGE_ID, $this->getIdFieldName())); 00058 return $this; 00059 }
$_eventPrefix = 'cms_page' [protected] |
const NOROUTE_PAGE_ID = 'no-route' |