Class MenuObject
Allows dynamic setting and getting of attributes
on the various parts of a menu (items, ItemLists, etc)
-
HtmlObject\Traits\Tag
-
Menu\Traits\MenuObject
Methods summary
public
Menu\Traits\MenuObject
|
#
replaceOptions( array $options )
Replace an array of options
Replace an array of options
Parameters
Returns
|
public
Menu\Traits\MenuObject
|
#
setOption( string $option, mixed $value )
Set a particular option in the array
Set a particular option in the array
Parameters
- $option
- The option
- $value
- Its new value
Returns
|
public
mixed
|
#
getOption( string $option = null )
Get a particular option in the array
Get a particular option in the array
Parameters
Returns
mixed Its value
|
Properties summary
public
array
|
$options
Per-element configuration
Per-element configuration
|
|