/** * Constructor. Calls DAOBase constructor and sets a default ORDER BY clause. Defaults to ORDER BY users.id * * @access protected */ protected function __construct() { parent::__construct(); $this->order_by = "ORDER BY {$this->tableName}." . $this->columns[0]; }
/** * Close database connection. * * @access public */ public function close() { self::$dbh = null; // Will close database connection }