CourseTableMany.php 355 Bytes
Newer Older
Tim Steiner's avatar
Tim Steiner committed
1
2
3
4
5
6
7
<?php

abstract class Local_Db_CourseTableMany extends Nmc_Db_Table
{
    public function fetchByGeneration(CourseGeneration $generation)
    {
        $where = array();
8
        $where[] = $this->_db->quoteInto('generation = ?', $generation->getPrimaryKey());
Tim Steiner's avatar
Tim Steiner committed
9
10
11
12
13
14
15
        $where = implode(' AND ', $where);

        return $this->fetchAll($where);
    }
}

?>