include/contextMenus/contextMenu.php

Show: inherited
Table of Contents

\contextMenu

Package:

Properties

Propertypublic  $menuItems= ''
Details
Type
n/a
Propertypublic  $objectName= ''
Details
Type
n/a

Methods

methodpublicaddMenuItem( string $text, string $action,  $module = null,  $aclAction = null, array $params = null ) : void

adds a menu item to the current contextMenu

Parameters
Name Type Description
$text string

text of the item

$action string

function or pointer to the javascript function to call

$module
$aclAction
$params array

other parameters includes: url - The URL for the MenuItem's anchor's "href" attribute. target - The value to be used for the MenuItem's anchor's "target" attribute. helptext - Additional instructional text to accompany the text for a MenuItem. Example: If the text is "Copy" you might want to add the help text "Ctrl + C" to inform the user there is a keyboard shortcut for the item. emphasis - If set to true the text for the MenuItem will be rendered with emphasis (using ). strongemphasis - If set to true the text for the MenuItem will be rendered with strong emphasis (using ). disabled - If set to true the MenuItem will be dimmed and will not respond to user input or fire events. selected - If set to true the MenuItem will be highlighted. submenu - Appends / removes a menu (and it's associated DOM elements) to / from the MenuItem. checked - If set to true the MenuItem will be rendered with a checkmark.

methodpubliccontextMenu( ) : void

methodpublicgetScript( ) : void

methodpublicloadFromDef( string $name, array $defs ) : void

Loads up menu items from def

Parameters
Name Type Description
$name string

name of the object type

$defs array

menu item definitions

methodpublicloadFromFile( string $name ) : void

Loads up menu items from files located in include/contextMenus/menuDefs

Parameters
Name Type Description
$name string

name of the object

Documentation was generated by DocBlox 0.18.1.