<?php
//--Class Prerequisite--------------------------

include_once "clsbase_Prerequisite.php";

class 
Prerequisite extends base_Prerequisite{

function 
RSPrerequisiteByCoId($xKey){
    
$this->SetQuery("select * from Prerequisite where courseId='$xKey' order by sequence");
}

function 
RSPrerequisiteByCoIdLimit($xKey$start$pageSize){
    
$this->SetQuery("select * from Prerequisite where courseId='$xKey' order by sequence limit $start, $pageSize");
}

function 
GetNextSeqByCoId($xKey){
    
$this->SetQuery("select max(sequence) as num from Prerequisite where courseId='$xKey'");
    if (
$result=$this->GetResult()) {
        return 
$result['num']+1;
    }
}

//--End class Prerequisite--
?>