Exemplo n.º 1
0
 /**
  *
  */
 public function get($option)
 {
     if ($option == 'compound_key') {
         return nc_search_provider_index_field_manager::get_key_options($this);
     }
     return parent::get($option);
 }
Exemplo n.º 2
0
 /**
  * Получить все поля индекса
  * (Отдельный от load_all() метод, т.к. ограничения PHP 5.2 не позволяют сделать
  * простой универсальный код для подклассов из-за отсутствия "static::".)
  * @return nc_search_provider_index_field_manager
  */
 public static function get_all()
 {
     if (!self::$cache) {
         self::$cache = $collection = new self();
         $collection->select_from_database("SELECT * FROM `%t%`");
     }
     return self::$cache;
 }
Exemplo n.º 3
0
 /**
  * @return nc_search_provider_index_field_manager
  */
 public function get_index_fields()
 {
     if (!$this->index_fields) {
         $this->index_fields = nc_search_provider_index_field_manager::get_all();
     }
     return $this->index_fields;
 }