protected function verify() { if ($this->_results) { $conditions = array(); if (Sobi::My('id')) { $this->userPermissionsQuery($conditions, null); } else { $conditions = array('state' => '1', '@VALID' => $this->_db->valid('validUntil', 'validSince')); } $conditions['id'] = $this->_results; $conditions['oType'] = 'entry'; try { $this->_db->select('id', 'spdb_object', $conditions); $results = $this->_db->loadResultArray(); foreach ($this->_results as $i => $sid) { if (!in_array($sid, $results)) { unset($this->_results[$i]); } } } catch (SPException $x) { Sobi::Error($this->name(), SPLang::e('DB_REPORTS_ERR', $x->getMessage()), SPC::ERROR, 500, __LINE__, __FILE__); } Sobi::Trigger('OnVerify', 'Search', array(&$this->_results)); } }