/** * Constructor. * * @param array|Zend_Config $config * @throws Zend_Db_Adapter_Exception * @throws Zkilleman_Db_Adapter_Drizzle_Exception */ public function __construct($config) { if (self::$_drizzle === null) { if (!extension_loaded('drizzle')) { require_once 'Zkilleman/Db/Adapter/Drizzle/Exception.php'; throw new Zkilleman_Db_Adapter_Drizzle_Exception('The Drizzle extension is required for this adapter ' . 'but the extension is not loaded'); } else { self::$_drizzle = new Drizzle(); } } parent::__construct($config); }