[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/template/menu/ -> menurenderer.class.php (sommaire)

(pas de description)

Poids: 316 lignes (11 kb)
Inclus ou requis:0 fois
Référencé: 3 fois
Nécessite: 0 fichiers

Définit 1 class

MenuRenderer:: (9 méthodes):
  MenuRenderer()
  generate()
  generateAt()
  userCanSee()
  _render()
  _renderJS()
  getLocaleId()
  breadCrumbs()
  getOpts()


Classe: MenuRenderer  - X-Ref

\ingroup Template

dumps the contents of the menu in a tree-fashion way using unordered html lists. It is necessary
to use some additional CSS styling to give some formatting to the menu.

This class is only used at the presentation layer of pLog to generate the menu structure,
and class users should never need to create an instance of this class.

See the "Menu API reference" document in the wiki for more information:
http://wiki.plogworld.net/index.php/PLog_1.0/The_Menu_API
MenuRenderer( $menu, $blogInfo, $userInfo )   X-Ref
Initializes the renderer

param: menu A vaid Menu object
param: blogInfo A reference to a BlogInfo object containing information of the blog for whom
param: userInfo A reference to a UserInfo object containing information of the user for whom

generate( $depth = 99, $renderFunc = "Plain" )   X-Ref
renders the contents of the menu

param: depth How many depth levels we should generate.
param: renderFunc render method for menu tree , the value is "JavaScript" and "Plain"         

generateAt( $nodeId, $depth = 1, $activeOpt = "", $renderFunc = "Plain" )   X-Ref
Generates a tree starting from another node which can be different than the
root node

param: nodeId
param: depth
param: activeOpt
param: renderFunc render method for menu tree , the value is "JavaScript" and "Plain"        

userCanSee( $node )   X-Ref
returns true if the user has enough permissions to see this node from the menu

param: node
param: userInfo
return: true if the user can, false otherwise

_render( $node, $depth = 0, $activeOpt = "", $menuTop = true )   X-Ref


_renderJS( $node, $depth = 0, $start = 0, $activeOpt = "" )   X-Ref


getLocaleId( $entry )   X-Ref
gets the locale id, given a node. The locale id can be either the value of the
"localeId" attribute if specified or the name of the tag otherwise

param: entry A valid menu node
return: the locale identifier

breadCrumbs( $entryId )   X-Ref
simple version of a "breadcrumbs" feature

param: entryId

getOpts( $entryId)   X-Ref

param: entryId



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics