/** * @param bool $load_all * @return nc_search_provider_index_dictionary */ public static function get_instance($load_all = false) { if (!isset(self::$instance)) { self::$instance = new self(); } if ($load_all) { self::$instance->load_all(); } return self::$instance; }
/** * @return nc_search_provider_index_dictionary */ protected function get_dictionary() { if (!$this->dictionary) { $this->dictionary = nc_search_provider_index_dictionary::get_instance(false); } return $this->dictionary; }