Files
portal-legacy/lib/model/JobStatusPeer.php
Chris Sewell cf140a2e97 initial commit
2012-11-28 03:55:08 -05:00

28 lines
700 B
PHP
Executable File

<?php
/**
* Subclass for performing query and update operations on the 'job_status' table.
*
*
*
* @package lib.model
*/
class JobStatusPeer extends BaseJobStatusPeer
{
/*
* We overrode this function so that when you look up the JobStatus
* objects for a call to object_select_tag, it will add a sort order
* automatically. The default behaviour is to not add a sort; we
* changed it.
*/
public static function doSelect(Criteria $criteria, $con = null)
{
if (sizeof($criteria->getOrderByColumns()) == 0)
{
$criteria->addAscendingOrderByColumn(JobStatusPeer::STATUS_NAME);
}
return JobStatusPeer::populateObjects(JobStatusPeer::doSelectRS($criteria, $con));
}
}