26 lines
454 B
Plaintext
26 lines
454 B
Plaintext
<?php
|
|
|
|
/**
|
|
* Subclass for performing query and update operations on the 'Course' table.
|
|
*
|
|
*
|
|
*
|
|
* @package lib.model
|
|
*/
|
|
class CoursePeer extends BaseCoursePeer
|
|
{
|
|
/**
|
|
* Gets a course by the slug
|
|
*
|
|
* @return the course matching the slug
|
|
* @author Benjamin Ramey <ben.ramey@gmail.com>
|
|
**/
|
|
public static function getBySlug($slug)
|
|
{
|
|
$c = new Criteria();
|
|
$c->add(self::SLUG, $slug);
|
|
|
|
return self::doSelect($c);
|
|
}
|
|
}
|