SCPHP
[ class tree: SCPHP ] [ index: SCPHP ] [ all elements ]

Class: ScMenus

Source Location: /ScMenus.php

Class Overview

ScGeneral
   |
   --ScMenus

Smart Client Menus Helper


Variables

Methods


Inherited Variables

Inherited Methods

Class: ScGeneral

ScGeneral::__construct()
Set $remove_quotes_str
ScGeneral::ScGeneral()
Return instance
ScGeneral::addQuotesStr()
Add QuotesStr to String
ScGeneral::includeScripts()
Create the scripts for include
ScGeneral::removeQuotes()
Remove quotes from specific vars that are not supposed to be quoted using the $removeQuotesStr var

Class Details

[line 21]
Smart Client Menus Helper



[ Top ]


Class Variables

$_items =

[line 27]



Tags:

access:  protected

Type:   Array


[ Top ]



Class Methods


method addItem [line 40]

string addItem( mixed $data, [string $click = ''], [string $subMenu = ''], [array $options = ''])

Add Item to this menu



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the title of the item. If array, them we will loop on it
string   $click   Click action
string   $subMenu   Submenu, if applicable
array   $options   Additional options

[ Top ]

method addItems [line 84]

void addItems( array $data)

Get an array and do a loop using the addItem function



Tags:

access:  public


Parameters:

array   $data   Array containing multiple items

[ Top ]

method addSeparator [line 127]

string addSeparator( [array $options = ''], mixed $data, string $title)

Add Separator



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the id of the field. If array, them we will loop on it
string   $title   Title of the field
array   $options   Additional options

[ Top ]

method clearItem [line 112]

void clearItem( )

Clear items array



Tags:

access:  public


[ Top ]

method create [line 167]

string create( mixed $data, [boolean $createButton = true], [string $buttonTitle = ''], [array $options = ''], [array $buttonOptions = ''])

Create a new menu



Tags:

access:  public


Parameters:

mixed   $data   If string, it must be the ID of the menu. If array, them we will loop through it
boolean   $createButton   Set true if a button must also be created
string   $buttonTitle   Title of the button
array   $options   Additional options
array   $buttonOptions   Additional options to button

[ Top ]

method getItems [line 102]

array getItems( )

Get items



Tags:

access:  public


[ Top ]


Documentation generated on Wed, 29 Jul 2009 22:37:14 -0300 by phpDocumentor 1.4.1