Class XmlSitemapPageTree

copyright CONTREXX CMS - COMVATION AG
author Michael Ritter
access public
version 3.0.0
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) 

Parameters

$level

$lang

$parentNode

preRenderLevel()

preRenderLevel($level, $lang, $parentNode) 

Parameters

$level

$lang

$parentNode

returns the string representation of the tree.

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

Returns

string

setVirtualLanguageDirectory()

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

Parameters

$dir

Writes the XML-Sitemap in all langs (if activated in config)

write() : boolean
Static
global type $_CONFIG
global type $_CORELANG

Returns

booleanTrue on success (including deactivated), false otherwise

Returns the changing-frequency of the page depending on the database values.

getChangingFrequency($page) : string

If the page is a module page, the frequency is set to 'hourly', for normal pages to 'weekly'.

Parameters

$page

Returns

stringtrue, if the page is a module page. Otherwise false.

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()

Creates the modification-date of a page as a string which can be processed by google.

getLastModificationDate($page) : string

The method uses for module-pages the current date, for normale pages the date of last modification.

Parameters

$page

Returns

stringA date string which can be understood by google

Called on construction.

init() 

Override if you do not want to override the ctor.

PageTree override (unused)

postRender(\Cx\Core\PageTree\type $lang) 

Parameters

$lang

\Cx\Core\PageTree\type

PageTree override (unused)

postRenderElement(\Cx\Core\PageTree\type $level, \Cx\Core\PageTree\type $hasChilds, \Cx\Core\PageTree\type $lang, \Cx\Core\PageTree\type $page) : string

Parameters

$level

\Cx\Core\PageTree\type

$hasChilds

\Cx\Core\PageTree\type

$lang

\Cx\Core\PageTree\type

$page

\Cx\Core\PageTree\type

Returns

string

PageTree override (unused)

preRender(\Cx\Core\PageTree\type $lang) 

Parameters

$lang

\Cx\Core\PageTree\type

preRenderElement()

preRenderElement($level, $hasChilds, $lang, $page) 

Parameters

$level

$hasChilds

$lang

$page

Renders the PageTree element

renderElement(\Cx\Core\PageTree\type $title, \Cx\Core\PageTree\type $level, \Cx\Core\PageTree\type $hasChilds, \Cx\Core\PageTree\type $lang, \Cx\Core\PageTree\type $path, \Cx\Core\PageTree\type $current, \Cx\Core\PageTree\type $page) : \Cx\Core\PageTree\type

Parameters

$title

\Cx\Core\PageTree\type

$level

\Cx\Core\PageTree\type

$hasChilds

\Cx\Core\PageTree\type

$lang

\Cx\Core\PageTree\type

$path

\Cx\Core\PageTree\type

$current

\Cx\Core\PageTree\type

$page

\Cx\Core\PageTree\type

Returns

\Cx\Core\PageTree\type

Renders the foot of the PageTree

renderFooter(\Cx\Core\PageTree\type $lang) : string

Parameters

$lang

\Cx\Core\PageTree\type

Returns

string

Renders the head of the PageTree

renderHeader(\Cx\Core\PageTree\type $lang) : \Cx\Core\PageTree\type

Parameters

$lang

\Cx\Core\PageTree\type

Returns

\Cx\Core\PageTree\type

Write sitemap-file

writeXML() 
global object
global array

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
 

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

$strFileName 
 

$strFileNameWithLang 
 

$strFilePath 
© Copyright 2014 by Comvation AG
Generated on 2014-07-11T08:39:24+02:00.