API Documentation

Dojo/Form/Decorator/DijitElement.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Form
Classes
Zend_Dojo_Form_Decorator_DijitElement

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Dojo_Form_Decorator_DijitElement

Extends from
Zend_Form_Decorator_ViewHelper
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Dojo
subpackage
Form_Decorator
version
$Id: DijitElement.php 20622 2010-01-25 20:25:57Z matthew $
Properties
$_attribs
$_buttonTypes
$_dijitParams
Methods
getElementAttribs
setDijitParam
setDijitParams
getDijitParam
getDijitParams
render

Description

Zend_Dojo_Form_Decorator_DijitElement

Render a dojo dijit element via a view helper

Accepts the following options: - separator: string with which to separate passed in content and generated content - placement: whether to append or prepend the generated content to the passed in content - helper: the name of the view helper to use

Assumes the view helper accepts three parameters, the name, value, and optional attributes; these will be provided by the element.

Properties

$_attribs

array $_attribs = ''

Element attributes

Details

$_attribs
array
visibility
protected
default
final
false
static
false

$_buttonTypes

array $_buttonTypes = 'array'

Element types that represent buttons

Details

$_buttonTypes
array
visibility
protected
default
array
final
false
static
false

$_dijitParams

array $_dijitParams = 'array'

Dijit option parameters

Details

$_dijitParams
array
visibility
protected
default
array
final
false
static
false

Methods

getDijitParam

getDijitParam( string $key ) : mixed|null

Retrieve a single dijit option parameter

Arguments
$key
string
Output
mixed|null
Details
visibility
public
final
false
static
false

getDijitParams

getDijitParams( ) : array

Get dijit option parameters

Output
array
Details
visibility
public
final
false
static
false

getElementAttribs

getElementAttribs( ) : array

Get element attributes

Output
array
Details
visibility
public
final
false
static
false

render

render( string $content ) : string

Render an element using a view helper

Determine view helper from 'helper' option, or, if none set, from the element type. Then call as helper($element->getName(), $element->getValue(), $element->getAttribs())

Arguments
$content
string
Output
string
Details
visibility
public
final
false
static
false
throws
if element or view are not registered

setDijitParam

setDijitParam( string $key, mixed $value ) : Zend_Dojo_Form_Decorator_DijitContainer

Set a single dijit option parameter

Arguments
$key
string
$value
mixed
Details
visibility
public
final
false
static
false

setDijitParams

setDijitParams( array $params ) : Zend_Dojo_Form_Decorator_DijitContainer

Set dijit option parameters

Arguments
$params
array
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.