API Documentation

ZendX/JQuery.php

Includes |Classes |

Properties

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.


Includes

Zend/Json.php (Require Once)

Classes

ZendX_JQuery

Description

jQuery Global Class holding constants and static convienience methods.

Methods

enableForm, enableView, encodeJson,

enableForm( Zend_Form   $form, ) : void

Description

jQuery-enable a form instance

Arguments

Name Type Description Default
$form Zend_Form |

Return value

Type Description
void

enableView( Zend_View_Interface   $view, ) : void

Description

jQuery-enable a view instance

Arguments

Name Type Description Default
$view Zend_View_Interface |

Return value

Type Description
void

encodeJson( mixed   $value, ) : mixed

Description

Encode Json that may include javascript expressions.

Take care of using the Zend_Json_Encoder to alleviate problems with the json_encode magic key mechanism as of now.


Arguments

Name Type Description Default
$value mixed |

Return value

Type Description
mixed

Tags

Name Description
see Zend_Json::encode

Constants

  CDN_BASE_GOOGLE = http://ajax.googleapis.com/ajax/libs/




  CDN_BASE_GOOGLE_SSL = https://ajax.googleapis.com/ajax/libs/




  CDN_JQUERY_PATH_GOOGLE = /jquery.min.js

Always uses compressed version, because this is assumed to be the use case in production enviroment. An uncompressed version has to included manually.


  CDN_SUBFOLDER_JQUERY = jquery/




  CDN_SUBFOLDER_JQUERYUI = jqueryui/




  DEFAULT_JQUERY_VERSION = 1.3.2

Current default supported jQuery library version with ZendX_JQuery


  DEFAULT_UI_VERSION = 1.7.1

Currently supported jQuery UI library version with ZendX_JQuery


  RENDER_ALL = 255



  RENDER_JAVASCRIPT = 8



  RENDER_JQUERY_ON_LOAD = 16



  RENDER_LIBRARY = 1

Which parts of the the jQuery library should be rendered on echo'ing the jQuery library to the View. The constants act as bit-mask. This way the jQuery autogenerated code can be refactored based on personal needs.


  RENDER_SOURCES = 2



  RENDER_STYLESHEETS = 4



Documentation was generated by DocBlox.