PHP Class App\Source\Composite\AMenu

Inheritance: implements App\Source\Composite\Interfaces\IMenuComposite, implements ArrayAccess
显示文件 Open project: andrey900/slimcms

Public Properties

Property Type Description
$link Link Item's hyperlink

Protected Properties

Property Type Description
$attributes array Item's attributes
$id integer
$last_id integer
$menu array
$meta array Item's meta data
$reserved array Reserved keys

Public Methods

Method Description
__construct ( $name, null $options = null, $_name = false )
add ( App\Source\Composite\Interfaces\IMenuComposite $menuItem ) : mixed
getById ( $id )
getByName ( $name )
getChild ( ) : mixed
getId ( ) : integer
getLastId ( ) : integer
getParent ( integer $id ) : mixed
getUrl ( $options ) : mixed
offsetExists ( $id )
offsetGet ( $id )
offsetSet ( $id, $value )
offsetUnset ( $id )
remove ( $id ) : mixed

Method Details

__construct() public method

public __construct ( $name, null $options = null, $_name = false )
$name
$options null

add() abstract public method

abstract public add ( App\Source\Composite\Interfaces\IMenuComposite $menuItem ) : mixed
$menuItem App\Source\Composite\Interfaces\IMenuComposite
return mixed

getById() public method

public getById ( $id )

getByName() public method

public getByName ( $name )

getChild() abstract public method

abstract public getChild ( ) : mixed
return mixed

getId() public method

public getId ( ) : integer
return integer

getLastId() public method

public getLastId ( ) : integer
return integer

getParent() abstract public method

abstract public getParent ( integer $id ) : mixed
$id integer
return mixed

getUrl() abstract public method

abstract public getUrl ( $options ) : mixed
$options
return mixed

offsetExists() public method

public offsetExists ( $id )

offsetGet() public method

public offsetGet ( $id )

offsetSet() public method

public offsetSet ( $id, $value )

offsetUnset() public method

public offsetUnset ( $id )

remove() abstract public method

abstract public remove ( $id ) : mixed
$id
return mixed

Property Details

$attributes protected_oe property

Item's attributes
protected array $attributes
return array

$id protected_oe property

protected int $id
return integer

$last_id protected_oe static_oe property

protected static int $last_id
return integer

$menu protected_oe property

protected array $menu
return array

$meta protected_oe property

Item's meta data
protected array $meta
return array

$reserved protected_oe property

Reserved keys
protected array $reserved
return array