mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
27
lib/model/JobStatusPeer.php
Executable file
27
lib/model/JobStatusPeer.php
Executable file
@ -0,0 +1,27 @@
|
||||
<?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));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user