contributions/models.searchindex/start.inc.php
Go to the documentation of this file.00001 <?php 00002 00003 /** 00004 * Config options for search index 00005 * 00006 * @author Gerd Riesselmann 00007 * @ingroup SearchIndex 00008 */ 00009 class ConfigSearchIndex { 00010 /** 00011 * The name of the query paramter that contains search terms. Default is "q" 00012 */ 00013 const QUERY_PARAMETER = 'SEARCHINDEX_QUERY_PARAMETER'; 00014 /** 00015 * The name of the search index table (and model). Defaults to "searchindex" 00016 */ 00017 const TABLE_NAME = 'SEARCHINDEX_TABLE_NAME'; 00018 } 00019 00020 Config::set_value_from_constant( 00021 ConfigSearchIndex::QUERY_PARAMETER, 00022 'APP_SEARCHINDEX_QUERY_PARAMETER', 00023 'q' 00024 ); 00025 Config::set_value_from_constant( 00026 ConfigSearchIndex::TABLE_NAME, 00027 'APP_SEARCHINDEX_TABLE_NAME', 00028 'searchindex' 00029 );