<?php
/************************************************************************/
/* AChecker */
/************************************************************************/
/* Copyright (c) 2008 by Greg Gay, Cindy Li */
/* Adaptive Technology Resource Centre / University of Toronto */
/* */
/* This program is free software. You can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation. */
/************************************************************************/
/**
* DAO for "config" table
* @access public
* @author Cindy Qi Li
* @package DAO
*/
if (!defined('AC_INCLUDE_PATH')) exit;
require_once(AC_INCLUDE_PATH. 'classes/DAO/DAO.class.php');
class ConfigDAO extends DAO {
/**
* Return all config' information
* @access public
* @param none
* @return table rows
* @author Cindy Qi Li
*/
function getAll()
{
$sql = 'SELECT * FROM '.TABLE_PREFIX.'config ORDER BY name';
return $this->execute($sql);
}
}
?>