Проект для складирования кода ZF 1.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

340 lines
19 KiB

<!DOCTYPE html><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta charset="utf-8">
<title>Zend Framework Extras API Documentation » \ZendX_JQuery</title>
<meta name="author" content="Mike van Riel">
<meta name="description" content="">
<link href="../css/template.css" rel="stylesheet" media="all">
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner"><div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Zend Framework Extras API Documentation</a><div class="nav-collapse"><ul class="nav">
<li class="dropdown">
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
<li><a>Packages</a></li>
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
<li><a href="../packages/ZendX.html"><i class="icon-folder-open"></i> ZendX</a></li>
<li><a href="../packages/ZendX_Application.html"><i class="icon-folder-open"></i> ZendX_Application</a></li>
<li><a href="../packages/ZendX_Console.html"><i class="icon-folder-open"></i> ZendX_Console</a></li>
<li><a href="../packages/ZendX_Db.html"><i class="icon-folder-open"></i> ZendX_Db</a></li>
<li><a href="../packages/ZendX_JQuery.html"><i class="icon-folder-open"></i> ZendX_JQuery</a></li>
</ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
Reports <b class="caret"></b></a><ul class="dropdown-menu">
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
<span class="label label-info">38</span></a></li>
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
<ul></ul></a></li>
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
<span class="label label-info">4</span></a></li>
</ul>
</li>
</ul></div>
</div></div>
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
</div>
<div id="___" class="container">
<noscript><div class="alert alert-warning">
Javascript is disabled; several features are only available
if Javascript is enabled.
</div></noscript>
<div class="row">
<div class="span4">
<div xmlns:php="http://php.net/xsl" class="btn-toolbar">
<div class="btn-group visibility" data-toggle="buttons-checkbox">
<button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button>
</div>
<div class="btn-group view pull-right" data-toggle="buttons-radio">
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
</div>
</div>
<ul xmlns:php="http://php.net/xsl" class="side-nav nav nav-list">
<li class="nav-header">
<i title="Methods" class="icon-custom icon-method"></i> Methods
<ul>
<li class="method public "><a href="#method_enableForm" title="enableForm() :: jQuery-enable a form instance"><span class="description">jQuery-enable a form instance</span><pre>enableForm()</pre></a></li>
<li class="method public "><a href="#method_enableView" title="enableView() :: jQuery-enable a view instance"><span class="description">jQuery-enable a view instance</span><pre>enableView()</pre></a></li>
<li class="method public "><a href="#method_encodeJson" title="encodeJson() :: Encode Json that may include javascript expressions."><span class="description">Encode Json that may include javascript expressions.</span><pre>encodeJson()</pre></a></li>
</ul>
</li>
<li class="nav-header">
<i title="Constants" class="icon-custom icon-constant"></i> Constants
<ul>
<li class="constant "><a href="#constant_CDN_BASE_GOOGLE" title="CDN_BASE_GOOGLE() :: "><span class="description">CDN_BASE_GOOGLE</span><pre>CDN_BASE_GOOGLE</pre></a></li>
<li class="constant "><a href="#constant_CDN_BASE_GOOGLE_SSL" title="CDN_BASE_GOOGLE_SSL() :: "><span class="description">CDN_BASE_GOOGLE_SSL</span><pre>CDN_BASE_GOOGLE_SSL</pre></a></li>
<li class="constant "><a href="#constant_CDN_JQUERY_PATH_GOOGLE" title="CDN_JQUERY_PATH_GOOGLE() :: Always uses compressed version, because this is assumed to be the use case
in production enviroment. An uncompressed version has to included manually."><span class="description">Always uses compressed version, because this is assumed to be the use case
in production enviroment. An uncompressed version has to included manually.</span><pre>CDN_JQUERY_PATH_GOOGLE</pre></a></li>
<li class="constant "><a href="#constant_CDN_SUBFOLDER_JQUERY" title="CDN_SUBFOLDER_JQUERY() :: "><span class="description">CDN_SUBFOLDER_JQUERY</span><pre>CDN_SUBFOLDER_JQUERY</pre></a></li>
<li class="constant "><a href="#constant_CDN_SUBFOLDER_JQUERYUI" title="CDN_SUBFOLDER_JQUERYUI() :: "><span class="description">CDN_SUBFOLDER_JQUERYUI</span><pre>CDN_SUBFOLDER_JQUERYUI</pre></a></li>
<li class="constant "><a href="#constant_DEFAULT_JQUERY_VERSION" title="DEFAULT_JQUERY_VERSION() :: Current default supported jQuery library version with ZendX_JQuery"><span class="description">Current default supported jQuery library version with ZendX_JQuery</span><pre>DEFAULT_JQUERY_VERSION</pre></a></li>
<li class="constant "><a href="#constant_DEFAULT_UI_VERSION" title="DEFAULT_UI_VERSION() :: Currently supported jQuery UI library version with ZendX_JQuery"><span class="description">Currently supported jQuery UI library version with ZendX_JQuery</span><pre>DEFAULT_UI_VERSION</pre></a></li>
<li class="constant "><a href="#constant_RENDER_ALL" title="RENDER_ALL() :: "><span class="description">RENDER_ALL</span><pre>RENDER_ALL</pre></a></li>
<li class="constant "><a href="#constant_RENDER_JAVASCRIPT" title="RENDER_JAVASCRIPT() :: "><span class="description">RENDER_JAVASCRIPT</span><pre>RENDER_JAVASCRIPT</pre></a></li>
<li class="constant "><a href="#constant_RENDER_JQUERY_ON_LOAD" title="RENDER_JQUERY_ON_LOAD() :: "><span class="description">RENDER_JQUERY_ON_LOAD</span><pre>RENDER_JQUERY_ON_LOAD</pre></a></li>
<li class="constant "><a href="#constant_RENDER_LIBRARY" title="RENDER_LIBRARY() :: 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."><span class="description">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.</span><pre>RENDER_LIBRARY</pre></a></li>
<li class="constant "><a href="#constant_RENDER_SOURCES" title="RENDER_SOURCES() :: "><span class="description">RENDER_SOURCES</span><pre>RENDER_SOURCES</pre></a></li>
<li class="constant "><a href="#constant_RENDER_STYLESHEETS" title="RENDER_STYLESHEETS() :: "><span class="description">RENDER_STYLESHEETS</span><pre>RENDER_STYLESHEETS</pre></a></li>
</ul>
</li>
</ul>
</div>
<div class="span8">
<a xmlns:php="http://php.net/xsl" id="\ZendX_JQuery"></a><ul xmlns:php="http://php.net/xsl" class="breadcrumb">
<li>
<a href="../index.html"><i title="Classes" class="icon-custom icon-class"></i></a><span class="divider">\</span>
</li>
<li class="active">
<span class="divider">\</span><a href="../classes/ZendX_JQuery.html">ZendX_JQuery</a>
</li>
</ul>
<div xmlns:php="http://php.net/xsl" class="element class">
<p class="short_description">jQuery Global Class holding constants and static convienience methods.</p>
<div class="details">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>todo</th>
<td>Offer convenience methods to add a tab or accordion container/pane combination.</td>
</tr>
<tr>
<th>package</th>
<td><a href="../packages/ZendX_JQuery.html">ZendX_JQuery</a></td>
</tr>
<tr>
<th>copyright</th>
<td>Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)</td>
</tr>
<tr>
<th>license</th>
<td><a href="http://framework.zend.com/license/new-bsd">New BSD License</a></td>
</tr>
</table>
<h3>
<i title="Methods" class="icon-custom icon-method"></i> Methods</h3>
<a id="method_enableForm"></a><div class="element clickable method public method_enableForm " data-toggle="collapse" data-target=".method_enableForm .collapse" title="public">
<h2>jQuery-enable a form instance</h2>
<pre>enableForm(\Zend_Form $form) : void</pre>
<div class="labels"><span class="label">Static</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$form</h4>
<code>\Zend_Form</code>
</div>
</div></div>
</div>
<a id="method_enableView"></a><div class="element clickable method public method_enableView " data-toggle="collapse" data-target=".method_enableView .collapse" title="public">
<h2>jQuery-enable a view instance</h2>
<pre>enableView(\Zend_View_Interface $view) : void</pre>
<div class="labels"><span class="label">Static</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$view</h4>
<code>\Zend_View_Interface</code>
</div>
</div></div>
</div>
<a id="method_encodeJson"></a><div class="element clickable method public method_encodeJson " data-toggle="collapse" data-target=".method_encodeJson .collapse" title="public">
<h2>Encode Json that may include javascript expressions.</h2>
<pre>encodeJson(mixed $value) : mixed</pre>
<div class="labels"><span class="label">Static</span></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"><p>Take care of using the Zend_Json_Encoder to alleviate problems with the json_encode
magic key mechanism as of now.</p></div>
<table class="table table-bordered"><tr>
<th>see</th>
<td><a href="%5CZend_Json::encode"></a></td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$value</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<h3>
<i title="Constants" class="icon-custom icon-constant"></i> Constants</h3>
<a id="constant_CDN_BASE_GOOGLE"> </a><div class="element clickable constant constant_CDN_BASE_GOOGLE" data-toggle="collapse" data-target=".constant_CDN_BASE_GOOGLE .collapse" title="">
<h2>CDN_BASE_GOOGLE</h2>
<pre>CDN_BASE_GOOGLE = 'http://ajax.googleapis.com/ajax/libs/' </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>see</th>
<td><a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery"></a></td>
</tr>
<tr>
<th>const</th>
<td>string Base path to CDN</td>
</tr>
</table>
</div></div>
</div>
<a id="constant_CDN_BASE_GOOGLE_SSL"> </a><div class="element clickable constant constant_CDN_BASE_GOOGLE_SSL" data-toggle="collapse" data-target=".constant_CDN_BASE_GOOGLE_SSL .collapse" title="">
<h2>CDN_BASE_GOOGLE_SSL</h2>
<pre>CDN_BASE_GOOGLE_SSL = 'https://ajax.googleapis.com/ajax/libs/' </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>see</th>
<td><a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery"></a></td>
</tr>
<tr>
<th>const</th>
<td>string Base path to CDN</td>
</tr>
</table>
</div></div>
</div>
<a id="constant_CDN_JQUERY_PATH_GOOGLE"> </a><div class="element clickable constant constant_CDN_JQUERY_PATH_GOOGLE" data-toggle="collapse" data-target=".constant_CDN_JQUERY_PATH_GOOGLE .collapse" title="">
<h2>Always uses compressed version, because this is assumed to be the use case
in production enviroment. An uncompressed version has to included manually.</h2>
<pre>CDN_JQUERY_PATH_GOOGLE = '/jquery.min.js' </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>see</th>
<td><a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery"></a></td>
</tr>
<tr>
<th>const</th>
<td>string File path after base and version</td>
</tr>
</table>
</div></div>
</div>
<a id="constant_CDN_SUBFOLDER_JQUERY"> </a><div class="element clickable constant constant_CDN_SUBFOLDER_JQUERY" data-toggle="collapse" data-target=".constant_CDN_SUBFOLDER_JQUERY .collapse" title="">
<h2>CDN_SUBFOLDER_JQUERY</h2>
<pre>CDN_SUBFOLDER_JQUERY = 'jquery/' </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered"><tr>
<th>const</th>
<td>string</td>
</tr></table>
</div></div>
</div>
<a id="constant_CDN_SUBFOLDER_JQUERYUI"> </a><div class="element clickable constant constant_CDN_SUBFOLDER_JQUERYUI" data-toggle="collapse" data-target=".constant_CDN_SUBFOLDER_JQUERYUI .collapse" title="">
<h2>CDN_SUBFOLDER_JQUERYUI</h2>
<pre>CDN_SUBFOLDER_JQUERYUI = 'jqueryui/' </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered"><tr>
<th>const</th>
<td>string</td>
</tr></table>
</div></div>
</div>
<a id="constant_DEFAULT_JQUERY_VERSION"> </a><div class="element clickable constant constant_DEFAULT_JQUERY_VERSION" data-toggle="collapse" data-target=".constant_DEFAULT_JQUERY_VERSION .collapse" title="">
<h2>Current default supported jQuery library version with ZendX_JQuery</h2>
<pre>DEFAULT_JQUERY_VERSION = "1.3.2" </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered"><tr>
<th>const</th>
<td>string</td>
</tr></table>
</div></div>
</div>
<a id="constant_DEFAULT_UI_VERSION"> </a><div class="element clickable constant constant_DEFAULT_UI_VERSION" data-toggle="collapse" data-target=".constant_DEFAULT_UI_VERSION .collapse" title="">
<h2>Currently supported jQuery UI library version with ZendX_JQuery</h2>
<pre>DEFAULT_UI_VERSION = "1.7.1" </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered"><tr>
<th>const</th>
<td>string</td>
</tr></table>
</div></div>
</div>
<a id="constant_RENDER_ALL"> </a><div class="element clickable constant constant_RENDER_ALL" data-toggle="collapse" data-target=".constant_RENDER_ALL .collapse" title="">
<h2>RENDER_ALL</h2>
<pre>RENDER_ALL = 255 </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_RENDER_JAVASCRIPT"> </a><div class="element clickable constant constant_RENDER_JAVASCRIPT" data-toggle="collapse" data-target=".constant_RENDER_JAVASCRIPT .collapse" title="">
<h2>RENDER_JAVASCRIPT</h2>
<pre>RENDER_JAVASCRIPT = 8 </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_RENDER_JQUERY_ON_LOAD"> </a><div class="element clickable constant constant_RENDER_JQUERY_ON_LOAD" data-toggle="collapse" data-target=".constant_RENDER_JQUERY_ON_LOAD .collapse" title="">
<h2>RENDER_JQUERY_ON_LOAD</h2>
<pre>RENDER_JQUERY_ON_LOAD = 16 </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_RENDER_LIBRARY"> </a><div class="element clickable constant constant_RENDER_LIBRARY" data-toggle="collapse" data-target=".constant_RENDER_LIBRARY .collapse" title="">
<h2>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.</h2>
<pre>RENDER_LIBRARY = 1 </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description">
<div class="long_description"></div>
<table class="table table-bordered">
<tr>
<th>see</th>
<td><a href="%5CZendX_JQuery_Helper_JQuery::setRenderMode"></a></td>
</tr>
<tr>
<th>const</th>
<td>Integer</td>
</tr>
</table>
</div></div>
</div>
<a id="constant_RENDER_SOURCES"> </a><div class="element clickable constant constant_RENDER_SOURCES" data-toggle="collapse" data-target=".constant_RENDER_SOURCES .collapse" title="">
<h2>RENDER_SOURCES</h2>
<pre>RENDER_SOURCES = 2 </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
<a id="constant_RENDER_STYLESHEETS"> </a><div class="element clickable constant constant_RENDER_STYLESHEETS" data-toggle="collapse" data-target=".constant_RENDER_STYLESHEETS .collapse" title="">
<h2>RENDER_STYLESHEETS</h2>
<pre>RENDER_STYLESHEETS = 4 </pre>
<div class="labels"></div>
<div class="row collapse"><div class="detail-description"><div class="long_description"></div></div></div>
</div>
</div>
</div>
</div>
</div>
<div class="row"><footer class="span12">
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.8.5</a> and<br>
generated on 2016-04-13T11:31:00-05:00.<br></footer></div>
</div>
</body>
</html>