SigmaPageTree

copyright CONTREXX CMS - COMVATION AG
author COMVATION Development Team
package contrexx
subpackage core_pagetree

 Methods

__construct()

__construct($entityManager, \Cx\Core_Modules\License\License $license, int $maxDepth, \Cx\Core\ContentManager\Model\Entity\Node $rootNode, int $lang, \Cx\Core\ContentManager\Model\Entity\Page $currentPage, $skipInvisible) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::__construct()

Parameters

$entityManager

the doctrine em

$license

\Cx\Core_Modules\License\License

License used to check if a module is allowed in frontend

$maxDepth

int

maximum depth to fetch, 0 means everything

$rootNode

\Cx\Core\ContentManager\Model\Entity\Node

node to use as root

$lang

int

the language

$currentPage

\Cx\Core\ContentManager\Model\Entity\Page

if set, renderElement() will receive a correctly set $current flag.

$skipInvisible

Tells wheter $pathToPage is in the active branch

isPagePathActive(String $pathToPage) : boolean
Inherited
inherited_from \Cx\Core\PageTree\PageTree::isPagePathActive()

Parameters

$pathToPage

String

Returns

booleanTrue if active, false otherwise

postRenderLevel()

postRenderLevel($level, $lang, $parentNode) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::postRenderLevel()

Parameters

$level

$lang

$parentNode

preRenderLevel()

preRenderLevel($level, $lang, $parentNode) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::preRenderLevel()

Parameters

$level

$lang

$parentNode

returns the string representation of the tree.

render() : string
Inherited
inherited_from \Cx\Core\PageTree\PageTree::render()

Returns

string

setTemplate()

setTemplate($template) 

Parameters

$template

the PEAR Sigma template.

setVirtualLanguageDirectory()

setVirtualLanguageDirectory($dir) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::setVirtualLanguageDirectory()

Parameters

$dir

getFirstLevel()

getFirstLevel() 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::getFirstLevel()

getFullNavigation()

getFullNavigation() 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::getFullNavigation()

getLastLevel()

getLastLevel() 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::getLastLevel()

Called on construction.

init() 
Inherited

Override if you do not want to override the ctor.

inherited_from \Cx\Core\PageTree\PageTree::init()

postRender()

postRender($lang) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::postRender()

Parameters

$lang

postRenderElement()

postRenderElement($level, $hasChilds, $lang, $page) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::postRenderElement()

Parameters

$level

$hasChilds

$lang

$page

preRender()

preRender($lang) 

Parameters

$lang

preRenderElement()

preRenderElement($level, $hasChilds, $lang, $page) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::preRenderElement()

Parameters

$level

$hasChilds

$lang

$page

realPreRender()

realPreRender($lang) 

Parameters

$lang

Override this to do your representation of the tree.

renderElement(string $title, int $level, boolean $hasChilds, int $lang, string $path, boolean $current, $page) : string
Inherited
inherited_from \Cx\Core\PageTree\PageTree::renderElement()

Parameters

$title

string

$level

int

0-based level of the element

$hasChilds

boolean

are there children of this element? if yes, they will be processed in the subsequent calls.

$lang

int

language id

$path

string

path to this element, e.g. '/CatA/CatB'

$current

boolean

if a $currentPage has been specified, this will be set to true if either a parent element of the current element or the current element itself is rendered.

$page

Returns

stringyour string representation of the element.

renderFooter()

renderFooter($lang) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::renderFooter()

Parameters

$lang

renderHeader()

renderHeader($lang) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::renderHeader()

Parameters

$lang

internalRender()

internalRender($node, \Cx\Core\PageTree\type $dontDescend) 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::internalRender()

Parameters

$node

$dontDescend

\Cx\Core\PageTree\type

 Properties

 

$currentPage 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$currentPage
 

$currentPageOnRootNode 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$currentPageOnRootNode
 

$currentPagePath 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$currentPagePath
 

$depth 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$depth
 

$em 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$em
 

$lang 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$lang
 

$license 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$license
 

$pageIdsAtCurrentPath 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$pageIdsAtCurrentPath
 

$pageRepo 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$pageRepo
 

$rootNode 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$rootNode
 

$skipInvisible 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$skipInvisible
 

$template : \Cx\Core\Html\Sigma
 

$virtualPagesAdded 
Inherited
inherited_from \Cx\Core\PageTree\PageTree::$$virtualPagesAdded
© Copyright 2014 by Comvation AG
Generated on 2014-07-11T08:39:24+02:00.