TITAN Library for PHP5  5.1.0
Web Software Development Kit for PHP5
mnuitem Class Reference

Titan Menu Item Class. More...

Public Member Functions

 __construct ($section= '')
 
 section ($section)
 
 caption ($caption)
 
 external ($url)
 
 disabled ()
 
 lock ($lock)
 

Data Fields

 $section = ''
 Menu section where link will be added.
 
 $caption = ''
 Link caption.
 
 $url = ''
 Link URL.
 
 $url_type = 'e'
 Type of URL ('i' = internal or 'e' = external)
 
 $lock = ''
 Auth lock for link.
 
 $disabled = false
 Is the link disabled?
 

Detailed Description

Titan Menu Item Class.

Class: \tl\format\html\manu\mnuitem

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.1.0

Methods may be chained jQuery-style. For example:

$link = new \tl\format\html\menu('Section');
$link->caption('My Link')->external('http://www.domain.com/');

Constructor & Destructor Documentation

__construct (   $section = '')

Constructor

Parameters
string$section(optional) Which menu section is this item in? (default) ''
Returns
mnuitem

Member Function Documentation

section (   $section)

Set which menu section this link should be added to

Parameters
string$sectionWhich menu section is this item in?
Returns
mnuitem
caption (   $caption)

Set the link caption

Parameters
string$captionLink caption
Returns
mnuitem
external (   $url)

Set the link to an external URL

Parameters
string$urlLink external URL
Returns
mnuitem
disabled ( )

Disable the link

Returns
mnuitem
lock (   $lock)

Define a lock for the link

Requires: TITAN Platform auth with locks (not the same as \tl\data\lock and not part of TITAN Library for PHP)

Returns
mnuitem

The documentation for this class was generated from the following file: