예제 #1
0
 /**
  * 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];
 }
예제 #2
0
 /**
  * Close database connection.
  *
  * @access public
  */
 public function close()
 {
     self::$dbh = null;
     // Will close database connection
 }