Location: PHPKode > projects > VaMoLà - Validator > vamola-validator/include/classes/DAO/TestProcedureDAO.class.php
<?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 "test_procedure" 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 TestProcedureDAO extends DAO {

	/**
	* Return check info of given check id
	* @access  public
	* @param   $checkID : check id
	* @return  table rows
	* @author  Cindy Qi Li
	*/
	function getProcedureByID($checkID)
	{
		$sql = "SELECT step_id, step
						FROM ". TABLE_PREFIX ."test_procedure 
						WHERE check_id=". $checkID ."
						ORDER BY step_id";

    return $this->execute($sql);
  }

}
?>
Return current item: VaMoLà - Validator