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

Class: SmartClient_Helper_ScMenus

Source Location: /ScMenus.php

Class Overview

Zend_View_Helper_Action
   |
   --SmartClient_Helper_ScGeneral
      |
      --SmartClient_Helper_ScMenus

Smart Client Menus Helper


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: SmartClient_Helper_ScGeneral

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

Class Details

[line 22]
Smart Client Menus Helper



Tags:

uses:  viewHelper - SmartClient


[ Top ]


Class Variables

$view =

[line 28]



Tags:

access:  public

Type:   Zend_View_Interface
Overrides:   Array


[ Top ]

$_items =

[line 33]



Tags:

access:  protected

Type:   Array


[ Top ]



Class Methods


method addItem [line 67]

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 111]

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 154]

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 139]

void clearItem( )

Clear items array



Tags:

access:  public


[ Top ]

method create [line 194]

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 129]

array getItems( )

Get items



Tags:

access:  public


[ Top ]

method ScMenus [line 40]

void ScMenus( )

Return instance



Tags:

access:  public


[ Top ]

method setView [line 51]

void setView( $view)

Sets the view field



Tags:

access:  public


Overrides SmartClient_Helper_ScGeneral::setView() (Sets the view field)

Parameters:

$view   $view   Zend_View_Interface

[ Top ]


Documentation generated on Mon, 20 Jul 2009 16:51:57 -0300 by phpDocumentor 1.4.1