TeraWurfl
[ class tree: TeraWurfl ] [ index: TeraWurfl ] [ all elements ]

Class: TeraWurflConfig

Source Location: /TeraWurflConfig.php

Class Overview


This static class provides the global configuration settings for Tera-WURFL.


Author(s):

Variables



Class Details

[line 21]
This static class provides the global configuration settings for Tera-WURFL.



Tags:



[ Top ]


Class Variables

static $CACHE =  "TeraWurflCache"

[line 56]

Device Cache Table Name



Tags:

access:  public

Type:   String


[ Top ]

static $CACHE_ENABLE =  true

[line 86]

Enable Caching System



Tags:

access:  public

Type:   Bool


[ Top ]

static $CAPABILITY_FILTER =  false

[line 154]

Allows you to store only the specified capabilities from the WURFL file. By default, every capability in the WURFL is stored in the

database and made available to your scripts. If you only want to know if the device is wireless or not, you can store only the is_wireless_device capability. To disable the filter, set it to false, to enable it, you must set it to an array. This array can contain the group names (if you want to include the entire group, i.e. "product_info") and/or capability names (if you want just a specific capability, i.e. "is_wireless_device").

Usage Example:

  1.     public static $CAPABILITY_FILTER array(
  2.         // Complete Capability Groups
  3.         "product_info",
  4.  
  5.         // Individual Capabilities
  6.         "max_image_width",
  7.         "max_image_height",
  8.         "chtml_make_phone_call_string",
  9.     );




Tags:

access:  public

Type:   Mixed


[ Top ]

static $DATADIR =  'data/'

[line 81]

Data Directory



Tags:

access:  public

Type:   String


[ Top ]

static $DB_CONNECTOR =  "MySQL5"

[line 46]

Database Connector (MySQL4, MySQL5, MSSQL2005 **EXPERIMENTAL**)



Tags:

access:  public

Type:   String


[ Top ]

static $DB_HOST =  "localhost"

[line 26]

Database Hostname



Tags:

access:  public

Type:   String


[ Top ]

static $DB_PASS =  'wurfl'

[line 36]

Database Password



Tags:

access:  public

Type:   String


[ Top ]

static $DB_SCHEMA =  "tera_wurfl_demo"

[line 41]

Database Name / Schema Name



Tags:

access:  public

Type:   String


[ Top ]

static $DB_USER =  "terawurfluser"

[line 31]

Database User



Tags:

access:  public

Type:   String


[ Top ]

static $DEVICES =  "TeraWurfl"

[line 51]

Device Table Name



Tags:

access:  public

Type:   String


[ Top ]

static $INDEX =  "TeraWurflIndex"

[line 61]

Device Index Table Name



Tags:

access:  public

Type:   String


[ Top ]

static $LOG_FILE =  'wurfl.log'

[line 107]

Filename of Log File (found in DATADIR; default: wurfl.log)



Tags:

access:  public

Type:   String


[ Top ]

static $LOG_LEVEL =  LOG_WARNING

[line 113]

Log Level as defined by PHP Constants LOG_ERR, LOG_WARNING and LOG_NOTICE.

Should be changed to LOG_WARNING or LOG_ERR for production sites




Tags:

access:  public

Type:   Int


[ Top ]

static $MEMORY_LIMIT =  "256M"

[line 124]

PHP Memory Limit. See OVERRIDE_MEMORY_LIMIT for more info



Tags:

access:  public

Type:   String


[ Top ]

static $MERGE =  "TeraWurflMerge"

[line 66]

Merged Device Table



Tags:

access:  public

Type:   String


[ Top ]

static $OVERRIDE_MEMORY_LIMIT =  true

[line 119]

Enable to override PHP's memory limit if you are having problems loading the WURFL data like this:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in TeraWurflLoader.php on line 287




Tags:

access:  public

Type:   Bool


[ Top ]

static $PATCH_ENABLE =  true

[line 91]

Enable Patches (must reload WURFL after changing)



Tags:

access:  public

Type:   Bool


[ Top ]

static $PATCH_FILE =  'custom_web_patch.xml;web_browsers_patch.xml'

[line 97]

Filename of patch file. If you want to use more than one, seperate them with semicolons. They are loaded in order.

ex: $PATCH_FILE = 'web_browsers_patch.xml;custom_patch_ver2.3.xml';




Tags:

access:  public

Type:   String


[ Top ]

static $SIMPLE_DESKTOP_ENGINE_ENABLE =  true

[line 132]

Enable the SimpleDesktop Matching Engine. This feature bypasses the advanced detection methods that are normally used while detecting desktop web browsers; instead, most desktop browsers are detected using simple keywords and expressions. When enabled, this setting will increase performance dramatically (200% in our tests) but could result in some false positives. This will also reduce the size of the cache table dramatically because all the devices detected by the SimpleDesktop Engine will be cached in one cache entry.



Tags:

access:  public

Type:   Bool


[ Top ]

static $WURFL_CVS_URL =  "http://wurfl.cvs.sourceforge.net/%2Acheckout%2A/wurfl/xml/wurfl.xml"

[line 76]

URL of CVS WURFL File



Tags:

access:  public

Type:   String


[ Top ]

static $WURFL_DL_URL =  "http://downloads.sourceforge.net/project/wurfl/WURFL/latest/wurfl-latest.zip"

[line 71]

URL of WURFL File



Tags:

access:  public

Type:   String


[ Top ]

static $WURFL_FILE =  'wurfl.xml'

[line 102]

Filename of main WURFL file (found in DATADIR; default: wurfl.xml)



Tags:

access:  public

Type:   String


[ Top ]



Documentation generated on Thu, 20 May 2010 20:20:25 +0000 by phpDocumentor 1.4.3