PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/ZendFramework-1.11.12/extras/documentation/api/extras/db_ZendX_JQuery_View_Helper_AutoComplete.html

#
HTML | 252 lines | 239 code | 13 blank | 0 comment | 0 complexity | d93866e8ad19fe41aa5fda1401d88550 MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.0, MIT, ISC
  1. <html xmlns="http://www.w3.org/1999/xhtml"><head><title>Zend Framework Extras API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="css/jquery-ui.css" type="text/css"></link><link rel="stylesheet" href="css/docblox/jquery-ui-1.8.16.custom.css" type="text/css"></link><link rel="stylesheet" href="css/jquery.treeview.css" type="text/css"></link><link rel="stylesheet" href="css/theme.css" type="text/css"></link><script type="text/javascript" src="js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script><script type="text/javascript" src="js/jquery.cookie.js"></script><script type="text/javascript" src="js/jquery.treeview.js"></script><script type="text/javascript">
  2. $(document).ready(function() {
  3. $(".filetree").treeview({
  4. collapsed: true,
  5. persist: "cookie"
  6. });
  7. $("#accordion").accordion({
  8. collapsible: true,
  9. autoHeight: false,
  10. fillSpace: true
  11. });
  12. $(".tabs").tabs();
  13. });
  14. </script></head><body><div xmlns="" class="content">
  15. <div class="sub-page-main-header-api-documentation"><h2>API Documentation</h2></div>
  16. <div class="dotted-line"></div>
  17. </div>
  18. <div xmlns="" id="content">
  19. <script xmlns:dbx="http://docblox-project.org/xsl/functions">
  20. function filterElements()
  21. {
  22. inherited = !$('#show-inherited').hasClass('deselected');
  23. public = !$('#show-public').hasClass('deselected');
  24. protected = !$('#show-protected').hasClass('deselected');
  25. private = !$('#show-private').hasClass('deselected');
  26. $('div.public').each(function(index, val) {
  27. $(val).toggle(public && !($(val).hasClass('inherited_from') && !inherited));
  28. });
  29. $('div.protected').each(function(index, val) {
  30. $(val).toggle(protected && !($(val).hasClass('inherited_from') && !inherited));
  31. });
  32. $('div.private').each(function(index, val) {
  33. $(val).toggle(private && !($(val).hasClass('inherited_from') && !inherited));
  34. });
  35. }
  36. $(document).ready(function() {
  37. $('a.gripper').click(function() {
  38. $(this).nextAll('div.code-tabs').slideToggle();
  39. $(this).children('img').toggle();
  40. return false;
  41. });
  42. $('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').css('cursor', 'pointer');
  43. $('div.method code span.highlight,div.function code span.highlight,div.constant code span.highlight,div.property code span.highlight').click(function() {
  44. $(this).parent().nextAll('div.code-tabs').slideToggle();
  45. $(this).parent().prevAll('a.gripper').children('img').toggle();
  46. return false;
  47. });
  48. $('div.code-tabs').hide();
  49. $('a.gripper').show();
  50. $('div.code-tabs:empty').prevAll('a.gripper').html('');
  51. $('#show-public, #show-protected, #show-private, #show-inherited')
  52. .css('cursor', 'pointer')
  53. .click(function(){
  54. $(this).toggleClass('deselected');
  55. if ($(this).hasClass('deselected')) {
  56. $(this).fadeTo('fast', '0.4');
  57. } else {
  58. $(this).fadeTo('fast', '1.0');
  59. }
  60. filterElements();
  61. return false;
  62. });
  63. $('#show-protected, #show-private').click();
  64. // add the sliding behaviour to the file navigation and show it
  65. // it is initially hidden for non-JS users.
  66. $("#file-nav-box").show().hover(function() {
  67. $("#file-nav-container").slideDown(400);
  68. }, function() {
  69. $("#file-nav-container").slideUp(400);
  70. });
  71. });
  72. </script><h1 xmlns:dbx="http://docblox-project.org/xsl/functions" class="file">ZendX/JQuery/View/Helper/AutoComplete.php</h1>
  73. <div xmlns:dbx="http://docblox-project.org/xsl/functions" id="file-nav-box">
  74. <div id="file-nav-options">
  75. Show:
  76. <img src="images/icons/visibility_public.png" id="show-public"><img src="images/icons/visibility_protected.png" id="show-protected"><img src="images/icons/visibility_private.png" id="show-private"><span class="attribute" id="show-inherited">inherited</span>
  77. </div>
  78. <div id="file-nav-container">
  79. <ul id="file-nav"><li>
  80. <a href="#classes"><img src="images/icons/class.png" height="14">
  81. Classes
  82. </a><ul><li><a href="#%5CZendX_JQuery_View_Helper_AutoComplete">\ZendX_JQuery_View_Helper_AutoComplete</a></li></ul>
  83. </li></ul>
  84. <div style="clear: left;"></div>
  85. </div>
  86. <div id="file-nav-tab">
  87. Table of Contents
  88. </div>
  89. </div>
  90. <a xmlns:dbx="http://docblox-project.org/xsl/functions" name="top" class="anchor"></a><div id="file-description">
  91. <p xmlns:dbx="http://docblox-project.org/xsl/functions" class="short-description">Zend Framework</p>
  92. <div xmlns:dbx="http://docblox-project.org/xsl/functions" class="long-description"><p>LICENSE</p>
  93. <p>This source file is subject to the new BSD license that is bundled
  94. with this package in the file LICENSE.txt.
  95. It is also available through the world-wide-web at this URL:
  96. http://framework.zend.com/license/new-bsd
  97. If you did not receive a copy of the license and are unable to
  98. obtain it through the world-wide-web, please send an email
  99. to license@zend.com so we can send you a copy immediately.</p>
  100. </div>
  101. </div>
  102. <dl class="file-info">
  103. <dt xmlns:dbx="http://docblox-project.org/xsl/functions">Category</dt>
  104. <dd xmlns:dbx="http://docblox-project.org/xsl/functions">ZendX
  105.  
  106. </dd>
  107. <dt xmlns:dbx="http://docblox-project.org/xsl/functions">Copyright</dt>
  108. <dd xmlns:dbx="http://docblox-project.org/xsl/functions">Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  109.  
  110. </dd>
  111. <dt xmlns:dbx="http://docblox-project.org/xsl/functions">License</dt>
  112. <dd xmlns:dbx="http://docblox-project.org/xsl/functions">
  113. <a href="http://framework.zend.com/license/new-bsd">New BSD License</a>
  114.  
  115. </dd>
  116. <dt xmlns:dbx="http://docblox-project.org/xsl/functions">Package</dt>
  117. <dd xmlns:dbx="http://docblox-project.org/xsl/functions">ZendX_JQuery
  118.  
  119. </dd>
  120. <dt xmlns:dbx="http://docblox-project.org/xsl/functions">Subpackage</dt>
  121. <dd xmlns:dbx="http://docblox-project.org/xsl/functions">View
  122.  
  123. </dd>
  124. <dt xmlns:dbx="http://docblox-project.org/xsl/functions">Version</dt>
  125. <dd xmlns:dbx="http://docblox-project.org/xsl/functions">$Id: AutoComplete.php 20752 2010-01-29 11:31:30Z beberlei $
  126.  
  127. </dd>
  128. </dl>
  129. <a name="classes" class="anchor"></a><a xmlns:dbx="http://docblox-project.org/xsl/functions" id="\ZendX_JQuery_View_Helper_AutoComplete" class="anchor"></a><h2 xmlns:dbx="http://docblox-project.org/xsl/functions" class="class">\ZendX_JQuery_View_Helper_AutoComplete<div class="to-top"><a href="#top">jump to top</a></div>
  130. </h2>
  131. <div xmlns:dbx="http://docblox-project.org/xsl/functions" class="class">
  132. <small class="package"><b>Package: </b>ZendX\JQuery\View</small><p class="short-description">jQuery Autocomplete View Helper</p>
  133. <div class="long-description">
  134. </div>
  135. <dl class="class-info">
  136. <dt>Parent(s)</dt>
  137. <dd>
  138. <a href="db_ZendX_JQuery_View_Helper_UiWidget.html#%5CZendX_JQuery_View_Helper_UiWidget">\ZendX_JQuery_View_Helper_UiWidget</a>
  139. &lt;
  140. \Zend_View_Helper_HtmlElement</dd>
  141. <dt>Copyright</dt>
  142. <dd>Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  143.  
  144. </dd>
  145. <dt>License</dt>
  146. <dd>
  147. <a href="http://framework.zend.com/license/new-bsd">New BSD License</a>
  148.  
  149. </dd>
  150. <dt>Uses</dt>
  151. <dd>\Zend_Json,
  152.  
  153. </dd>
  154. </dl>
  155. <h3>Methods</h3>
  156. <div>
  157. <a id="\ZendX_JQuery_View_Helper_AutoComplete::autoComplete()" class="anchor"></a><div class="method public">
  158. <a href="#" class="gripper"><img src="images/icons/arrow_right.png"><img src="images/icons/arrow_down.png" style="display: none;"></a><code><img src="images/icons/method.png" alt="method"><img src="images/icons/visibility_public.png" style="margin-right: 5px" alt="public"><span class="highlight">autoComplete</span><span class="nb-faded-text">(
  159. String $id, String $value
  160. =
  161. null, array $params
  162. =
  163. array(), array $attribs
  164. =
  165. array()
  166. )
  167. </span>
  168. :
  169. String</code><div class="description"><p class="short_description">Builds an AutoComplete ready input field.</p></div>
  170. <div class="code-tabs">
  171. <div class="long-description"><p>This view helper builds an input field with the {@link Zend_View_Helper_FormText} FormText
  172. Helper and adds additional javascript to the jQuery stack to initialize an AutoComplete
  173. field. Make sure you have set one out of the two following options: $params['data'] or
  174. $params['url']. The first one accepts an array as data input to the autoComplete, the
  175. second accepts an url, where the autoComplete content is returned from. For the format
  176. see jQuery documentation.</p>
  177. </div>
  178. <strong>Parameters</strong><table class="argument-info">
  179. <thead><tr>
  180. <th>Name</th>
  181. <th>Type</th>
  182. <th>Description</th>
  183. </tr></thead>
  184. <tr>
  185. <th>$id</th>
  186. <td>String</td>
  187. <td><em></em></td>
  188. </tr>
  189. <tr>
  190. <th>$value</th>
  191. <td>String</td>
  192. <td><em></em></td>
  193. </tr>
  194. <tr>
  195. <th>$params</th>
  196. <td>array</td>
  197. <td><em></em></td>
  198. </tr>
  199. <tr>
  200. <th>$attribs</th>
  201. <td>array</td>
  202. <td><em></em></td>
  203. </tr>
  204. </table>
  205. <strong>Returns</strong><table class="argument-info">
  206. <thead><tr>
  207. <th>Type</th>
  208. <th>Description</th>
  209. </tr></thead>
  210. <tr>
  211. <td>String</td>
  212. <td></td>
  213. </tr>
  214. </table>
  215. <strong>Throws</strong><table class="argument-info">
  216. <thead><tr>
  217. <th>Exception</th>
  218. <th>Description</th>
  219. </tr></thead>
  220. <tr>
  221. <td><a href="db_ZendX_JQuery_Exception.html#%5CZendX_JQuery_Exception">\ZendX_JQuery_Exception</a></td>
  222. <td><em></em></td>
  223. </tr>
  224. </table>
  225. <strong>Details</strong><dl class="function-info">
  226. <dt>Link</dt>
  227. <dd>
  228. <a href="http://docs.jquery.com/UI/Autocomplete">http://docs.jquery.com/UI/Autocomplete</a>
  229.  
  230. </dd>
  231. </dl>
  232. </div>
  233. <div class="clear"></div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <small xmlns="" class="footer">Documentation was generated by <a href="http://docblox-project.org">DocBlox 0.15.1</a>.
  239. </small></body></html>