Model_Page

class Nos\Page\Model_Page

Extends Nos\Orm\Model.

Constants

Page types

constant Nos\Page\Model_Page::TYPE_CLASSIC

Possible values of the page_type column.

External target types

constant Nos\Page\Model_Page::EXTERNAL_TARGET_NEW
constant Nos\Page\Model_Page::EXTERNAL_TARGET_SAME

Possible values of the page_external_link_type column.

Lock types

constant Nos\Page\Model_Page::LOCK_UNLOCKED
constant Nos\Page\Model_Page::LOCK_DELETION

Possible values of the page_lock column.

Relations

property Nos\Page\Model_Page::$children
property Nos\Page\Model_Page::$parent

Methods

Nos\Page\Model_Page::htmlAnchor($attributes = array())
Parameters:
  • $attributes (array) –
    Array of attributes to be applied to the anchor tag.
    If key ‘href’ is set in $attributes parameter:
    • if is a string, used for href attribute
    • if is an array, used as argument of ->url() method

    If key ‘text’ is set in $attributes parameter, its value replace page title

Returns:

Returns an HTML anchor tag with, by default, page URL in href and page title in text.

Nos\Page\Model_Page::url($params = array())
Parameters:
  • $params (array) –
    preview:If set, returns a preview URL
Returns:

The absolute URL of the page