本文整理匯總了PHP中StudentPeer::doSelectFiltered方法的典型用法代碼示例。如果您正苦於以下問題:PHP StudentPeer::doSelectFiltered方法的具體用法?PHP StudentPeer::doSelectFiltered怎麽用?PHP StudentPeer::doSelectFiltered使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類StudentPeer
的用法示例。
在下文中一共展示了StudentPeer::doSelectFiltered方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: executeGetPayerList
public function executeGetPayerList()
{
if ($this->hasRequestParameter('payer_name') && $this->getRequestParameter('payer_name') != '') {
$c = new Criteria();
$cton1 = $c->getNewCriterion(StudentPeer::NAME, '%' . $this->getRequestParameter('payer_name') . '%', Criteria::LIKE);
$cton2 = $c->getNewCriterion(StudentPeer::CODE, '%' . $this->getRequestParameter('payer_name') . '%', Criteria::LIKE);
$cton1->addOr($cton2);
$c->add($cton1);
$c->add(StudentPeer::STATUS, Student::STATUS_GRADUATE, Criteria::NOT_EQUAL);
$this->rows = StudentPeer::doSelectFiltered($c);
}
}
示例2: executeGetListStudent
public function executeGetListStudent()
{
if ($this->hasRequestParameter('name') && $this->getRequestParameter('name') != '') {
$name = $this->getRequestParameter('name');
$c = new Criteria();
$cton1 = $c->getNewCriterion(StudentPeer::NAME, "%{$name}%", Criteria::LIKE);
$cton2 = $c->getNewCriterion(StudentPeer::CODE, "%{$name}%", Criteria::LIKE);
$cton1->addOr($cton2);
$c->add($cton1);
$this->rows = StudentPeer::doSelectFiltered($c);
}
}