本文整理汇总了PHP中EmployeePeer::doSelectFiltered方法的典型用法代码示例。如果您正苦于以下问题:PHP EmployeePeer::doSelectFiltered方法的具体用法?PHP EmployeePeer::doSelectFiltered怎么用?PHP EmployeePeer::doSelectFiltered使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EmployeePeer
的用法示例。
在下文中一共展示了EmployeePeer::doSelectFiltered方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: executeGetListEmployee
public function executeGetListEmployee()
{
if ($this->hasRequestParameter('name') && $this->getRequestParameter('name') != '') {
$name = $this->getRequestParameter('name');
$c = new Criteria();
$cton1 = $c->getNewCriterion(EmployeePeer::NAME, "%{$name}%", Criteria::LIKE);
$cton2 = $c->getNewCriterion(EmployeePeer::EMP_NO, "%{$name}%", Criteria::LIKE);
$cton1->addOr($cton2);
$c->add($cton1);
$this->rows = EmployeePeer::doSelectFiltered($c);
}
}
示例2: executeGetCoordinatorList
public function executeGetCoordinatorList()
{
if ($this->hasRequestParameter('employee_name') && $this->getRequestParameter('employee_name') != '') {
$c = new Criteria();
$cton1 = $c->getNewCriterion(EmployeePeer::NAME, '%' . $this->getRequestParameter('employee_name') . '%', Criteria::LIKE);
$cton2 = $c->getNewCriterion(EmployeePeer::EMP_NO, '%' . $this->getRequestParameter('employee_name') . '%', Criteria::LIKE);
$cton1->addOr($cton2);
$c->add($cton1);
#$c->add(EmployeePeer::IS_THESIS_ADVISOR, 0, Criteria::NOT_EQUAL);
#$c->add(TestApplicantPeer::ISPASS1, '0');
#$this->rows = EmployeePeer::doSelectThesisAdvisor($c);
$this->rows = EmployeePeer::doSelectFiltered($c);
}
}