Location: PHPKode > scripts > Crystal > Crystal/Manipulation/Common.php
<?php
/**
 * Crystal DBAL
 *
 * An open source application for database manipulation
 *
 * @package		Crystal DBAL
 * @author		Martin Rusev
 * @link		http://crystal.martinrusev.net
 * @since		Version 0.1
 * @version     0.1
 */

// ------------------------------------------------------------------------
class Crystal_Manipulation_Common
{

    private $active_connection;

    public $db; 

    private $_driver;

    static public function db($active_connection)
    {
      	
        $_driver =  new Crystal_Loader($active_connection);

        $adapter = "Crystal_Manipulation_" . $_driver . "_Builder";
        
		
        $db = new $adapter($active_connection);

        
        return $db;
    
    }


    
}
Return current item: Crystal