File: Zend_Http_UserAgent-Features_TeraWurfl.xml

package info (click to toggle)
zendframework 1.12.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 133,584 kB
  • sloc: xml: 1,311,829; php: 570,173; sh: 170; makefile: 125; sql: 121
file content (88 lines) | stat: -rw-r--r-- 3,234 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect1 id="zend.http.user-agent-features-tera-wurfl">
    <title>The TeraWurfl UserAgent Features Adapter</title>

    <sect2 id="zend.http.user-agent-features-tera-wurfl.intro">
        <title>Overview</title>

        <para>
            <ulink url="">TeraWurfl</ulink> parses the WURFL database into a MySQL
            database, and provides an API for querying that database for mobile device capabilies.
            The API also performs rigorous caching, leading to excellent performance.
        </para>
    </sect2>

    <sect2 id="zend.http.user-agent-features-tera-wurfl.quick-start">
        <title>Quick Start</title>

        <para>
            You will need to <ulink
                url="http://www.tera-wurfl.com/wiki/index.php/Downloads">download</ulink> and <ulink
                url="http://www.tera-wurfl.com/wiki/index.php/Installation">install</ulink>
            TeraWurfl. Make a note of where you install the library
            (<filename>TeraWurfl.php</filename>); we recommend installing it in your application's
            <filename>library</filename> directory.
        </para>

        <para>
            Once installed, the easiest way to use TeraWurfl is to configure it via the application
            resource.
        </para>

        <programlisting language="ini"><![CDATA[
resources.useragent.terawurfl.terawurfl_lib_dir = APPLICATION_PATH "/../library/"
]]></programlisting>

        <para>
            If the file is autoloadable, you can also specify an empty configuration in order to
            utilize the adapter.
        </para>

        <programlisting language="ini"><![CDATA[
resources.useragent.terawurfl[] =
]]></programlisting>
    </sect2>

    <sect2 id="zend.http.user-agent-features-tera-wurfl.options">
        <title>Configuration Options</title>

        <variablelist>
            <title>TeraWurfl API Options</title>

            <varlistentry>
                <term>terawurfl.terawurfl_lib_dir</term>

                <listitem>
                    <para>
                        If using the TeraWurfl API, use this key to specify in which
                        directory the <filename>TeraWurfl.php</filename> file exists.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </sect2>

    <sect2 id="zend.http.user-agent-features-tera-wurfl.methods">
        <title>Available Methods</title>

        <variablelist>
            <varlistentry id="zend.http.user-agent-features-tera-wurfl.methods.get-from-request">
                <term>
                    <methodsynopsis>
                        <methodname>getFromRequest</methodname>
                        <methodparam>
                            <funcparams>array $request, array $config</funcparams>
                        </methodparam>
                    </methodsynopsis>
                </term>

                <listitem>
                    <para>
                        Decompose the request in order to return an array of device capabilities.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </sect2>
</sect1>