mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
28 lines
700 B
PHP
28 lines
700 B
PHP
![]() |
<?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));
|
||
|
}
|
||
|
}
|