Static Public Member Functions | Data Fields

ZendX_JQuery Class Reference

Static Public Member Functions

static enableView (Zend_View_Interface $view)
static enableForm (Zend_Form $form)
static encodeJson ($value)

Data Fields

const DEFAULT_JQUERY_VERSION = "1.3.2"
const DEFAULT_UI_VERSION = "1.7.1"
const CDN_BASE_GOOGLE = 'http://ajax.googleapis.com/ajax/libs/'
const CDN_BASE_GOOGLE_SSL = 'https://ajax.googleapis.com/ajax/libs/'
const CDN_SUBFOLDER_JQUERY = 'jquery/'
const CDN_SUBFOLDER_JQUERYUI = 'jqueryui/'
const CDN_JQUERY_PATH_GOOGLE = '/jquery.min.js'
const RENDER_LIBRARY = 1
const RENDER_SOURCES = 2
const RENDER_STYLESHEETS = 4
const RENDER_JAVASCRIPT = 8
const RENDER_JQUERY_ON_LOAD = 16
const RENDER_ALL = 255

Detailed Description

Definition at line 36 of file JQuery.php.


Member Function Documentation

static enableForm ( Zend_Form form ) [static]

jQuery-enable a form instance

Parameters:
Zend_Form$form
Returns:
void

Definition at line 117 of file JQuery.php.

static enableView ( Zend_View_Interface view ) [static]

jQuery-enable a view instance

Parameters:
Zend_View_Interface$view
Returns:
void

Definition at line 104 of file JQuery.php.

static encodeJson ( value ) [static]

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.

See also:
Zend_Json::encode
Parameters:
mixed$value
Returns:
mixed

See also:
Zend_Json

Definition at line 143 of file JQuery.php.


Field Documentation

const CDN_BASE_GOOGLE = 'http://ajax.googleapis.com/ajax/libs/'
See also:
http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery string Base path to CDN

Definition at line 56 of file JQuery.php.

const CDN_BASE_GOOGLE_SSL = 'https://ajax.googleapis.com/ajax/libs/'
See also:
http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery string Base path to CDN

Definition at line 62 of file JQuery.php.

const 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.

See also:
http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery string File path after base and version

Definition at line 81 of file JQuery.php.

const CDN_SUBFOLDER_JQUERY = 'jquery/'

string

Definition at line 67 of file JQuery.php.

const CDN_SUBFOLDER_JQUERYUI = 'jqueryui/'

string

Definition at line 72 of file JQuery.php.

const DEFAULT_JQUERY_VERSION = "1.3.2"

Current default supported jQuery library version with ZendX_JQuery

string

Definition at line 43 of file JQuery.php.

const DEFAULT_UI_VERSION = "1.7.1"

Currently supported jQuery UI library version with ZendX_JQuery

string

Definition at line 50 of file JQuery.php.

const 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.

See also:
ZendX_JQuery_Helper_JQuery::setRenderMode Integer

Definition at line 91 of file JQuery.php.


The documentation for this class was generated from the following file: