예제 #1
0
파일: Like.php 프로젝트: cmsx/navigator
 public function process(Navigator $navigator)
 {
     if ($this->getCallable()) {
         parent::process();
     } else {
         if ($cond = $this->prepareLikeCondition()) {
             $navigator->addCondition($cond);
         }
     }
 }
예제 #2
0
파일: Between.php 프로젝트: cmsx/navigator
 public function process(Navigator $navigator)
 {
     if ($this->getCallable()) {
         parent::process();
     } else {
         if ($from = $this->prepareFromCondition()) {
             $navigator->addCondition($from);
         }
         if ($to = $this->prepareToCondition()) {
             $navigator->addCondition($to);
         }
     }
 }