Zend_ProgressBar_Adapter_JsPull.xml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect3 id="zend.progressbar.adapter.jspull">
  4. <title>Zend_ProgressBar_Adapter_JsPull</title>
  5. <para>
  6. <classname>Zend_ProgressBar_Adapter_JsPull</classname> is the opposite of jsPush,
  7. as it requires to pull for new updates, instead of pushing updates out
  8. to the browsers. Generally you should use the adapter with the
  9. persistence option of the <classname>Zend_ProgressBar</classname>. On notify,
  10. the adapter sends a <acronym>JSON</acronym> string to the browser, which looks exactly
  11. like the <acronym>JSON</acronym> string which is send by the jsPush adapter. The only
  12. difference is, that it contains an additional parameter,
  13. <property>finished</property>, which is either <constant>FALSE</constant> when
  14. <methodname>update()</methodname> is called or <constant>TRUE</constant>, when
  15. <methodname>finish()</methodname> is called.
  16. </para>
  17. <para>
  18. You can set the adapter options either via the <methodname>set*()</methodname> methods
  19. or give an array or a <classname>Zend_Config</classname> instance with options as first
  20. parameter to the constructor. The available options are:
  21. </para>
  22. <itemizedlist>
  23. <listitem>
  24. <para>
  25. <property>exitAfterSend</property>: Exits the current request after the
  26. data were send to the browser. Default is <constant>TRUE</constant>.
  27. </para>
  28. </listitem>
  29. </itemizedlist>
  30. </sect3>
  31. <!--
  32. vim:se ts=4 sw=4 et:
  33. -->