TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
MenuItem Class Reference
Inheritance diagram for MenuItem:
AbstractControl

Public Member Functions

 setHref ($href)
 
 setActive ($active)
 
 getHref ()
 
 isActive ()
 
 isValid (MenuItem $menuItem)
 
- Public Member Functions inherited from AbstractControl
 getClasses ()
 
 getTitle ()
 
 getDataAttributes ()
 
 getOnClick ()
 
 setClasses ($classes)
 
 setTitle ($title)
 
 setDataAttributes (array $dataAttributes)
 
 setOnClick ($onClick)
 

Protected Attributes

 $href = ''
 
 $active = false
 
- Protected Attributes inherited from AbstractControl
 $classes = ''
 
 $title = ''
 
 $dataAttributes = []
 
 $onClick = ''
 

Detailed Description

MenuItem

Definition at line 22 of file MenuItem.php.

Member Function Documentation

getHref ( )

Get href

Returns
string

Definition at line 69 of file MenuItem.php.

References MenuItem\$href.

Referenced by MenuItem\isValid().

isActive ( )

Check if is active

Returns
bool

Definition at line 79 of file MenuItem.php.

References MenuItem\$active.

isValid ( MenuItem  $menuItem)

Validation

Parameters
MenuItem$menuItemThe menuItem to validate
Returns
bool

Definition at line 91 of file MenuItem.php.

References MenuItem\getHref(), and AbstractControl\getTitle().

Referenced by Menu\addMenuItem().

setActive (   $active)

Set active

Parameters
bool$activeDefines whether a menuItem is active
Returns
MenuItem

Definition at line 58 of file MenuItem.php.

References MenuItem\$active.

setHref (   $href)

Set href

Parameters
string$hrefHref of the MenuItem
Returns
MenuItem

Definition at line 45 of file MenuItem.php.

References MenuItem\$href.

Member Data Documentation

$active = false
protected

Definition at line 36 of file MenuItem.php.

Referenced by MenuItem\isActive(), and MenuItem\setActive().

$href = ''
protected

Definition at line 29 of file MenuItem.php.

Referenced by MenuItem\getHref(), and MenuItem\setHref().