Location: PHPKode > scripts > PHPDBX > phpdbxa1/phpdbx/dbxfactories.php
<?

    class TDBXFactory
    {

        function MakeClass($ClassName, $FileName)
        {
            include_once($FileName);
            return new $ClassName;
        }

        function MakeDataBase($DBMS)
        {
            return $this->MakeClass('T'.strtoupper($DBMS).'DataBase', $DBMS.'databases.php');
        }

        function MakeQuery($DBMS)
        {
            return $this->MakeClass('T'.strtoupper($DBMS).'Query', $DBMS.'queries.php');
        }

    }

?>
Return current item: PHPDBX