PHP Class Menu_Basic, atk4

Author: Romans ([email protected])
Inheritance: extends CompleteLister
显示文件 Open project: atk4/atk4 Class Usage Examples

Public Properties

Property Type Description
$app App_Web
$current_menu_class
$dest_var if set, then instead of setting a destination page for the URLs the links will return to the same page, however new argument will be added to each link containing ID of the menu.
$inactive_menu_class
$items
$owner View

Protected Properties

Property Type Description
$class_tag
$last_item

Public Methods

Method Description
addMenuItem ( $page, $label = null )
addSubMenu ( string $label ) : Menu_jUI
defaultTemplate ( )
init ( )
isCurrent ( $href )
render ( )
setTarget ( $js_func ) This will add a new behaviour for clicking on the menu items. For example setTarget('frameURL') will show menu links inside a frame instead of just linking to them.

Protected Methods

Method Description
getDefaultHref ( $label )

Method Details

addMenuItem() public method

public addMenuItem ( $page, $label = null )

addSubMenu() public method

public addSubMenu ( string $label ) : Menu_jUI
$label string
return Menu_jUI

defaultTemplate() public method

public defaultTemplate ( )

getDefaultHref() protected method

protected getDefaultHref ( $label )

init() public method

public init ( )

isCurrent() public method

public isCurrent ( $href )

render() public method

public render ( )

setTarget() public method

This will add a new behaviour for clicking on the menu items. For example setTarget('frameURL') will show menu links inside a frame instead of just linking to them.
public setTarget ( $js_func )

Property Details

$app public_oe property

public App_Web $app
return App_Web

$class_tag protected_oe property

protected $class_tag

$current_menu_class public_oe property

public $current_menu_class

$dest_var public_oe property

if set, then instead of setting a destination page for the URLs the links will return to the same page, however new argument will be added to each link containing ID of the menu.
public $dest_var

$inactive_menu_class public_oe property

public $inactive_menu_class

$items public_oe property

public $items

$last_item protected_oe property

protected $last_item

$owner public_oe property

public View $owner
return View