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

Procedural File: tera_wurfl_config.php

Source Location: /tera_wurfl_config.php



Page Details:



Tags:

filesource:  Source Code for this file







CLASS_DIRNAME [line 193]

CLASS_DIRNAME = dirname(__FILE__)

[ Top ]



DATADIR [line 143]

DATADIR = dirname(__FILE__).'/data/'
Where all data is stored (wurfl.xml, cache file, logs, etc)


[ Top ]



DB_CACHE_TABLE [line 100]

DB_CACHE_TABLE = "tera_wurfl_cache"
The table you want to use to store the temporary cache data (given caching is enabled below).


[ Top ]



DB_DEVICE_TABLE [line 85]

DB_DEVICE_TABLE = "tera_wurfl_devices"
The table you want to use to store the WURFL devices


[ Top ]



DB_EMPTY_METHOD [line 124]

DB_EMPTY_METHOD = "DROP_CREATE"
Specify the method for emptying tables. Either "DROP_CREATE" or "EMPTY". As of version 1.3.0, "DROP_CREATE is HIGHLY recommended for stability, and EMPTY may result in a MySQL warning or error while updating the database.


[ Top ]



DB_HOST [line 63]

DB_HOST = "localhost"
Database hostname or IP Address


[ Top ]



DB_HYBRID_TABLE [line 95]

DB_HYBRID_TABLE = "tera_wurfl_hybrid"
The table you want to use to store the hybrid data (the merged data between the WURFL and the patch. This is only used when WURFL_PATCH_ENABLE is true and a patch is loaded.


[ Top ]



DB_MAX_INSERTS [line 118]

DB_MAX_INSERTS = 500
Number of inserts to use per query - too many will exceed the 'max_allowed_packet'

directive in the MySQL configuration file. Using a setting above 1000 wil probably have a negative impact on performance because the queries will be too large. If your database is not on the same server as your class file you may want to try increasing this number to speed things up a bit since it would result in less queries.



[ Top ]



DB_MULTI_INSERT [line 110]

DB_MULTI_INSERT = true
Insert more than one record per query. This will SIGNIFICANTLY increase the speed of database updates. See DB_MAX_INSERTS.


[ Top ]



DB_PASS [line 71]

DB_PASS = "wurfl"
Database password


[ Top ]



DB_PATCH_TABLE [line 89]

DB_PATCH_TABLE = "tera_wurfl_patch"
The table you want to use to store the WURFL patch file devices


[ Top ]



DB_SCHEMA [line 75]

DB_SCHEMA = "tera-wurfl"
Database schema (the database name itself)


[ Top ]



DB_TEMP_EXT [line 105]

DB_TEMP_EXT = "_TEMP"
The extension used for temporary tables. These tables are used to allow the

class to rollback any changes that fail sanity checks



[ Top ]



DB_TYPE [line 81]

DB_TYPE = "MyISAM"
Database type - you probably want to use either "InnoDB" or "MyISAM".

In testing I have found MyISAM to be about 10% faster than InnoDB. Note: You can use any database type that your server supports



[ Top ]



DB_USER [line 67]

DB_USER = "wurfluser"
Database username


[ Top ]



IMAGE_CHECKING [line 147]

IMAGE_CHECKING = true
Try to find an image for the device, accessible like $this->device_image


[ Top ]



IMAGE_DIR [line 151]

IMAGE_DIR = "device_pix/"
Reletive path to images with trailing slash


[ Top ]



LOG_LEVEL [line 190]

LOG_LEVEL = LOG_WARNING
Log errors at or above this level of severity.

Suggested log level for normal use: LOG_ERR or LOG_WARNING; all options: LOG_INFO, LOG_NOTICE, LOG_WARNING, LOG_ERR This directive is NOT a string value - it is a PHP Constant http://us2.php.net/manual/en/reserved.constants.php



[ Top ]



WURFL_CACHE_ENABLE [line 156]

WURFL_CACHE_ENABLE = true
Enable or disable the WURFL cache. This can increase performance under

heavy database load or slow Web Server <-> DB networks



[ Top ]



WURFL_CLASS_FILE [line 174]

WURFL_CLASS_FILE = dirname(__FILE__).'/tera_wurfl.php'

[ Top ]



WURFL_CONFIG [line 139]

WURFL_CONFIG = true
ALWAYS set this to true - it is how the class knows the config file has been loaded


[ Top ]



WURFL_CVS_URL [line 135]

WURFL_CVS_URL = "http://wurfl.cvs.sourceforge.net/%2Acheckout%2A/wurfl/xml/wurfl.xml"
The URL to download the current WURFL file from.

This was updated on December 26, 2006 v1.4.3



[ Top ]



WURFL_DL_URL [line 130]

WURFL_DL_URL = "http://wurfl.sourceforge.net/wurfl.xml"
The URL to download the current WURFL file from.

This was updated on November 16, 2006 v1.4.2 TODO: use compressed version to speed up download!



[ Top ]



WURFL_FILE [line 178]

WURFL_FILE = DATADIR."wurfl.xml"
Path and name of the local wurfl.xml file


[ Top ]



WURFL_LOG_FILE [line 182]

WURFL_LOG_FILE = DATADIR."wurfl.log"
Path and name of the log file


[ Top ]



WURFL_PARSER_FILE [line 170]

WURFL_PARSER_FILE = dirname(__FILE__).'/admin/tera_wurfl_parser.php'
Path and filename of wurfl_parser.php


[ Top ]



WURFL_PATCH_ENABLE [line 161]

WURFL_PATCH_ENABLE = true
Enable or disable the WURFL patch. This setting takes effect immediately - no database or patch update is required.


[ Top ]



WURFL_PATCH_FILE [line 166]

WURFL_PATCH_FILE = DATADIR.'wurfl.patch.xml'
Path and filename of your custom patch file. You can use DATADIR."somefile"

if your patch file is in the DATADIR directory



[ Top ]




Documentation generated on Fri, 27 Apr 2007 12:10:19 -0400 by phpDocumentor 1.3.1