objects_ids)){ return $this->objects_ids; } parent::_get_objects_ids(); if (!$this->objects_ids) { return $this->objects_ids; } if ($this->sphinx_query == '*' && count($this->get_filters()) == 0){ return $this->objects_ids; } $query = 'select num_object, id_authority from authorities where id_authority in ('.$this->objects_ids.')'.(($this->sphinx_query != '*') ? ' order by field (id_authority,'.$this->objects_ids.')' : ''); $this->objects_ids = ''; $result = pmb_mysql_query($query); if (pmb_mysql_num_rows($result)) { while ($row = pmb_mysql_fetch_object($result)) { if ($this->objects_ids) { $this->objects_ids.= ','; } $this->objects_ids.= $row->num_object; } } return $this->objects_ids; } protected function get_full_raw_query(){ return 'select num_object as id, 100 as weight from authorities where type_object = '.$this->authority_type; } }