コード例 #1
0
ファイル: Cerbere.php プロジェクト: AF83/morm
 public function execute()
 {
     $this->executeSphinxQuery();
     if (!empty($this->sphinx_results['matches'])) {
         $ids = array();
         foreach ($this->sphinx_results['matches'] as $match) {
             $ids[] = $match['attrs'][strtolower($this->base_class) . '_id'];
         }
         $this->add_conditions(array($this->base_models[$this->base_table]->getPkey() => $ids));
         parent::execute();
     } else {
         $this->_executed = true;
         $this->mormons = array();
         $this->mormon_keys = array_keys($this->mormons);
         $this->nb_mormons = 0;
     }
 }