27 lines
541 B
PHP
27 lines
541 B
PHP
<?php
|
|
|
|
/**
|
|
* Subclass for performing query and update operations on the 'LU_Employee_Position' table.
|
|
*
|
|
*
|
|
*
|
|
* @package lib.model
|
|
*/
|
|
class LuEmployeePositionPeer extends BaseLuEmployeePositionPeer
|
|
{
|
|
/**
|
|
* Get the id of the lookup employee position by
|
|
* the position name
|
|
*
|
|
* @return void
|
|
* @author Benjamin Ramey <ben.ramey@gmail.com>
|
|
**/
|
|
public static function getIdByPosition($position)
|
|
{
|
|
$c = new Criteria();
|
|
$c->add(self::POSITION, $position);
|
|
|
|
return self::doSelectOne($c)->getId();
|
|
}
|
|
}
|