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

Source for file ibase.php

Documentation is available at ibase.php

  1. <?php
  2. // +----------------------------------------------------------------------+
  3. // | PHP versions 4 and 5                                                 |
  4. // +----------------------------------------------------------------------+
  5. // | Copyright (c) 1998-2006 Manuel Lemos, Tomas V.V.Cox,                 |
  6. // | Stig. S. Bakken, Lukas Smith, Frank M. Kromann, Lorenzo Alberton     |
  7. // | All rights reserved.                                                 |
  8. // +----------------------------------------------------------------------+
  9. // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
  10. // | API as well as database abstraction for PHP applications.            |
  11. // | This LICENSE is in the BSD license style.                            |
  12. // |                                                                      |
  13. // | Redistribution and use in source and binary forms, with or without   |
  14. // | modification, are permitted provided that the following conditions   |
  15. // | are met:                                                             |
  16. // |                                                                      |
  17. // | Redistributions of source code must retain the above copyright       |
  18. // | notice, this list of conditions and the following disclaimer.        |
  19. // |                                                                      |
  20. // | Redistributions in binary form must reproduce the above copyright    |
  21. // | notice, this list of conditions and the following disclaimer in the  |
  22. // | documentation and/or other materials provided with the distribution. |
  23. // |                                                                      |
  24. // | Neither the name of Manuel Lemos, Tomas V.V.Cox, Stig. S. Bakken,    |
  25. // | Lukas Smith nor the names of his contributors may be used to endorse |
  26. // | or promote products derived from this software without specific prior|
  27. // | written permission.                                                  |
  28. // |                                                                      |
  29. // | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS  |
  30. // | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT    |
  31. // | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS    |
  32. // | FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE      |
  33. // | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,          |
  34. // | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
  35. // | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS|
  36. // |  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED  |
  37. // | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT          |
  38. // | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY|
  39. // | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE          |
  40. // | POSSIBILITY OF SUCH DAMAGE.                                          |
  41. // +----------------------------------------------------------------------+
  42. // | Author: Lorenzo Alberton <l.alberton@quipo.it>                       |
  43. // +----------------------------------------------------------------------+
  44. //
  45. // $Id: ibase.php,v 1.43 2006/04/15 10:48:06 lsmith Exp $
  46. //
  47.  
  48. require_once 'MDB2/Driver/Reverse/Common.php';
  49.  
  50. /**
  51.  * MDB2 InterbaseBase driver for the reverse engineering module
  52.  *
  53.  * @package MDB2
  54.  * @category Database
  55.  * @author Lorenzo Alberton  <l.alberton@quipo.it>
  56.  */
  57. class MDB2_Driver_Reverse_ibase extends MDB2_Driver_Reverse_Common
  58. {
  59.     /**
  60.      * Array for converting constant values to text values
  61.      * @var    array 
  62.      * @access public
  63.      */
  64.     var $types = array(
  65.         7   => 'smallint',
  66.         8   => 'integer',
  67.         9   => 'quad',
  68.         10  => 'float',
  69.         11  => 'd_float',
  70.         12  => 'date',      //dialect 3 DATE
  71.         13  => 'time',
  72.         14  => 'char',
  73.         16  => 'int64',
  74.         27  => 'double',
  75.         35  => 'timestamp'//DATE in older versions
  76.         37  => 'varchar',
  77.         40  => 'cstring',
  78.         261 => 'blob',
  79.     );
  80.  
  81.     /**
  82.      * Array for converting constant values to text values
  83.      * @var    array 
  84.      * @access public
  85.      */
  86.     var $subtypes = array(
  87.         //char subtypes
  88.         14 => array(
  89.             0 => 'unspecified',
  90.             1 => 'fixed'//BINARY data
  91.         ),
  92.         //blob subtypes
  93.         261 => array(
  94.             0 => 'unspecified',
  95.             1 => 'text',
  96.             2 => 'BLR'//Binary Language Representation
  97.             3 => 'access control list',
  98.             4 => 'reserved for future use',
  99.             5 => 'encoded description of a table\'s current metadata',
  100.             6 => 'description of multi-database transaction that finished irregularly',
  101.         ),
  102.         //smallint subtypes
  103.         7 => array(
  104.             0 => 'RDB$FIELD_TYPE',
  105.             1 => 'numeric',
  106.             2 => 'decimal',
  107.         ),
  108.         //integer subtypes
  109.         8 => array(
  110.             0 => 'RDB$FIELD_TYPE',
  111.             1 => 'numeric',
  112.             2 => 'decimal',
  113.         ),
  114.         //int64 subtypes
  115.         16 => array(
  116.             0 => 'RDB$FIELD_TYPE',
  117.             1 => 'numeric',
  118.             2 => 'decimal',
  119.         ),
  120.     );
  121.  
  122.     // {{{ getTableFieldDefinition()
  123.  
  124.     /**
  125.      * get the stucture of a field into an array
  126.      *
  127.      * @param string    $table         name of table that should be used in method
  128.      * @param string    $field_name     name of field that should be used in method
  129.      * @return mixed data array on success, a MDB2 error on failure
  130.      * @access public
  131.      */
  132.     function getTableFieldDefinition($table$field_name)
  133.     {
  134.         $db =$this->getDBInstance();
  135.         if (PEAR::isError($db)) {
  136.             return $db;
  137.         }
  138.  
  139.         $result $db->loadModule('Datatype'nulltrue);
  140.         if (PEAR::isError($result)) {
  141.             return $result;
  142.         }
  143.         $table $db->quote(strtoupper($table)'text');
  144.         $field_name $db->quote(strtoupper($field_name)'text');
  145.         $query = "SELECT RDB\$RELATION_FIELDS.RDB\$FIELD_NAME AS name,
  146.                          RDB\$FIELDS.RDB\$FIELD_LENGTH AS \"length\",
  147.                          RDB\$FIELDS.RDB\$FIELD_TYPE AS field_type_code,
  148.                          RDB\$FIELDS.RDB\$FIELD_SUB_TYPE AS field_sub_type_code,
  149.                          RDB\$RELATION_FIELDS.RDB\$DESCRIPTION AS description,
  150.                          RDB\$RELATION_FIELDS.RDB\$NULL_FLAG AS null_flag,
  151.                          RDB\$RELATION_FIELDS.RDB\$DEFAULT_SOURCE AS default_source
  152.                     FROM RDB\$FIELDS
  153.                LEFT JOIN RDB\$RELATION_FIELDS ON RDB\$FIELDS.RDB\$FIELD_NAME = RDB\$RELATION_FIELDS.RDB\$FIELD_SOURCE
  154.                    WHERE UPPER(RDB\$RELATION_FIELDS.RDB\$RELATION_NAME)=$table
  155.                      AND UPPER(RDB\$RELATION_FIELDS.RDB\$FIELD_NAME)=$field_name;";
  156.         $column $db->queryRow($querynullMDB2_FETCHMODE_ASSOC);
  157.         if (PEAR::isError($column)) {
  158.             return $column;
  159.         }
  160.         if (empty($column)) {
  161.             return $db->raiseError(MDB2_ERRORnullnull,
  162.                 'getTableFieldDefinition: it was not specified an existing table column');
  163.         }
  164.         $column array_change_key_case($columnCASE_LOWER);
  165.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  166.             if ($db->options['field_case'== CASE_LOWER{
  167.                 $column['name'strtolower($column['name']);
  168.             else {
  169.                 $column['name'strtoupper($column['name']);
  170.             }
  171.         }
  172.  
  173.         $column['type'array_key_exists($column['field_type_code']$this->types)
  174.             ? $this->types[(int)$column['field_type_code']] 'undefined';
  175.         if ($column['field_sub_type_code']
  176.             && array_key_exists($column['field_type_code']$this->subtypes)
  177.             && array_key_exists($column['field_sub_type_code']$this->subtypes[(int)$column['field_type_code']])
  178.         {
  179.             $column['field_sub_type'$this->subtypes[(int)$column['field_type_code']][$column['field_sub_type_code']];
  180.         else {
  181.             $column['field_sub_type'= null;
  182.         }
  183.         list($types$length$unsigned$db->datatype->mapNativeDatatype($column);
  184.         $notnull !empty($column['null_flag']);
  185.         $default $column['default_source'];
  186.         if (is_null($default&& $notnull{
  187.             $default ($types[0== 'integer'? 0 : '';
  188.         }
  189.         $definition = array();
  190.         foreach ($types as $key => $type{
  191.             $definition[$key= array(
  192.                 'type'    => $type,
  193.                 'notnull' => $notnull,
  194.             );
  195.             if ($length > 0{
  196.                 $definition[$key]['length'$length;
  197.             }
  198.             if ($unsigned{
  199.                 $definition[$key]['unsigned'= true;
  200.             }
  201.             $definition[$key]['default'$default;
  202.         }
  203.         return $definition;
  204.     }
  205.  
  206.     // }}}
  207.     // {{{ getTableIndexDefinition()
  208.  
  209.     /**
  210.      * get the stucture of an index into an array
  211.      *
  212.      * @param string    $table      name of table that should be used in method
  213.      * @param string    $index_name name of index that should be used in method
  214.      * @return mixed data array on success, a MDB2 error on failure
  215.      * @access public
  216.      */
  217.     function getTableIndexDefinition($table$index_name)
  218.     {
  219.         $db =$this->getDBInstance();
  220.         if (PEAR::isError($db)) {
  221.             return $db;
  222.         }
  223.         $table $db->quote(strtoupper($table)'text');
  224.         $index_name $db->quote(strtoupper($db->getIndexName($index_name))'text');
  225.         $query = "SELECT RDB\$INDEX_SEGMENTS.RDB\$FIELD_NAME AS field_name,
  226.                          RDB\$INDICES.RDB\$UNIQUE_FLAG AS unique_flag,
  227.                          RDB\$INDICES.RDB\$FOREIGN_KEY AS foreign_key,
  228.                          RDB\$INDICES.RDB\$DESCRIPTION AS description
  229.                     FROM RDB\$INDEX_SEGMENTS
  230.                LEFT JOIN RDB\$INDICES ON RDB\$INDICES.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  231.                LEFT JOIN RDB\$RELATION_CONSTRAINTS ON RDB\$RELATION_CONSTRAINTS.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  232.                    WHERE UPPER(RDB\$INDICES.RDB\$RELATION_NAME)=$table
  233.                      AND UPPER(RDB\$INDICES.RDB\$INDEX_NAME)=$index_name
  234.                      AND RDB\$RELATION_CONSTRAINTS.RDB\$CONSTRAINT_TYPE IS NULL
  235.                 ORDER BY RDB\$INDEX_SEGMENTS.RDB\$FIELD_POSITION;";
  236.         $result $db->query($query);
  237.         if (PEAR::isError($result)) {
  238.             return $result;
  239.         }
  240.  
  241.         $index $row $result->fetchRow(MDB2_FETCHMODE_ASSOC);
  242.         if (empty($index)) {
  243.             return $db->raiseError(MDB2_ERROR_NOT_FOUNDnullnull,
  244.                 'getTableIndexDefinition: it was not specified an existing table index');
  245.         }
  246.  
  247.         $fields = array();
  248.         do {
  249.             $row array_change_key_case($rowCASE_LOWER);
  250.             $fields[$row['field_name'];
  251.         while (is_array($row $result->fetchRow(MDB2_FETCHMODE_ASSOC)));
  252.         $result->free();
  253.  
  254.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  255.             $fields array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$fields);
  256.         }
  257.  
  258.         $definition = array();
  259.         foreach ($fields as $field{
  260.             $definition['fields'][$field= array();
  261.             //collation?!?
  262.             /*
  263.             if (array_key_exists('collation', $row)) {
  264.                 $definition['fields'][$field]['sorting'] = ($row['collation'] == 'A'
  265.                     ? 'ascending' : 'descending');
  266.             }
  267.             */
  268.         }
  269.         return $definition;
  270.     }
  271.  
  272.     // }}}
  273.     // {{{ getTableConstraintDefinition()
  274.  
  275.     /**
  276.      * get the stucture of a constraint into an array
  277.      *
  278.      * @param string    $table      name of table that should be used in method
  279.      * @param string    $index_name name of index that should be used in method
  280.      * @return mixed data array on success, a MDB2 error on failure
  281.      * @access public
  282.      */
  283.     function getTableConstraintDefinition($table$index_name)
  284.     {
  285.         $db =$this->getDBInstance();
  286.         if (PEAR::isError($db)) {
  287.             return $db;
  288.         }
  289.         $table $db->quote(strtoupper($table)'text');
  290.         $index_name $db->quote(strtoupper($db->getIndexName($index_name))'text');
  291.         $query = "SELECT RDB\$INDEX_SEGMENTS.RDB\$FIELD_NAME AS field_name,
  292.                          RDB\$INDICES.RDB\$UNIQUE_FLAG AS unique_flag,
  293.                          RDB\$INDICES.RDB\$FOREIGN_KEY AS foreign_key,
  294.                          RDB\$INDICES.RDB\$DESCRIPTION AS description,
  295.                          RDB\$RELATION_CONSTRAINTS.RDB\$CONSTRAINT_TYPE AS constraint_type
  296.                     FROM RDB\$INDEX_SEGMENTS
  297.                LEFT JOIN RDB\$INDICES ON RDB\$INDICES.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  298.                LEFT JOIN RDB\$RELATION_CONSTRAINTS ON RDB\$RELATION_CONSTRAINTS.RDB\$INDEX_NAME = RDB\$INDEX_SEGMENTS.RDB\$INDEX_NAME
  299.                    WHERE UPPER(RDB\$INDICES.RDB\$RELATION_NAME)=$table
  300.                      AND UPPER(RDB\$INDICES.RDB\$INDEX_NAME)=$index_name
  301.                 ORDER BY RDB\$INDEX_SEGMENTS.RDB\$FIELD_POSITION;";
  302.         $result $db->query($query);
  303.         if (PEAR::isError($result)) {
  304.             return $result;
  305.         }
  306.  
  307.         $index $row $result->fetchRow(MDB2_FETCHMODE_ASSOC);
  308.         if (empty($index)) {
  309.             return $db->raiseError(MDB2_ERROR_NOT_FOUNDnullnull,
  310.                 'getTableConstraintDefinition: it was not specified an existing table constraint');
  311.         }
  312.         $fields = array();
  313.         do {
  314.             $row array_change_key_case($rowCASE_LOWER);
  315.             $fields[$row['field_name'];
  316.         while (is_array($row $result->fetchRow(MDB2_FETCHMODE_ASSOC)));
  317.         $result->free();
  318.  
  319.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  320.             $fields array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$fields);
  321.         }
  322.  
  323.         $definition = array();
  324.         if ($index['constraint_type'== 'PRIMARY KEY'{
  325.             $definition['primary'= true;
  326.         elseif ($index['unique_flag']{
  327.             $definition['unique'= true;
  328.         elseif ($index['foreign_key']{
  329.             $definition['foreign'= true;
  330.         }
  331.         if (!$index['unique_flag'&& !$index['foreign_key']{
  332.             return $db->raiseError(MDB2_ERROR_NOT_FOUNDnullnull,
  333.                 'getTableConstraintDefinition: it was not specified an existing table constraint');
  334.         }
  335.         foreach ($fields as $field{
  336.             $definition['fields'][$field= array();
  337.             //collation?!?
  338.             /*
  339.             if (array_key_exists('collation', $row)) {
  340.                 $definition['fields'][$field]['sorting'] = ($row['collation'] == 'A'
  341.                     ? 'ascending' : 'descending');
  342.             }
  343.             */
  344.         }
  345.         return $definition;
  346.     }
  347.  
  348.     // }}}
  349.     // {{{ tableInfo()
  350.  
  351.     /**
  352.      * Returns information about a table or a result set
  353.      *
  354.      * NOTE: only supports 'table' and 'flags' if <var>$result</var>
  355.      * is a table name.
  356.      *
  357.      * @param object|string $result  MDB2_result object from a query or a
  358.      *                                  string containing the name of a table.
  359.      *                                  While this also accepts a query result
  360.      *                                  resource identifier, this behavior is
  361.      *                                  deprecated.
  362.      * @param int            $mode    a valid tableInfo mode
  363.      *
  364.      * @return array  an associative array with the information requested.
  365.      *                  A MDB2_Error object on failure.
  366.      *
  367.      * @see MDB2_Driver_Common::tableInfo()
  368.      */
  369.     function tableInfo($result$mode = null)
  370.     {
  371.         $db =$this->getDBInstance();
  372.         if (PEAR::isError($db)) {
  373.             return $db;
  374.         }
  375.  
  376.         if (is_string($result)) {
  377.             /*
  378.              * Probably received a table name.
  379.              * Create a result resource identifier.
  380.              */
  381.             $id $db->_doQuery('SELECT * FROM '.$db->quoteIdentifier($result).' WHERE 1=0'false);
  382.             if (PEAR::isError($id)) {
  383.                 return $id;
  384.             }
  385.             $got_string = true;
  386.         elseif (MDB2::isResultCommon($result)) {
  387.             /*
  388.              * Probably received a result object.
  389.              * Extract the result resource identifier.
  390.              */
  391.             $id $result->getResource();
  392.             $got_string = false;
  393.         else {
  394.             /*
  395.              * Probably received a result resource identifier.
  396.              * Copy it.
  397.              * Deprecated.  Here for compatibility only.
  398.              */
  399.             $id $result;
  400.             $got_string = false;
  401.         }
  402.  
  403.         if (!is_resource($id)) {
  404.             return $db->raiseError(MDB2_ERROR_NEED_MORE_DATA);
  405.         }
  406.  
  407.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  408.             if ($db->options['field_case'== CASE_LOWER{
  409.                 $case_func 'strtolower';
  410.             else {
  411.                 $case_func 'strtoupper';
  412.             }
  413.         else {
  414.             $case_func 'strval';
  415.         }
  416.  
  417.         $count @ibase_num_fields($id);
  418.         $res   = array();
  419.  
  420.         if ($mode{
  421.             $res['num_fields'$count;
  422.         }
  423.  
  424.         $db->loadModule('Datatype'nulltrue);
  425.         for ($i = 0; $i $count$i++{
  426.             $info @ibase_field_info($id$i);
  427.             if (($pos strpos($info['type']'(')) !== false{
  428.                 $info['type'substr($info['type']0$pos);
  429.             }
  430.             $res[$i= array(
  431.                 'table'  => $got_string $case_func($result'',
  432.                 'name'   => $case_func($info['name']),
  433.                 'type'   => $info['type'],
  434.                 'length' => $info['length'],
  435.                 'flags'  => ($got_string)
  436.                             ? $this->_ibaseFieldFlags($info['name']$result'',
  437.             );
  438.             $mdb2type_info $db->datatype->mapNativeDatatype($res[$i]);
  439.             if (PEAR::isError($mdb2type_info)) {
  440.                return $mdb2type_info;
  441.             }
  442.             $res[$i]['mdb2type'$mdb2type_info[0][0];
  443.             if ($mode MDB2_TABLEINFO_ORDER{
  444.                 $res['order'][$res[$i]['name']] $i;
  445.             }
  446.             if ($mode MDB2_TABLEINFO_ORDERTABLE{
  447.                 $res['ordertable'][$res[$i]['table']][$res[$i]['name']] $i;
  448.             }
  449.         }
  450.  
  451.         // free the result only if we were called on a table
  452.         if ($got_string{
  453.             @ibase_free_result($id);
  454.         }
  455.         return $res;
  456.     }
  457.  
  458.     // }}}
  459.     // {{{ _ibaseFieldFlags()
  460.  
  461.     /**
  462.      * Get the column's flags
  463.      *
  464.      * Supports "primary_key", "unique_key", "not_null", "default",
  465.      * "computed" and "blob".
  466.      *
  467.      * @param string $field_name  the name of the field
  468.      * @param string $table_name  the name of the table
  469.      *
  470.      * @return string  the flags
  471.      *
  472.      * @access protected
  473.      */
  474.     function _ibaseFieldFlags($field_name$table_name)
  475.     {
  476.         $db =$this->getDBInstance();
  477.         if (PEAR::isError($db)) {
  478.             return $db;
  479.         }
  480.  
  481.         $query 'SELECT R.RDB$CONSTRAINT_TYPE CTYPE'
  482.                .' FROM RDB$INDEX_SEGMENTS I'
  483.                .'  JOIN RDB$RELATION_CONSTRAINTS R ON I.RDB$INDEX_NAME=R.RDB$INDEX_NAME'
  484.                .' WHERE I.RDB$FIELD_NAME=\'' $field_name '\''
  485.                .'  AND UPPER(R.RDB$RELATION_NAME)=\'' strtoupper($table_name'\'';
  486.  
  487.         $result $db->_doQuery($queryfalse);
  488.         if (PEAR::isError($result)) {
  489.             return $result;
  490.         }
  491.  
  492.         $flags '';
  493.         if ($obj @ibase_fetch_object($result)) {
  494.             @ibase_free_result($result);
  495.             if (isset($obj->CTYPE)  && trim($obj->CTYPE== 'PRIMARY KEY'{
  496.                 $flags.= 'primary_key ';
  497.             }
  498.             if (isset($obj->CTYPE)  && trim($obj->CTYPE== 'UNIQUE'{
  499.                 $flags.= 'unique_key ';
  500.             }
  501.         }
  502.  
  503.         $query 'SELECT R.RDB$NULL_FLAG AS NFLAG,'
  504.                .'  R.RDB$DEFAULT_SOURCE AS DSOURCE,'
  505.                .'  F.RDB$FIELD_TYPE AS FTYPE,'
  506.                .'  F.RDB$COMPUTED_SOURCE AS CSOURCE'
  507.                .' FROM RDB$RELATION_FIELDS R '
  508.                .'  JOIN RDB$FIELDS F ON R.RDB$FIELD_SOURCE=F.RDB$FIELD_NAME'
  509.                .' WHERE UPPER(R.RDB$RELATION_NAME)=\'' strtoupper($table_name'\''
  510.                .'  AND R.RDB$FIELD_NAME=\'' $field_name '\'';
  511.  
  512.         $result $db->_doQuery($queryfalse);
  513.         if (PEAR::isError($result)) {
  514.             return $result;
  515.         }
  516.  
  517.         if ($obj @ibase_fetch_object($result)) {
  518.             @ibase_free_result($result);
  519.             if (isset($obj->NFLAG)) {
  520.                 $flags.= 'not_null ';
  521.             }
  522.             if (isset($obj->DSOURCE)) {
  523.                 $flags.= 'default ';
  524.             }
  525.             if (isset($obj->CSOURCE)) {
  526.                 $flags.= 'computed ';
  527.             }
  528.             if (isset($obj->FTYPE)  && $obj->FTYPE == 261{
  529.                 $flags.= 'blob ';
  530.             }
  531.         }
  532.  
  533.         return trim($flags);
  534.     }
  535. }
  536. ?>

Documentation generated on Mon, 11 Mar 2019 14:39:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.