Model_Menu

class Nos\Menu\Model_Menu

Extends Nos\Orm\Model.

Relations

property Nos\Menu\Model_Menu::$items

Behaviours

Methods

Nos\Menu\Model_Menu::html(array $params = array())
Parameters:
  • $params (array) –

    the parameters array:

    view:The view path to use. Default: noviusos_menu::menu
Returns:

A View forged with $params

Nos\Menu\Model_Menu::branch($parent = null)
Parameters:
  • $parent (mixed) – If null, return the root branch. Can be a Model_Menu_Item, then return his branch.
Returns:

Array of Model_Menu_Item

static Nos\Menu\Model_Menu::buildFromPages($context, $page_id = null, $depth = -1)

Build a Model_Menu where items reproduce the pages tree of the context.

Parameters:
  • $context (string) – The context ID
  • $page_id (mixed) – The root page ID, can be null
  • $depth (int) – The depth of the menu. Default: -1, unlimited.
Returns:

Array of Model_Menu_Item

Read the Docs v: elche
Versions
latest
stable
elche
dubrovka
chiba.2
chiba.1
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.