Files
pae.co.at/trunk copy/proactiveenglish/lib/model/CoursePeer.php
2017-03-02 21:57:21 -06:00

26 lines
454 B
PHP

<?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);
}
}