constructor __construct [line 56]
destructor __destruct [line 65]
Destructor, disconnect from database
Tags:
method atomicRenameAll [line 262]
void atomicRenameAll(
$oldPrefix,
$newPrefix)
|
|
Tags:
Overrides
TeraWurflDatabase::atomicRenameAll() (Rename all tables from $oldPrefix to $newPrefix in one transaction. This is used when loading the WURFL device data to atomically switch from the old data to the new data.)
Parameters:
method cleanConnection [line 186]
method clearMatcherTables [line 342]
boolean clearMatcherTables(
)
|
|
Drops then creates all the UserAgentMatcher device tables
Tags:
method clearTable [line 511]
method connect [line 556]
method createCacheTable [line 435]
method createGenericDeviceTable [line 317]
boolean createGenericDeviceTable(
string
$tablename)
|
|
Drops and creates the given device table
Tags:
Overrides
TeraWurflDatabase::createGenericDeviceTable() (Creates a table capable of holding devices (WURFL ID, User Agent and Capabilities))
Parameters:
method createIndexTable [line 372]
method createMergeTable [line 355]
boolean createMergeTable(
array
$tables)
|
|
Drops and creates the MERGE table
Tags:
Parameters:
method createProcedures [line 518]
method createSettingsTable [line 390]
method createTempCacheTable [line 449]
void createTempCacheTable(
)
|
|
Tags:
method getActualDeviceAncestor [line 82]
void getActualDeviceAncestor(
$wurflID)
|
|
Tags:
Overrides
TeraWurflDatabase::getActualDeviceAncestor() (Returns the WURFL ID for the Actual Device Root in the given device's fall back tree. This can be null if it does not exist.)
Parameters:
method getCachedUserAgents [line 640]
method getDeviceFallBackTree [line 135]
void getDeviceFallBackTree(
$wurflID)
|
|
Tags:
Overrides
TeraWurflDatabase::getDeviceFallBackTree() (Returns the Fallback tree directly from the database. If this is implemented, you must set TeraWurflDatabase::$db_implements_fallback = true for Tera-WURFL to use it.)
Parameters:
method getDeviceFallBackTree_NS [line 167]
array getDeviceFallBackTree_NS(
$wurflID
$wurflID)
|
|
Returns an Array containing the complete capabilities array for each
device in the fallback tree. These arrays would need to be flattened in order to be used for any real puropse
Tags:
Parameters:
method getDeviceFromCache [line 408]
method getDeviceFromID [line 70]
void getDeviceFromID(
$wurflID)
|
|
Tags:
Overrides
TeraWurflDatabase::getDeviceFromID() (Returns the capabilities array from a given WURFL Device ID. This is NOT the full device capabilities, just the capabilities that are defined on this device.)
Parameters:
method getDeviceFromUA [line 106]
method getDeviceFromUA_LD [line 132]
void getDeviceFromUA_LD(
$userAgent,
$tolerance, UserAgentMatcher
&$matcher)
|
|
Tags:
Overrides
TeraWurflDatabase::getDeviceFromUA_LD() (Find the matching Device ID for a given User Agent using LD (Leveshtein Distance))
Parameters:
method getDeviceFromUA_RIS [line 119]
method getFullDeviceList [line 92]
void getFullDeviceList(
$tablename)
|
|
Tags:
Overrides
TeraWurflDatabase::getFullDeviceList() (Returns an associative array of all the data from the given table in the form [WURFL ID] => [User Agent])
Parameters:
method getMatcherTableList [line 608]
method getServerVersion [line 663]
method getSetting [line 587]
method getTableList [line 601]
method getTableStats [line 615]
method loadDevices [line 193]
method rebuildCacheTable [line 463]
method saveDeviceInCache [line 423]
method SQLPrep [line 596]
Tags:
Overrides
TeraWurflDatabase::SQLPrep() (Prepares raw text for use in queries (adding quotes and escaping characters if necessary))
Parameters:
method updateSetting [line 581]
method verifyConfig [line 647]