/** * Instantiates the Locale handler * * @author Art <*****@*****.**> * * @param DB $db If not using Alo::$db you can supply the reference to the database connection here * * @throws LibraryException If the above reference is not supplied and Alo::$db is not instantiated */ function __construct(DB &$db = null) { if ($db) { $this->db =& $db; } elseif (Alo::$db && Alo::$db instanceof DB) { $this->db =& Alo::$db; } else { throw new LibraryException('Alo::$db does not have a database connection assigned.', LibraryException::E_REQUIRED_LIB_NOT_FOUND); } parent::__construct(); self::$this =& $this; }
/** * Initialises our resultset handler * @author Art <*****@*****.**> * * @param array $resultset The resultset returned */ function __construct(array $resultset) { parent::__construct($resultset); }