Class ZendX_JQuery

Description

jQuery Global Class holding constants and static convienience methods.

  • copyright: Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  • todo: Offer convenience methods to add a tab or accordion container/pane combination.
  • license: New BSD License

Located in /JQuery.php (line 31)


	
			
Class Constant Summary
 CDN_BASE_GOOGLE = 'http://ajax.googleapis.com/ajax/libs/jquery/'
 CDN_JQUERY_PATH_GOOGLE = '/jquery.min.js'
 RENDER_ALL = 255
Method Summary
 static void enableForm ( $form)
 static void enableView ( $view)
Methods
static enableForm (line 82)

jQuery-enable a form instance

  • access: public
static void enableForm ( $form)
  • Zend_Form $form
static enableView (line 69)

jQuery-enable a view instance

  • access: public
static void enableView ( $view)
  • Zend_View_Interface $view
Class Constants
CDN_BASE_GOOGLE = 'http://ajax.googleapis.com/ajax/libs/jquery/' (line 37)
  • see: jquery
CDN_JQUERY_PATH_GOOGLE = '/jquery.min.js' (line 46)

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

  • see: jquery
RENDER_ALL = 255 (line 61)
RENDER_JAVASCRIPT = 8 (line 59)
RENDER_JQUERY_ON_LOAD = 16 (line 60)
RENDER_LIBRARY = 1 (line 56)

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: ZendX_JQuery_Helper_JQuery::setRenderMode
RENDER_SOURCES = 2 (line 57)
RENDER_STYLESHEETS = 4 (line 58)

Documentation generated on Sat, 31 Jan 2009 14:44:41 +0300 by phpDocumentor 1.4.2