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

Source for file TeraWurflDatabase_MySQL5_NestedSet.php

Documentation is available at TeraWurflDatabase_MySQL5_NestedSet.php

  1. <?php
  2. /**
  3.  * Tera_WURFL - PHP MySQL driven WURFL
  4.  *
  5.  * Tera-WURFL was written by Steve Kamerman, and is based on the
  6.  * Java WURFL Evolution package by Luca Passani and WURFL PHP Tools by Andrea Trassati.
  7.  * This version uses a MySQL database to store the entire WURFL file, multiple patch
  8.  * files, and a persistent caching mechanism to provide extreme performance increases.
  9.  *
  10.  * @package TeraWurflDatabase
  11.  * @author Steve Kamerman <stevekamerman AT gmail.com>
  12.  * @version Stable 2.1.3 $Date: 2010/09/18 15:43:21
  13.  * @license http://www.mozilla.org/MPL/ MPL Vesion 1.1
  14.  */
  15. /**
  16.  * Include required files
  17.  */
  18. require_once realpath(dirname(__FILE__).'/TeraWurflDatabase_MySQL5.php');
  19. /**
  20.  * Provides connectivity from Tera-WURFL to MySQL 5
  21.  * This version adds a right and left nested-set value (`rt` and `lt`) to the TeraWurflIndex
  22.  * table, then uses those values and the Nested Set method to lookup the fallback tree in
  23.  * one very efficient query.
  24.  * @package TeraWurflDatabase
  25.  */
  26.     public $use_nested_set = true;
  27. }

Documentation generated on Sun, 19 Sep 2010 00:16:01 +0000 by phpDocumentor 1.4.3