PHP Class Menu_Compat, atk4

Inheritance: extends AbstractView
ファイルを表示 Open project: atk4/atk4

Public Properties

Property Type Description
$app App_Web
$current_menu_class
$inactive_menu_class
$owner View

Protected Properties

Property Type Description
$items
$last_item

Public Methods

Method Description
addMenuItem ( $label, $href = null )
addSeparator ( $template = null ) *function insertMenuItem($index,$label,$href=null){ $tail=array_slice($this->data,$index); $this->data=array_slice($this->data,0,$index); $this->addMenuItem($label,$href); $this->data=array_merge($this->data,$tail); return $this; }
defaultTemplate ( )
init ( ) }}}
isCurrent ( $href )
setController ( $controller )

Protected Methods

Method Description
getDefaultHref ( $label )

Method Details

addMenuItem() public method

public addMenuItem ( $label, $href = null )

addSeparator() public method

*function insertMenuItem($index,$label,$href=null){ $tail=array_slice($this->data,$index); $this->data=array_slice($this->data,0,$index); $this->addMenuItem($label,$href); $this->data=array_merge($this->data,$tail); return $this; }
public addSeparator ( $template = null )

defaultTemplate() public method

public defaultTemplate ( )

getDefaultHref() protected method

protected getDefaultHref ( $label )

init() public method

}}}
public init ( )

isCurrent() public method

public isCurrent ( $href )

setController() public method

public setController ( $controller )

Property Details

$app public_oe property

public App_Web $app
return App_Web

$current_menu_class public_oe property

public $current_menu_class

$inactive_menu_class public_oe property

public $inactive_menu_class

$items protected_oe property

protected $items

$last_item protected_oe property

protected $last_item

$owner public_oe property

public View $owner
return View