Mage_Cms_Model_Page Class Reference

Inheritance diagram for Mage_Cms_Model_Page:

Mage_Core_Model_Abstract Varien_Object

List of all members.

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'


Detailed Description

Definition at line 35 of file Page.php.


Member Function Documentation

_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

Parameters:
string $identifier
int $storeId
Returns:
int

Definition at line 69 of file Page.php.

00070     {
00071         return $this->_getResource()->checkIdentifier($identifier, $storeId);
00072     }

load ( id,
field = null 
)

Load object data

Parameters:
integer $id
Returns:
Mage_Core_Model_Abstract

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     }


Member Data Documentation

$_eventPrefix = 'cms_page' [protected]

Reimplemented from Mage_Core_Model_Abstract.

Definition at line 40 of file Page.php.

const NOROUTE_PAGE_ID = 'no-route'

Definition at line 38 of file Page.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:52 2009 for Magento by  doxygen 1.5.8