contenido\classes\class.navigation.php

Show: PublicProtectedPrivateinherited
Table of Contents
Project: Contenido Content Management System

Description: Class for the dynamic Contenido backend navigation

Requirements:

Author
Jan Lengowski  
Con_php_req
5.0  
Copyright
four for business AG  
License
http://www.contenido.org/license/LIZENZ.txt  
Link
http://www.4fb.de  
Link
http://www.contenido.org  
Package
Contenido Backend classes  
Since
file available since contenido release <= 4.6 {@internal created unknown modified 2008-06-30, Dominik Ziegler, add security fix modified 2008-07-08 Thorsten Granz, added option to disable menu hover effect. clicking is now possible again modified 2009-12-17, Dominik Ziegler, added support for username fallback and fixed double quote modified 2009-12-16 Corrected rendering of multiple apostrophes in anchors modified 2010-01-15, Dominik Ziegler, added frontend url to client name modified 2011-01-28, Dominik Ziegler, added check for client existance for link to frontend [#CON-378] $Id: class.navigation.php 1264 2011-01-28 10:41:52Z dominik.ziegler $: }}  
Version
1.0.3  

\Contenido_Navigation

Package: Backend\Navigation
Backend navigaton class.

Renders the header navigation document containing the navigtion structure.

Category
Contenido  

Properties

>VPropertypublicarray $data = array()
Array storing all data
Default valuearray()Details
Type
array
>VPropertypublicbool $debug = 0
Flag to debug this vlass
Default value0Details
Type
bool

Methods

methodpublicContenido_Navigation() : void

Constructor.

Loads the XML language file using XML_Doc.

methodpublic_buildHeaderData() : void

Reads and fills the navigation structure data

methodpublic_renderLanguageSelect() : string

Renders the language select box

Returns
TypeDescription
string
methodpublicbuildHeader(int $lang) : void

Function to build the Contenido header document for backend

Parameters
NameTypeDescription
$langint

The language to use for header doc creation

methodpublicgetName(string $location) : string

Extracts caption from the XML language file including plugins extended multilang version.

Parameters
NameTypeDescription
$locationstring

The location of navigation item caption. Feasible values are - "{xmlFilePath};{XPath}": Path to XML File and the XPath value separated by semicolon. This type is used to extract caption from a plugin XML file. - "{XPath}": XPath value to extract caption from Contenido XML file

Returns
TypeDescription
stringThe found caption
Documentation was generated by phpDocumentor 2.0.0a12.