Zend_Http_UserAgent-Features_TeraWurfl.xml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.http.user-agent-features-tera-wurfl">
  4. <title>The TeraWurfl UserAgent Features Adapter</title>
  5. <sect2 id="zend.http.user-agent-features-tera-wurfl.intro">
  6. <title>Overview</title>
  7. <para>
  8. <ulink url="">TeraWurfl</ulink> parses the WURFL database into a MySQL
  9. database, and provides an API for querying that database for mobile device capabilies.
  10. The API also performs rigorous caching, leading to excellent performance.
  11. </para>
  12. </sect2>
  13. <sect2 id="zend.http.user-agent-features-tera-wurfl.quick-start">
  14. <title>Quick Start</title>
  15. <para>
  16. You will need to <ulink
  17. url="http://www.tera-wurfl.com/wiki/index.php/Downloads">download</ulink> and <ulink
  18. url="http://www.tera-wurfl.com/wiki/index.php/Installation">install</ulink>
  19. TeraWurfl. Make a note of where you install the library
  20. (<filename>TeraWurfl.php</filename>); we recommend installing it in your application's
  21. <filename>library</filename> directory.
  22. </para>
  23. <para>
  24. Once installed, the easiest way to use TeraWurfl is to configure it via the application
  25. resource.
  26. </para>
  27. <programlisting language="ini"><![CDATA[
  28. resources.useragent.terawurfl.terawurfl_lib_dir = APPLICATION_PATH "/../library/"
  29. ]]></programlisting>
  30. <para>
  31. If the file is autoloadable, you can also specify an empty configuration in order to
  32. utilize the adapter.
  33. </para>
  34. <programlisting language="ini"><![CDATA[
  35. resources.useragent.terawurfl[] =
  36. ]]></programlisting>
  37. </sect2>
  38. <sect2 id="zend.http.user-agent-features-tera-wurfl.options">
  39. <title>Configuration Options</title>
  40. <variablelist>
  41. <title>TeraWurfl API Options</title>
  42. <varlistentry>
  43. <term>terawurfl.terawurfl_lib_dir</term>
  44. <listitem>
  45. <para>
  46. If using the TeraWurfl API, use this key to specify in which
  47. directory the <filename>TeraWurfl.php</filename> file exists.
  48. </para>
  49. </listitem>
  50. </varlistentry>
  51. </variablelist>
  52. </sect2>
  53. <sect2 id="zend.http.user-agent-features-tera-wurfl.methods">
  54. <title>Available Methods</title>
  55. <variablelist>
  56. <varlistentry id="zend.http.user-agent-features-tera-wurfl.methods.get-from-request">
  57. <term>
  58. <methodsynopsis>
  59. <methodname>getFromRequest</methodname>
  60. <methodparam>
  61. <funcparams>array $request, array $config</funcparams>
  62. </methodparam>
  63. </methodsynopsis>
  64. </term>
  65. <listitem>
  66. <para>
  67. Decompose the request in order to return an array of device capabilities.
  68. </para>
  69. </listitem>
  70. </varlistentry>
  71. </variablelist>
  72. </sect2>
  73. </sect1>