/** * * Creates and returns the primary database connection. * @return Staple_DB * @static */ public static function get(array $conf = array()) { if (!isset(self::$conn) || $conf != array()) { $c = __CLASS__; self::$conn = new $c($conf); } return self::$conn; }