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

Source for file pgsql.php

Documentation is available at pgsql.php

  1. <?php
  2. // +----------------------------------------------------------------------+
  3. // | PHP versions 4 and 5                                                 |
  4. // +----------------------------------------------------------------------+
  5. // | Copyright (c) 1998-2004 Manuel Lemos, Tomas V.V.Cox,                 |
  6. // | Stig. S. Bakken, Lukas Smith                                         |
  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: Paul Cooper <pgc@ucecom.com>                                 |
  43. // +----------------------------------------------------------------------+
  44. //
  45. // $Id: pgsql.php,v 1.46 2005/12/15 22:52:56 lsmith Exp $
  46.  
  47. require_once 'MDB2/Driver/Manager/Common.php';
  48.  
  49. /**
  50.  * MDB2 MySQL driver for the management modules
  51.  *
  52.  * @package MDB2
  53.  * @category Database
  54.  * @author  Paul Cooper <pgc@ucecom.com>
  55.  */
  56. class MDB2_Driver_Manager_pgsql extends MDB2_Driver_Manager_Common
  57. {
  58.     // {{{ createDatabase()
  59.  
  60.     /**
  61.      * create a new database
  62.      *
  63.      * @param string $name name of the database that should be created
  64.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  65.      * @access public
  66.      ***/
  67.     function createDatabase($name)
  68.     {
  69.         $db =$this->getDBInstance();
  70.         if (PEAR::isError($db)) {
  71.             return $db;
  72.         }
  73.  
  74.         $name $db->quoteIdentifier($nametrue);
  75.         return $db->standaloneQuery("CREATE DATABASE $name"nulltrue);
  76.     }
  77.  
  78.     // }}}
  79.     // {{{ dropDatabase()
  80.  
  81.     /**
  82.      * drop an existing database
  83.      *
  84.      * @param string $name name of the database that should be dropped
  85.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  86.      * @access public
  87.      ***/
  88.     function dropDatabase($name)
  89.     {
  90.         $db =$this->getDBInstance();
  91.         if (PEAR::isError($db)) {
  92.             return $db;
  93.         }
  94.  
  95.         $name $db->quoteIdentifier($nametrue);
  96.         return $db->standaloneQuery("DROP DATABASE $name"nulltrue);
  97.     }
  98.  
  99.     // }}}
  100.     // {{{ alterTable()
  101.  
  102.     /**
  103.      * alter an existing table
  104.      *
  105.      * @param string $name         name of the table that is intended to be changed.
  106.      * @param array $changes     associative array that contains the details of each type
  107.      *                              of change that is intended to be performed. The types of
  108.      *                              changes that are currently supported are defined as follows:
  109.      *
  110.      *                              name
  111.      *
  112.      *                                 New name for the table.
  113.      *
  114.      *                             add
  115.      *
  116.      *                                 Associative array with the names of fields to be added as
  117.      *                                  indexes of the array. The value of each entry of the array
  118.      *                                  should be set to another associative array with the properties
  119.      *                                  of the fields to be added. The properties of the fields should
  120.      *                                  be the same as defined by the Metabase parser.
  121.      *
  122.      *
  123.      *                             remove
  124.      *
  125.      *                                 Associative array with the names of fields to be removed as indexes
  126.      *                                  of the array. Currently the values assigned to each entry are ignored.
  127.      *                                  An empty array should be used for future compatibility.
  128.      *
  129.      *                             rename
  130.      *
  131.      *                                 Associative array with the names of fields to be renamed as indexes
  132.      *                                  of the array. The value of each entry of the array should be set to
  133.      *                                  another associative array with the entry named name with the new
  134.      *                                  field name and the entry named Declaration that is expected to contain
  135.      *                                  the portion of the field declaration already in DBMS specific SQL code
  136.      *                                  as it is used in the CREATE TABLE statement.
  137.      *
  138.      *                             change
  139.      *
  140.      *                                 Associative array with the names of the fields to be changed as indexes
  141.      *                                  of the array. Keep in mind that if it is intended to change either the
  142.      *                                  name of a field and any other properties, the change array entries
  143.      *                                  should have the new names of the fields as array indexes.
  144.      *
  145.      *                                 The value of each entry of the array should be set to another associative
  146.      *                                  array with the properties of the fields to that are meant to be changed as
  147.      *                                  array entries. These entries should be assigned to the new values of the
  148.      *                                  respective properties. The properties of the fields should be the same
  149.      *                                  as defined by the Metabase parser.
  150.      *
  151.      *                             Example
  152.      *                                 array(
  153.      *                                     'name' => 'userlist',
  154.      *                                     'add' => array(
  155.      *                                         'quota' => array(
  156.      *                                             'type' => 'integer',
  157.      *                                             'unsigned' => 1
  158.      *                                         )
  159.      *                                     ),
  160.      *                                     'remove' => array(
  161.      *                                         'file_limit' => array(),
  162.      *                                         'time_limit' => array()
  163.      *                                     ),
  164.      *                                     'change' => array(
  165.      *                                         'name' => array(
  166.      *                                             'length' => '20',
  167.      *                                             'definition' => array(
  168.      *                                                 'type' => 'text',
  169.      *                                                 'length' => 20,
  170.      *                                             ),
  171.      *                                         )
  172.      *                                     ),
  173.      *                                     'rename' => array(
  174.      *                                         'sex' => array(
  175.      *                                             'name' => 'gender',
  176.      *                                             'definition' => array(
  177.      *                                                 'type' => 'text',
  178.      *                                                 'length' => 1,
  179.      *                                                 'default' => 'M',
  180.      *                                             ),
  181.      *                                         )
  182.      *                                     )
  183.      *                                 )
  184.      *
  185.      * @param boolean $check     indicates whether the function should just check if the DBMS driver
  186.      *                              can perform the requested table alterations if the value is true or
  187.      *                              actually perform them otherwise.
  188.      * @access public
  189.      *
  190.       * @return mixed MDB2_OK on success, a MDB2 error on failure
  191.      */
  192.     function alterTable($name$changes$check)
  193.     {
  194.         $db =$this->getDBInstance();
  195.         if (PEAR::isError($db)) {
  196.             return $db;
  197.         }
  198.  
  199.         foreach ($changes as $change_name => $change{
  200.             switch ($change_name{
  201.             case 'add':
  202.             case 'remove':
  203.             case 'change':
  204.             case 'name':
  205.             case 'rename':
  206.                 break;
  207.             default:
  208.                 return $db->raiseError(MDB2_ERROR_UNSUPPORTEDnullnull,
  209.                     'alterTable: change type "'.$change_name.'\" not yet supported');
  210.             }
  211.         }
  212.  
  213.         if ($check{
  214.             return MDB2_OK;
  215.         }
  216.  
  217.         if (array_key_exists('name'$changes)) {
  218.             $result $db->exec("ALTER TABLE $name RENAME TO ".$changes['name']);
  219.             if (PEAR::isError($result)) {
  220.                 return $result;
  221.             }
  222.         }
  223.  
  224.         $query '';
  225.  
  226.         if (array_key_exists('add'$changes)) {
  227.             foreach ($changes['add'as $field_name => $field{
  228.                 if ($query{
  229.                     $query.= ', ';
  230.                 }
  231.                 $query.= 'ADD ' $db->getDeclaration($field['type']$field_name$field);
  232.             }
  233.         }
  234.  
  235.         if (array_key_exists('remove'$changes)) {
  236.             foreach ($changes['remove'as $field_name => $field{
  237.                 if ($query{
  238.                     $query.= ', ';
  239.                 }
  240.                 $field_name $db->quoteIdentifier($field_nametrue);
  241.                 $query.= 'DROP ' $field_name;
  242.             }
  243.         }
  244.  
  245.         if (array_key_exists('change'$changes)) {
  246.             foreach ($changes['change'as $field_name => $field{
  247.                 $field_name $db->quoteIdentifier($field_nametrue);
  248.                 if (array_key_exists('type'$field)) {
  249.                     if ($query{
  250.                         $query.= ', ';
  251.                     }
  252.                     $db->loadModule('Datatype');
  253.                     $query.= "ALTER $field_name TYPE ".$db->datatype->getTypeDeclaration($field['definition']);
  254.                 }
  255.                 if (array_key_exists('default'$field)) {
  256.                     if ($query{
  257.                         $query.= ', ';
  258.                     }
  259.                     $query.= "ALTER $field_name SET DEFAULT ".$db->quote($field['definition']['default']$field['definition']['type']);
  260.                 }
  261.                 if (array_key_exists('notnull'$field)) {
  262.                     if ($query{
  263.                         $query.= ', ';
  264.                     }
  265.                     $query.= "ALTER $field_name ".($field['definition']['notnull'"SET" "DROP").' NOT NULL';
  266.                 }
  267.             }
  268.         }
  269.  
  270.         if (!$query{
  271.             return MDB2_OK;
  272.         }
  273.  
  274.         $name $db->quoteIdentifier($nametrue);
  275.         $result $db->exec("ALTER TABLE $name $query");
  276.         if (PEAR::isError($result)) {
  277.             return $result;
  278.         }
  279.  
  280.         if (array_key_exists('rename'$changes)) {
  281.             foreach ($changes['rename'as $field_name => $field{
  282.                 $field_name $db->quoteIdentifier($field_nametrue);
  283.                 $result $db->exec("ALTER TABLE $name RENAME COLUMN $field_name TO ".$field['name']);
  284.                 if (PEAR::isError($result)) {
  285.                     break;
  286.                 }
  287.             }
  288.         }
  289.         return $result;
  290.     }
  291.  
  292.     // }}}
  293.     // {{{ listDatabases()
  294.  
  295.     /**
  296.      * list all databases
  297.      *
  298.      * @return mixed data array on success, a MDB2 error on failure
  299.      * @access public
  300.      ***/
  301.     function listDatabases()
  302.     {
  303.         $db =$this->getDBInstance();
  304.         if (PEAR::isError($db)) {
  305.             return $db;
  306.         }
  307.  
  308.         $query 'SELECT datname FROM pg_database';
  309.         $result2 $db->standaloneQuery($queryarray('text')false);
  310.         if (!MDB2::isResultCommon($result2)) {
  311.             return $result2;
  312.         }
  313.  
  314.         $result $result2->fetchCol();
  315.         $result2->free();
  316.         if (PEAR::isError($result)) {
  317.             return $result;
  318.         }
  319.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  320.             $result array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$result);
  321.         }
  322.         return $result;
  323.     }
  324.  
  325.     // }}}
  326.     // {{{ listUsers()
  327.  
  328.     /**
  329.      * list all users
  330.      *
  331.      * @return mixed data array on success, a MDB2 error on failure
  332.      * @access public
  333.      ***/
  334.     function listUsers()
  335.     {
  336.         $db =$this->getDBInstance();
  337.         if (PEAR::isError($db)) {
  338.             return $db;
  339.         }
  340.  
  341.         $query 'SELECT usename FROM pg_user';
  342.         $result2 $db->standaloneQuery($queryarray('text')false);
  343.         if (!MDB2::isResultCommon($result2)) {
  344.             return $result2;
  345.         }
  346.  
  347.         $result $result2->fetchCol();
  348.         $result2->free();
  349.         return $result;
  350.     }
  351.  
  352.     // }}}
  353.     // {{{ listViews()
  354.  
  355.     /**
  356.      * list the views in the database
  357.      *
  358.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  359.      * @access public
  360.      ***/
  361.     function listViews()
  362.     {
  363.         $db =$this->getDBInstance();
  364.         if (PEAR::isError($db)) {
  365.             return $db;
  366.         }
  367.  
  368.         $query 'SELECT viewname FROM pg_views';
  369.         $result $db->queryCol($query);
  370.         if (PEAR::isError($result)) {
  371.             return $result;
  372.         }
  373.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  374.             $result array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$result);
  375.         }
  376.         return $result;
  377.     }
  378.  
  379.     // }}}
  380.     // {{{ listFunctions()
  381.  
  382.     /**
  383.      * list all functions in the current database
  384.      *
  385.      * @return mixed data array on success, a MDB2 error on failure
  386.      * @access public
  387.      */
  388.     function listFunctions()
  389.     {
  390.         $db =$this->getDBInstance();
  391.         if (PEAR::isError($db)) {
  392.             return $db;
  393.         }
  394.  
  395.         $query "
  396.             SELECT
  397.                 proname
  398.             FROM
  399.                 pg_proc pr,
  400.                 pg_type tp
  401.             WHERE
  402.                 tp.oid = pr.prorettype
  403.                 AND pr.proisagg = FALSE
  404.                 AND tp.typname <> 'trigger'
  405.                 AND pr.pronamespace IN
  406.                     (SELECT oid FROM pg_namespace WHERE nspname NOT LIKE 'pg_%' AND nspname != 'information_schema')";
  407.         $result $db->queryCol($query);
  408.         if (PEAR::isError($result)) {
  409.             return $result;
  410.         }
  411.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  412.             $result array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$result);
  413.         }
  414.         return $result;
  415.     }
  416.  
  417.     // }}}
  418.     // {{{ listTables()
  419.  
  420.     /**
  421.      * list all tables in the current database
  422.      *
  423.      * @return mixed data array on success, a MDB2 error on failure
  424.      * @access public
  425.      ***/
  426.     function listTables()
  427.     {
  428.         $db =$this->getDBInstance();
  429.         if (PEAR::isError($db)) {
  430.             return $db;
  431.         }
  432.  
  433.         // gratuitously stolen from PEAR DB _getSpecialQuery in pgsql.php
  434.         $query 'SELECT c.relname AS "Name"'
  435.             . ' FROM pg_class c, pg_user u'
  436.             . ' WHERE c.relowner = u.usesysid'
  437.             . " AND c.relkind = 'r'"
  438.             . ' AND NOT EXISTS'
  439.             . ' (SELECT 1 FROM pg_views'
  440.             . '  WHERE viewname = c.relname)'
  441.             . " AND c.relname !~ '^(pg_|sql_)'"
  442.             . ' UNION'
  443.             . ' SELECT c.relname AS "Name"'
  444.             . ' FROM pg_class c'
  445.             . " WHERE c.relkind = 'r'"
  446.             . ' AND NOT EXISTS'
  447.             . ' (SELECT 1 FROM pg_views'
  448.             . '  WHERE viewname = c.relname)'
  449.             . ' AND NOT EXISTS'
  450.             . ' (SELECT 1 FROM pg_user'
  451.             . '  WHERE usesysid = c.relowner)'
  452.             . " AND c.relname !~ '^pg_'";
  453.         $result $db->queryCol($query);
  454.         if (PEAR::isError($result)) {
  455.             return $result;
  456.         }
  457.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  458.             $result array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$result);
  459.         }
  460.         return $result;
  461.     }
  462.  
  463.     // }}}
  464.     // {{{ listTableFields()
  465.  
  466.     /**
  467.      * list all fields in a tables in the current database
  468.      *
  469.      * @param string $table name of table that should be used in method
  470.      * @return mixed data array on success, a MDB2 error on failure
  471.      * @access public
  472.      */
  473.     function listTableFields($table)
  474.     {
  475.         $db =$this->getDBInstance();
  476.         if (PEAR::isError($db)) {
  477.             return $db;
  478.         }
  479.  
  480.         $table $db->quoteIdentifier($tabletrue);
  481.         $result2 $db->query("SELECT * FROM $table");
  482.         if (PEAR::isError($result2)) {
  483.             return $result2;
  484.         }
  485.         $result $result2->getColumnNames();
  486.         $result2->free();
  487.         if (PEAR::isError($result)) {
  488.             return $result;
  489.         }
  490.         return array_flip($result);
  491.     }
  492.  
  493.     // }}}
  494.     // {{{ listTableIndexes()
  495.  
  496.     /**
  497.      * list all indexes in a table
  498.      *
  499.      * @param string    $table      name of table that should be used in method
  500.      * @return mixed data array on success, a MDB2 error on failure
  501.      * @access public
  502.      */
  503.     function listTableIndexes($table)
  504.     {
  505.         $db =$this->getDBInstance();
  506.         if (PEAR::isError($db)) {
  507.             return $db;
  508.         }
  509.  
  510.         $subquery "SELECT indexrelid FROM pg_index, pg_class";
  511.         $subquery.= " WHERE pg_class.relname='$table' AND pg_class.oid=pg_index.indrelid AND indisunique != 't' AND indisprimary != 't'";
  512.         $query = "SELECT relname FROM pg_class WHERE oid IN ($subquery)";
  513.         $indexes $db->queryCol($query'text');
  514.         if (PEAR::isError($indexes)) {
  515.             return $indexes;
  516.         }
  517.  
  518.         $result = array();
  519.         foreach ($indexes as $index{
  520.             if ($index $this->_isIndexName($index)) {
  521.                 $result[$index= true;
  522.             }
  523.         }
  524.  
  525.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  526.             $result array_change_key_case($result$db->options['field_case']);
  527.         }
  528.         return array_keys($result);
  529.     }
  530.  
  531.     // }}}
  532.     // {{{ listTableConstraints()
  533.  
  534.     /**
  535.      * list all sonstraints in a table
  536.      *
  537.      * @param string    $table      name of table that should be used in method
  538.      * @return mixed data array on success, a MDB2 error on failure
  539.      * @access public
  540.      */
  541.     function listTableConstraints($table)
  542.     {
  543.         $db =$this->getDBInstance();
  544.         if (PEAR::isError($db)) {
  545.             return $db;
  546.         }
  547.  
  548.         $query "SELECT DISTINCT conname FROM pg_constraint, pg_class";
  549.         $query.= " WHERE (pg_class.relname='$table') AND (pg_class.oid=pg_constraint.conrelid)";
  550.         $constraints $db->queryCol($query);
  551.         if (PEAR::isError($constraints)) {
  552.             return $constraints;
  553.         }
  554.  
  555.         $result = array();
  556.         foreach ($constraints as $constraint{
  557.             if ($constraint $this->_isIndexName($constraint)) {
  558.                 $result[$constraint= true;
  559.             }
  560.         }
  561.  
  562.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE
  563.             && $db->options['field_case'== CASE_LOWER
  564.         {
  565.             $result array_change_key_case($result$db->options['field_case']);
  566.         }
  567.         return array_keys($result);
  568.     }
  569.  
  570.     // }}}
  571.     // {{{ createSequence()
  572.  
  573.     /**
  574.      * create sequence
  575.      *
  576.      * @param string $seq_name name of the sequence to be created
  577.      * @param string $start start value of the sequence; default is 1
  578.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  579.      * @access public
  580.      ***/
  581.     function createSequence($seq_name$start = 1)
  582.     {
  583.         $db =$this->getDBInstance();
  584.         if (PEAR::isError($db)) {
  585.             return $db;
  586.         }
  587.  
  588.         $sequence_name $db->quoteIdentifier($db->getSequenceName($seq_name)true);
  589.         return $db->exec("CREATE SEQUENCE $sequence_name INCREMENT 1".
  590.             ($start < 1 ? " MINVALUE $start" : '')." START $start");
  591.     }
  592.  
  593.     // }}}
  594.     // {{{ dropSequence()
  595.  
  596.     /**
  597.      * drop existing sequence
  598.      *
  599.      * @param string $seq_name name of the sequence to be dropped
  600.      * @return mixed MDB2_OK on success, a MDB2 error on failure
  601.      * @access public
  602.      ***/
  603.     function dropSequence($seq_name)
  604.     {
  605.         $db =$this->getDBInstance();
  606.         if (PEAR::isError($db)) {
  607.             return $db;
  608.         }
  609.  
  610.         $sequence_name $db->quoteIdentifier($db->getSequenceName($seq_name)true);
  611.         return $db->exec("DROP SEQUENCE $sequence_name");
  612.     }
  613.  
  614.     // }}}
  615.     // {{{ listSequences()
  616.  
  617.     /**
  618.      * list all sequences in the current database
  619.      *
  620.      * @return mixed data array on success, a MDB2 error on failure
  621.      * @access public
  622.      ***/
  623.     function listSequences()
  624.     {
  625.         $db =$this->getDBInstance();
  626.         if (PEAR::isError($db)) {
  627.             return $db;
  628.         }
  629.  
  630.         $query "SELECT relname FROM pg_class WHERE relkind = 'S' AND relnamespace IN";
  631.         $query.= "(SELECT oid FROM pg_namespace WHERE nspname NOT LIKE 'pg_%' AND nspname != 'information_schema')";
  632.         $table_names $db->queryCol($query);
  633.         if (PEAR::isError($table_names)) {
  634.             return $table_names;
  635.         }
  636.         $result = array();
  637.         for ($i = 0$j count($table_names)$i $j; ++$i{
  638.             if ($sqn $this->_isSequenceName($table_names[$i])) {
  639.                 $result[$sqn;
  640.             }
  641.         }
  642.         if ($db->options['portability'MDB2_PORTABILITY_FIX_CASE{
  643.             $result array_map(($db->options['field_case'== CASE_LOWER ? 'strtolower' 'strtoupper')$result);
  644.         }
  645.         return $result;
  646.     }
  647. }
  648. ?>

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