menu
Packages
Interfaces
Classes
Files

Class: LinksMenuLink

Source Location: /menu/links/links_menu_link.class.php [line 38]

Class Overview

Menu
   |
   --LinksMenuElement
      |
      --LinksMenuLink
A Simple menu link

Author(s):



Class Details

A Simple menu link

Tags:

[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Methods

constructor LinksMenuLink [line 48]

LinksMenuLink LinksMenuLink( string $title, string $url, [string $image = ''], int $id)
Constructor

Parameters:

string   $title   Menu title
string   $url   Destination url
string   $image   Menu's image url relative to the website root or absolute
int   $id   The Menu's id in the database
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method cache_export [line 76]

string cache_export( Template $template)

Tags:

  • return: the string to write in the cache file
Overrides LinksMenuElement::cache_export() (returns the string to write in the cache file)

Parameters:

Template   $template   the template to use to display the link
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method display [line 58]

string display( Template $template, [ $mode = LINKS_MENU_ELEMENT__CLASSIC_DISPLAYING])
Display the menu

Tags:

  • return: the menu parsed in xHTML
Overrides LinksMenuElement::display() (Displays the menu according to the given template)

Parameters:

Template   $template   the template to use
   $mode  
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Inherited Methods

Class: LinksMenuElement

LinksMenuElement::LinksMenuElement()
Build a LinksMenuElement object
LinksMenuElement::cache_export()
returns the string to write in the cache file
LinksMenuElement::cache_export_begin()
returns the string to write in the cache file at the beginning of the Menu element
LinksMenuElement::cache_export_end()
returns the string to write in the cache file at the end of the Menu element
LinksMenuElement::display()
Displays the menu according to the given template
LinksMenuElement::get_image()
LinksMenuElement::get_uid()
Returns the menu uid
LinksMenuElement::get_url()
LinksMenuElement::set_image()
LinksMenuElement::set_url()
LinksMenuElement::update_uid()
Update the menu uid
LinksMenuElement::_assign()
Assign tpl vars
LinksMenuElement::_parent()
Increase the Menu Depth and set the menu type to its parent one

Class: Menu

Menu::Menu()
Build a Menu element.
Menu::admin_display()
Display the menu admin gui
Menu::cache_export()
Menu::cache_export_begin()
Menu::cache_export_end()
Menu::display()
Display the menu
Menu::enabled()
Menu::get_auth()
Menu::get_block()
Menu::get_block_position()
Menu::get_id()
Menu::get_title()
Menu::id()
Menu::is_enabled()
Menu::set_auth()
Menu::set_block()
Menu::set_block_position()
Menu::set_title()
Menu::_assign()
Assign tpl vars


Documentation generated on Tue, 28 Jul 2009 22:43:39 +0200 by phpDocumentor 1.4.1