/** * */ public function get($option) { if ($option == 'compound_key') { return nc_search_provider_index_field_manager::get_key_options($this); } return parent::get($option); }
public function get($option) { $value = parent::get($option); // если у страницы нет заголовка — вернуть вместо него заглушку (иначе может // пропасть ссылка на документ в результатах поиска) if ($option == 'title' && !strlen(trim($value))) { // $value = nc_search_util::decode_path(parent::get('path')); $value = NETCAT_MODULE_SEARCH_NO_TITLE; } return $value; }
/** * @param string $option * @return mixed */ public function get($option) { if ($option == 'saved_content' && ($max_length = nc_search::get_setting('MaxDocumentPreviewTextLengthInKbytes'))) { $max_length *= 1024; $content = $this->properties['intact_content']; if (strlen($content) > $max_length) { $content = substr($content, 0, strrpos($content, " ", $max_length - strlen($content))); } return $content; } return parent::get($option); }