Completed
Push — master ( d2d28e...1c2760 )
by mw
35:37
created

DefaultSettings.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/**
4
 * DO NOT EDIT!
5
 *
6
 * The following default settings are to be used by the extension itself,
7
 * please modify settings in the LocalSettings file.
8
 *
9
 * Most settings should be make  between including this file and the call
10
 * to enableSemantics(). Exceptions that need to be set before are
11
 * documented below.
12
 *
13
 * @codeCoverageIgnore
14
 */
15
if ( !defined( 'MEDIAWIKI' ) ) {
16
  die( "This file is part of the Semantic MediaWiki extension. It is not a valid entry point.\n" );
17
}
18
19
###
20
# This is the path to your installation of Semantic MediaWiki as seen on your
21
# local filesystem. Used against some PHP file path issues.
22
# If needed, you can also change this path in LocalSettings.php after including
23
# this file.
24
##
25
$GLOBALS['smwgIP'] = dirname( __FILE__ ) . '/';
26
$GLOBALS['smwgExtraneousLanguageFileDir'] = __DIR__ . '/languages/i18n';
27
##
28
29
###
30
# Semantic MediaWiki's operational state
31
#
32
# It is expected that enableSemantics() is used to enable SMW otherwise it is
33
# disabled by default. disableSemantics() will also set the state to disabled.
34
#
35
# @since 2.4
36
##
37
$GLOBALS['smwgSemanticsEnabled'] = false;
38
##
39
40
###
41
# Use another storage backend for Semantic MediaWiki. The default is suitable
42
# for most uses of SMW.
43
##
44
$GLOBALS['smwgDefaultStore'] = "SMWSQLStore3";
45
##
46
47
###
48
# Configure SPARQL database connection for Semantic MediaWiki. This is used
49
# when SPARQL-based features are enabled, e.g. when using SMWSparqlStore as
50
# the $smwgDefaultStore.
51
#
52
# The default class SMWSparqlDatabase works with many databases that support
53
# SPARQL and SPARQL Update. Three different endpoints (service URLs) are given
54
# for query (reading queries like SELECT), update (SPARQL Update queries), and
55
# data (SPARQL HTTP Protocol for Graph Management). The query endpoint is
56
# necessary, but the update and data endpoints can be omitted if not supported.
57
# This will lead to reduced functionality (e.g. the SMWSparqlStore will not
58
# work if Update is not available). The data endpoint is always optional, but
59
# in some SPARQL databases this method is more efficient than update.
60
#
61
# The default graph is similar to a database name in relational databases. It
62
# can be set to any URI (e.g. the main page uri of your wiki with
63
# "#graph" appended). Leaving the default graph URI empty only works if the
64
# store is configure to use some default default graph or if it generally
65
# supports this. Different wikis should normally use different default graphs
66
# unless there is a good reason to share one graph.
67
##
68
$GLOBALS['smwgSparqlDatabase'] = 'SMWSparqlDatabase';
69
$GLOBALS['smwgSparqlQueryEndpoint'] = 'http://localhost:8080/sparql/';
70
$GLOBALS['smwgSparqlUpdateEndpoint'] = 'http://localhost:8080/update/';
71
$GLOBALS['smwgSparqlDataEndpoint'] = 'http://localhost:8080/data/';
72
$GLOBALS['smwgSparqlDefaultGraph'] = '';
73
##
74
75
##
76
# SparqlDBConnectionProvider
77
#
78
# Identifies a database connector that ought to be used together with the
79
# SPARQLStore
80
#
81
# List of standard connectors ($smwgSparqlDatabase will have no effect)
82
# - 'fuseki'
83
# - 'virtuoso'
84
# - '4store'
85
# - 'sesame'
86
# - 'generic'
87
#
88
# With 2.0 it is suggested to assign the necessary connector to
89
# $smwgSparqlDatabaseConnector in order to avoid arbitrary class assignments in
90
# $smwgSparqlDatabase (which can change in future releases without further notice).
91
#
92
# In case $smwgSparqlDatabaseConnector = 'custom' is maintained, $smwgSparqlDatabase
93
# is expected to contain a custom class connector where $smwgSparqlDatabase is only
94
# to be sued for when a custom database connector is necessary.
95
#
96
# $smwgSparqlDatabaseConnector = 'custom' is set as legacy configuration to allow for
97
# existing (prior 2.0) customizing to work without changes.
98
#
99
# @since 2.0
100
##
101
$GLOBALS['smwgSparqlDatabaseConnector'] = 'custom';
102
103
##
104
# Sparql query features that are expected to be supported by the repository:
105
#
106
# - SMW_SPARQL_QF_NONE does not support any features (as required by SPARQL 1.1)
107
# - SMW_SPARQL_QF_REDI to support finding redirects using inverse property paths,
108
#   can only be used for repositories with full SPARQL 1.1 support (e.g. Fuseki,
109
#   Sesame)
110
# - SMW_SPARQL_QF_SUBP to resolve subproperties
111
# - SMW_SPARQL_QF_SUBC to resolve subcategories
112
#
113
# Please check with your repository provider whether SPARQL 1.1 is fully
114
# supported or not, and if not SMW_SPARQL_QF_NONE should be set.
115
#
116
# @since 2.3
117
##
118
$GLOBALS['smwgSparqlQFeatures'] = SMW_SPARQL_QF_REDI | SMW_SPARQL_QF_SUBP | SMW_SPARQL_QF_SUBC;
119
120
##
121
# @see https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1306
122
#
123
# Setting to explicitly force a CURLOPT_HTTP_VERSION for the endpoint communication
124
# and should not be changed unless an error as in #1306 was encountered.
125
#
126
# @see http://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html reads "... libcurl
127
# to use the specific HTTP versions. This is not sensible to do unless you have
128
# a good reason.""
129
#
130
# @since 2.3
131
# @default false === means to use the default as determined by cURL
132
##
133
$GLOBALS['smwgSparqlRepositoryConnectorForcedHttpVersion'] = false;
134
135
###
136
# Setting this option to true before including this file to enable the old
137
# Type: namespace that SMW used up to version 1.5.*. This should only be
138
# done to make the pages of this namespace temporarily accessible in order to
139
# move their content to other pages. If the namespace is not registered, then
140
# existing pages in this namespace cannot be found in the wiki.
141
##
142
if ( !isset( $GLOBALS['smwgHistoricTypeNamespace'] ) ) {
143
	$GLOBALS['smwgHistoricTypeNamespace'] = false;
144
}
145
##
146
147
###
148
# If you already have custom namespaces on your site, insert
149
#    $GLOBALS['smwgNamespaceIndex'] = ???;
150
# into your LocalSettings.php *before* including this file. The number ??? must
151
# be the smallest even namespace number that is not in use yet. However, it
152
# must not be smaller than 100.
153
##
154
155
###
156
# Overwriting the following array, you can define for which namespaces
157
# the semantic links and annotations are to be evaluated. On other
158
# pages, annotations can be given but are silently ignored. This is
159
# useful since, e.g., talk pages usually do not have attributes and
160
# the like. In fact, is is not obvious what a meaningful attribute of
161
# a talk page could be. Pages without annotations will also be ignored
162
# during full RDF export, unless they are referred to from another
163
# article.
164
##
165
$GLOBALS['smwgNamespacesWithSemanticLinks'] = array(
166
	NS_MAIN => true,
167
	NS_TALK => false,
168
	NS_USER => true,
169
	NS_USER_TALK => false,
170
	NS_PROJECT => true,
171
	NS_PROJECT_TALK => false,
172
	NS_IMAGE => true,
173
	NS_IMAGE_TALK => false,
174
	NS_MEDIAWIKI => false,
175
	NS_MEDIAWIKI_TALK => false,
176
	NS_TEMPLATE => false,
177
	NS_TEMPLATE_TALK => false,
178
	NS_HELP => true,
179
	NS_HELP_TALK => false,
180
	NS_CATEGORY => true,
181
	NS_CATEGORY_TALK => false,
182
);
183
184
###
185
# This setting allows you to select in which cases you want to have a factbox
186
# appear below an article. Note that the Magic Words __SHOWFACTBOX__ and
187
# __HIDEFACTBOX__ can be used to control Factbox display for individual pages.
188
# Other options for this setting include:
189
##
190
// $GLOBALS['smwgShowFactbox'] = SMW_FACTBOX_NONEMPTY; # show only those factboxes that have some content
191
// $GLOBALS['smwgShowFactbox'] = SMW_FACTBOX_SPECIAL # show only if special properties were set
192
$GLOBALS['smwgShowFactbox'] = SMW_FACTBOX_HIDDEN; # hide always
193
// $GLOBALS['smwgShowFactbox'] = SMW_FACTBOX_SHOWN;  # show always, buggy and not recommended
194
##
195
196
###
197
# Same as $smwgShowFactbox but for edit mode and same possible values.
198
##
199
$GLOBALS['smwgShowFactboxEdit'] = SMW_FACTBOX_NONEMPTY;
200
##
201
202
###
203
# Should the toolbox of each content page show a link to browse the properties
204
# of that page using Special:Browse? This is a useful way to access properties
205
# and it is somewhat more subtle than showing a Factbox on every page.
206
##
207
$GLOBALS['smwgToolboxBrowseLink'] = true;
208
##
209
210
###
211
# Should warnings be displayed in wikitexts right after the problematic input?
212
# This affects only semantic annotations, not warnings that are displayed by
213
# inline queries or other features.
214
##
215
$GLOBALS['smwgInlineErrors'] = true;
216
##
217
218
###
219
# Should SMW consider MediaWiki's subcategory hierarchy in querying? If set to
220
# true, subcategories will always be interpreted like subclasses. For example,
221
# if A is a subcategory of B then a query for all elements of B will also yield
222
# all elements of A. If this setting is disabled, then subclass relationships
223
# can still be given explicitly by using the property "subcategory of" on some
224
# category page. Only if the setting is false will such annotations be shown in
225
# the factbox (if enabled).
226
##
227
$GLOBALS['smwgUseCategoryHierarchy'] = true;
228
##
229
230
###
231
# Should category pages that use some [[Category:Foo]] statement be treated as
232
# elements of the category Foo? If disabled, then it is not possible to make
233
# category pages elements of other categories. See also the above setting
234
# $smwgUseCategoryHierarchy.
235
##
236
$GLOBALS['smwgCategoriesAsInstances'] = true;
237
##
238
239
###
240
# Should SMW accept inputs like [[property::Some [[link]] in value]]? If
241
# enabled, this may lead to PHP crashes (!) when very long texts are used as
242
# values. This is due to limitations in the library PCRE that PHP uses for
243
# pattern matching. The provoked PHP crashes will prevent requests from being
244
# completed -- usually clients will receive server errors ("invalid response")
245
# or be offered to download "index.php". It might be okay to enable this if
246
# such problems are not observed in your wiki.
247
##
248
$GLOBALS['smwgLinksInValues'] = false;
249
##
250
251
###
252
# Settings for recurring events, created with the #set_recurring_event parser
253
# function: the default number of instances defined, if no end date is set;
254
# and the maximum number that can be defined, regardless of end date.
255
##
256
$GLOBALS['smwgDefaultNumRecurringEvents'] = 100;
257
$GLOBALS['smwgMaxNumRecurringEvents'] = 500;
258
##
259
260
###
261
# Should the browse view for incoming links show the incoming links via its
262
# inverses, or shall they be displayed on the other side?
263
##
264
$GLOBALS['smwgBrowseShowInverse'] = false;
265
##
266
267
###
268
# Should the browse view always show the incoming links as well, and more of
269
# the incoming values?
270
##
271
$GLOBALS['smwgBrowseShowAll'] = true;
272
##
273
274
###
275
# Whether the browse display is to be generated using an API request or not.
276
##
277
$GLOBALS['smwgBrowseByApi'] = true;
278
##
279
280
###
281
# Should the search by property special page display nearby results when there
282
# are only a few results with the exact value? Switch this off if this page has
283
# performance problems.
284
#
285
# @since 2.1 enabled default types, to disable the functionality either set the
286
# variable to array() or false
287
##
288
$GLOBALS['smwgSearchByPropertyFuzzy'] = array( '_num', '_txt', '_dat', '_mlt_rec' );
289
##
290
291
###
292
# Number results shown in the listings on pages in the namespaces Property,
293
# Type, and Concept. If a value of 0 is given, the respective listings are
294
# hidden completely.
295
##
296
$GLOBALS['smwgTypePagingLimit'] = 200;    // same number as for categories
297
$GLOBALS['smwgConceptPagingLimit'] = 200; // same number as for categories
298
$GLOBALS['smwgPropertyPagingLimit'] = 25; // use smaller value since property lists need more space
299
##
300
301
###
302
# How many values should at most be displayed for a page on the Property page?
303
##
304
$GLOBALS['smwgMaxPropertyValues'] = 3; // if large values are desired, consider reducing $smwgPropertyPagingLimit for better performance
305
##
306
307
###
308
# Settings for inline queries ({{#ask:...}}) and for semantic queries in
309
# general. This can especially be used to prevent overly high server-load due
310
# to complex queries. The following settings affect all queries, wherever they
311
# occur.
312
##
313
$GLOBALS['smwgQEnabled'] = true;   // (De)activates all query related features and interfaces
314
$GLOBALS['smwgQMaxLimit'] = 10000; // Max number of results *ever* retrieved, even when using special query pages.
315
$GLOBALS['smwgIgnoreQueryErrors'] = true; // Should queries be executed even if some errors were detected?
316
										// A hint that points out errors is shown in any case.
317
318
$GLOBALS['smwgQSubcategoryDepth'] = 10;  // Restrict level of sub-category inclusion (steps within category hierarchy)
319
$GLOBALS['smwgQSubpropertyDepth'] = 10;  // Restrict level of sub-property inclusion (steps within property hierarchy)
320
										// (Use 0 to disable hierarchy-inferencing in queries)
321
$GLOBALS['smwgQEqualitySupport'] = SMW_EQ_SOME; // Evaluate #redirects as equality between page names, with possible
322
												// performance-relevant restrictions depending on the storage engine
323
// $GLOBALS['smwgQEqualitySupport'] = SMW_EQ_FULL; // Evaluate #redirects as equality between page names in all cases
324
// $GLOBALS['smwgQEqualitySupport'] = SMW_EQ_NONE; // Never evaluate #redirects as equality between page names
325
$GLOBALS['smwgQSortingSupport']     = true; // (De)activate sorting of results.
326
$GLOBALS['smwgQRandSortingSupport'] = true; // (De)activate random sorting of results.
327
$GLOBALS['smwgQDefaultNamespaces'] = null; // Which namespaces should be searched by default?
328
										// (value NULL switches off default restrictions on searching -- this is faster)
329
										// Example with namespaces: $GLOBALS['smwgQDefaultNamespaces'] = array(NS_MAIN, NS_IMAGE);
0 ignored issues
show
Unused Code Comprehensibility introduced by
41% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
330
331
/**
332
* List of comparator characters supported by queries, separated by '|', for use in a regex.
333
*
334
* Available entries:
335
* 	< (smaller than) if $smwStrictComparators is false, it's actually smaller than or equal to
336
* 	> (greater than) if $smwStrictComparators is false, it's actually bigger than or equal to
337
* 	! (unequal to)
338
* 	~ (pattern with '*' as wildcard, only for Type:String)
339
* 	!~ (not a pattern with '*' as wildcard, only for Type:String, need to be placed before ! and ~ to work correctly)
340
* 	≤ (smaller than or equal to)
341
* 	≥ (greater than or equal to)
342
*
343
* If unsupported comparators are used, they are treated as part of the queried value
344
*
345
* @var string
346
*/
347
$GLOBALS['smwgQComparators'] = '<|>|!~|!|~|≤|≥|<<|>>';
348
349
###
350
# Sets whether the > and < comparators should be strict or not. If they are strict,
351
# values that are equal will not be accepted.
352
##
353
$GLOBALS['smwStrictComparators'] = false;
354
##
355
356
###
357
# Further settings for queries. The following settings affect inline queries
358
# and querying special pages. Essentially they should mirror the kind of
359
# queries that should immediately be answered by the wiki, using whatever
360
# computations are needed.
361
##
362
$GLOBALS['smwgQMaxSize'] = 16; // Maximal number of conditions in queries, use format=debug for example sizes
363
$GLOBALS['smwgQMaxDepth'] = 4; // Maximal property depth of queries, e.g. [[rel::<q>[[rel2::Test]]</q>]] has depth 2
364
365
// The below setting defines which query features should be available by default.
366
// Examples:
367
// only cateory intersections: $GLOBALS['smwgQFeatures'] = SMW_CATEGORY_QUERY | SMW_CONJUNCTION_QUERY;
368
// only single concepts:       $GLOBALS['smwgQFeatures'] = SMW_CONCEPT_QUERY;
369
// anything but disjunctions:  $GLOBALS['smwgQFeatures'] = SMW_ANY_QUERY & ~SMW_DISJUNCTION_QUERY;
370
// The default is to support all basic features.
371
$GLOBALS['smwgQFeatures'] = SMW_PROPERTY_QUERY | SMW_CATEGORY_QUERY | SMW_CONCEPT_QUERY |
372
					SMW_NAMESPACE_QUERY | SMW_CONJUNCTION_QUERY | SMW_DISJUNCTION_QUERY;
373
374
### Settings about printout of (especially inline) queries:
375
$GLOBALS['smwgQDefaultLimit'] = 50;      // Default number of rows returned in a query. Can be increased with limit=num in #ask
376
$GLOBALS['smwgQMaxInlineLimit'] = 500;   // Max number of rows ever printed in a single inline query on a single page.
377
$GLOBALS['smwgQUpperbound'] = 5000;      // Max number of rows ever printed in a single inline query on a single page.
378
$GLOBALS['smwgQPrintoutLimit']  = 100;   // Max number of supported printouts (added columns in result table, ?-statements)
379
$GLOBALS['smwgQDefaultLinking'] = 'all'; // Default linking behavior. Can be one of "none", "subject" (first column), "all".
380
381
382
###
383
# Further settings for queries. The following settings affect queries that are
384
# part of concept pages. These are usually chosen to be les restricted than
385
# inline queries, since there are two other means for controling their use:
386
# (1) Concept queries that would not be allowed as normal queries will not be
387
# executed directly, but can use pre-computed results instead. This is the
388
# default.
389
# (2) The whole Concept: namespace can be restricted (using some suitable
390
# MediaWiki extension) to an experienced user group that may create more
391
# complex queries responably. Other users can employ thus defined concepts in
392
# their queries.
393
##
394
$GLOBALS['smwgQConceptCaching'] = CONCEPT_CACHE_HARD; // Which concepts should be displayed only if available from cache?
395
		// CONCEPT_CACHE_ALL   -- show concept elements anywhere only if they are cached
396
		// CONCEPT_CACHE_HARD  -- show without cache if concept is not harder than permitted inline queries
397
		// CONCEPT_CACHE_NONE  -- show all concepts even without any cache
398
		// In any cases, caches will always be used if available.
399
$GLOBALS['smwgQConceptMaxSize'] = 20; // Same as $smwgQMaxSize, but for concepts
400
$GLOBALS['smwgQConceptMaxDepth'] = 8; // Same as $smwgQMaxDepth, but for concepts
401
402
// Same as $smwgQFeatures but for concepts
403
$GLOBALS['smwgQConceptFeatures'] = SMW_PROPERTY_QUERY | SMW_CATEGORY_QUERY | SMW_NAMESPACE_QUERY |
404
								SMW_CONJUNCTION_QUERY | SMW_DISJUNCTION_QUERY | SMW_CONCEPT_QUERY;
405
406
// Cache life time in minutes. If a concept cache exists but is older than
407
// this, SMW tries to recompute it, and will only use the cache if this is not
408
// allowed due to settings above:
409
$GLOBALS['smwgQConceptCacheLifetime'] = 24 * 60;
410
411
412
### Predefined result formats for queries
413
# Array of available formats for formatting queries. Can be redefined in
414
# the settings to disallow certain formats or to register extension formats.
415
# To disable a format, do "unset($smwgResultFormats['template']);" Disabled
416
# formats will be treated like if the format parameter had been omitted. The
417
# formats 'table' and 'list' are defaults that cannot be disabled. The format
418
# 'broadtable' should not be disabled either in order not to break Special:ask.
419
##
420
$GLOBALS['smwgResultFormats'] = array(
421
	'table'      => 'SMW\TableResultPrinter',
422
	'list'       => 'SMW\ListResultPrinter',
423
	'ol'         => 'SMW\ListResultPrinter',
424
	'ul'         => 'SMW\ListResultPrinter',
425
	'broadtable' => 'SMW\TableResultPrinter',
426
	'category'   => 'SMW\CategoryResultPrinter',
427
	'embedded'   => 'SMW\EmbeddedResultPrinter',
428
	'template'   => 'SMW\ListResultPrinter',
429
	'count'      => 'SMW\ListResultPrinter',
430
	'debug'      => 'SMW\ListResultPrinter',
431
	'feed'       => 'SMW\FeedResultPrinter',
432
	'csv'        => 'SMW\CsvResultPrinter',
433
	'dsv'        => 'SMW\DsvResultPrinter',
434
	'json'       => 'SMW\JsonResultPrinter',
435
	'rdf'        => 'SMW\RdfResultPrinter'
436
);
437
##
438
439
### Predefined aliases for result formats
440
# Array of available aliases for result formats. Can be redefined in
441
# the settings to disallow certain aliases or to register extension aliases.
442
# To disable an alias, do "unset($smwgResultAliases['alias']);" Disabled
443
# aliases will be treated like if the alias parameter had been omitted.
444
##
445
$GLOBALS['smwgResultAliases'] = array( 'feed' => array( 'rss' ) );
446
##
447
448
### Predefined sources for queries
449
# Array of available sources for answering queries. Can be redefined in
450
# the settings to register new sources (usually an extension will do so
451
# on installation). Unknown source will be rerouted to the local wiki.
452
# Note that the basic installation comes with no additional source besides
453
# the local source (which in turn cannot be disabled or set explicitly).
454
# Set a new store like this: $smwgQuerySources['freebase'] = "SMWFreebaseStore";
455
##
456
$GLOBALS['smwgQuerySources'] = array(
457
//	'local'      => '',
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
458
);
459
##
460
461
### Default property type
462
# Undefined properties (those without pages or whose pages have no "has type"
463
# statement) will be assumed to be of this type. This is an internal type id.
464
# See the file languages/SMW_LanguageXX.php to find what IDs to use for
465
# datatpyes in your language. The default corresponds to "Type:Page".
466
##
467
$GLOBALS['smwgPDefaultType'] = '_wpg';
468
##
469
470
###
471
# Settings for OWL/RDF export
472
##
473
$GLOBALS['smwgAllowRecursiveExport'] = false; // can normal users request recursive export?
474
$GLOBALS['smwgExportBacklinks'] = true; // should backlinks be included by default?
475
// global $smwgNamespace;                     // The Namespace of exported URIs.
476
// $GLOBALS['smwgNamespace'] = "http://example.org/id/"; // Will be set automatically if
477
// nothing is given, but in order to make pretty URIs you will need to set this
478
// to something nice and adapt your Apache configuration appropriately. This is
479
// done, e.g., on semanticweb.org, where URIs are of the form
480
// http://semanticweb.org/id/FOAF
481
##
482
483
###
484
# The maximal number that SMW will normally display without using scientific exp
485
# notation. The deafult is rather large since some users have problems understanding
486
# exponents. Scineitfic applications may prefer a smaller value for concise display.
487
##
488
$GLOBALS['smwgMaxNonExpNumber'] = 1000000000000000;
489
##
490
491
###
492
# SMW defers some tasks until after a page was edited by using the MediaWiki
493
# job queueing system (see http://www.mediawiki.org/wiki/Manual:Job_queue).
494
# For example, when the type of a property is changed, all affected pages will
495
# be scheduled for (later) update. If a wiki generates too many jobs in this
496
# way (Special:Statistics and "showJobs.php" can be used to check that), the
497
# following setting can be used to disable jobs. Note that this will cause some
498
# parts of the semantic data to get out of date, so that manual modifications
499
# or the use of SMW_refreshData.php might be needed.
500
##
501
$GLOBALS['smwgEnableUpdateJobs'] = true;
502
##
503
504
### List of enabled special page properties.
505
# Modification date (_MDAT) is enabled by default for backward compatibility.
506
# Extend array to enable other properties:
507
#     $smwgPageSpecialProperties[] = '_CDAT';
508
# Or:
509
#     array_merge( $smwgPageSpecialProperties, array( '_CDAT' ) );
510
# Or rewrite entire array:
511
#     $GLOBALS['smwgPageSpecialProperties'] = array( '_MDAT', '_CDAT' );
512
# However, DO NOT use `+=' operator! This DOES NOT work:
513
#     $smwgPageSpecialProperties += array( '_MDAT' );
514
##
515
$GLOBALS['smwgPageSpecialProperties'] = array( '_MDAT' );
516
517
###
518
# Properties (usually given as internal ids or DB key versions of property
519
# titles) that are relevant for declaring the behavior of a property P on a
520
# property page in the sense that changing their values requires that all
521
# pages that use P must be processed again. For example, if _PVAL (allowed
522
# values) for a property change, then pages must be processed again. This
523
# setting is not normally changed by users but by extensions that add new
524
# types that have their own additional declaration properties.
525
##
526
$GLOBALS['smwgDeclarationProperties'] = array( '_PVAL', '_LIST', '_PVAP', '_PVUC' );
527
##
528
529
###
530
# By default, DataTypes (Date, URL etc.) are registered with a corresponding
531
# property of the same name to match the expected semantics. Yet, users can
532
# decide to change the behaviour by exempting listed DataTypes from the property
533
# registration process.
534
#
535
# @since 2.5
536
##
537
$GLOBALS['smwgDataTypePropertyExemptionList'] = array(
538
	'Record',
539
	'Reference'
540
);
541
##
542
543
// some default settings which usually need no modification
544
545
###
546
# -- FEATURE IS DISABLED --
547
# Setting this to true allows to translate all the labels within
548
# the browser GIVEN that they have interwiki links.
549
##
550
$GLOBALS['smwgTranslate'] = false;
551
552
###
553
# -- FEATURE IS DISABLED --
554
# If you want to import ontologies, you need to install RAP,
555
# a free RDF API for PHP, see
556
#     http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/
557
# The following is the path to your installation of RAP
558
# (the directory where you extracted the files to) as seen
559
# from your local filesystem. Note that ontology import is
560
# highly experimental at the moment, and may not do what you
561
# extect.
562
##
563
// $GLOBALS['smwgRAPPath'] = $smwgIP . 'libs/rdfapi-php';
564
// $GLOBALS['smwgRAPPath'] = '/another/example/path/rdfapi-php';
565
##
566
567
###
568
# If the following is set to true, it is possible to initiate the repairing
569
# or updating of all wiki data using the interface on Special:SMWAdmin.
570
##
571
$GLOBALS['smwgAdminRefreshStore'] = true;
572
##
573
574
###
575
# Sets whether or not the 'printouts' textarea should have autocompletion
576
# on property names.
577
##
578
$GLOBALS['smwgAutocompleteInSpecialAsk'] = true;
579
##
580
581
###
582
# Sets whether or not to refresh the pages of which semantic data is stored.
583
# Introduced in SMW 1.5.6
584
##
585
$GLOBALS['smwgAutoRefreshSubject'] = true;
586
##
587
588
###
589
# Sets Semantic MediaWiki object cache and is used to track temporary
590
# changes in SMW
591
#
592
# @see http://www.mediawiki.org/wiki/$wgMainCacheType
593
#
594
# @since 1.9
595
##
596
$GLOBALS['smwgCacheType'] = CACHE_ANYTHING;  // To be removed with 3.0 use $smwgMainCacheType
597
$GLOBALS['smwgMainCacheType'] = CACHE_ANYTHING; // Isn't used yet
598
##
599
600
###
601
# Separate cache type to allow for adding a more responsive cache layer
602
# (redis, riak) when requesting value lookups from the SQLStore.
603
#
604
# CACHE_NONE = disabled, uses the standard SQLStore DB access for all
605
# lookups
606
#
607
# @since 2.3 (experimental)
608
#
609
# @default: CACHE_NONE, users need to actively enable it in order
610
# to make use of it
611
##
612
$GLOBALS['smwgValueLookupCacheType'] = CACHE_NONE;
613
##
614
615
###
616
# Declares a lifetime of a cached item for `smwgValueLookupCacheType` until it
617
# is removed if not invalidated before.
618
#
619
# @since 2.3
620
##
621
$GLOBALS['smwgValueLookupCacheLifetime'] = 60 * 60 * 24 * 7; // a week
622
##
623
624
##
625
# Features expected to be enabled in CachedValueLookupStore
626
#
627
# Flags that declare a enable/disable state of a supported functionality. If a
628
# feature is disabled then a connection is always established to the standard
629
# Repository/DB backend.
630
#
631
# The settings are only relevant for cases where `smwgValueLookupCacheType` is
632
# set.
633
#
634
# - SMW_VL_SD: corresponds to Store::getSemanticData
635
# - SMW_VL_PL: corresponds to Store::getProperties
636
# - SMW_VL_PV: corresponds to Store::getPropertyValues
637
# - SMW_VL_PS: corresponds to Store::getPropertySubjects
638
#
639
# @since 2.3
640
#
641
# @default: all features are enabled
642
##
643
$GLOBALS['smwgValueLookupFeatures'] = SMW_VL_SD | SMW_VL_PL | SMW_VL_PV | SMW_VL_PS;
644
645
###
646
# An array containing cache related settings used within Semantic MediaWiki
647
# and requires $smwgCacheType be set otherwise caching will have no effect.
648
#
649
# - smwgWantedPropertiesCache Enable to serve wanted properties from cache
650
# - smwgWantedPropertiesCacheExpiry Number of seconds before the cache expires
651
#
652
# - smwgUnusedPropertiesCache Enable to serve unused properties from cache
653
# - smwgUnusedPropertiesCacheExpiry Number of seconds before the cache expires
654
#
655
# - smwgPropertiesCache Enable to serve properties from cache
656
# - smwgPropertiesCacheExpiry Number of seconds before the cache expires
657
#
658
# - smwgStatisticsCache Enable to serve statistics from cache
659
# - smwgStatisticsCacheExpiry Number of seconds before the cache expires
660
#
661
# @since 1.9
662
##
663
$GLOBALS['smwgCacheUsage'] = array(
664
	'smwgWantedPropertiesCache' => true,
665
	'smwgWantedPropertiesCacheExpiry' => 3600,
666
	'smwgUnusedPropertiesCache' => true,
667
	'smwgUnusedPropertiesCacheExpiry' => 3600,
668
	'smwgPropertiesCache' => true,
669
	'smwgPropertiesCacheExpiry' => 3600,
670
	'smwgStatisticsCache' => true,
671
	'smwgStatisticsCacheExpiry' => 3600,
672
);
673
674
###
675
# Sets whether or not to refresh semantic data in the store when a page is
676
# manually purged
677
#
678
# @since 1.9
679
#
680
# @requires  $smwgCacheType be set
681
# @default true
682
##
683
$GLOBALS['smwgAutoRefreshOnPurge'] = true;
684
##
685
686
###
687
# Sets whether or not to refresh semantic data in the store when a page was
688
# moved
689
#
690
# @since 1.9
691
#
692
# @requires  $smwgCacheType be set
693
# @default true
694
##
695
$GLOBALS['smwgAutoRefreshOnPageMove'] = true;
696
##
697
698
##
699
# These are fixed properties, i.e. user defined properties having a
700
# dedicated table for them. Entries in this array have the following format:
701
#
702
# 		property_key => property_type.
703
#
704
# The 'property_key' is the title of the property (with underscores instead
705
# of _ and capital first letter).
706
# The 'property_type' denotes the type of the property and has to be one of the following:
707
#		SMWDataItem::TYPE_BLOB
708
#		SMWDataItem::TYPE_URI
709
#		SMWDataItem::TYPE_WIKIPAGE
710
#		SMWDataItem::TYPE_NUMBER
711
#		SMWDataItem::TYPE_TIME
712
#		SMWDataItem::TYPE_BOOLEAN
713
#		SMWDataItem::TYPE_CONTAINER
714
#		SMWDataItem::TYPE_GEO
715
#		SMWDataItem::TYPE_CONCEPT
716
#		SMWDataItem::TYPE_PROPERTY
717
#
718
# A run of setup using SMWAdmin is needed to create these tables. If an already used property is assigned a new table all old data for this property will
719
# become inaccessible for SMW. This can be repaired by either migrating it to the new table (repair data) or will eventually be updated on page edits.
720
#
721
# Example: If you have a property named 'Age' which is of type 'Number' then add in LocalSettings:
722
#
723
# 	$GLOBALS['smwgFixedProperties'] = array(
724
#		'Age' => SMWDataItem::TYPE_NUMBER
725
#  	);
726
#
727
# @see http://semantic-mediawiki.org/wiki/Fixed_properties
728
#
729
# @since 1.9
730
#
731
# @var array
732
##
733
$GLOBALS['smwgFixedProperties'] = array();
734
735
###
736
# Sets a threshold value for when a property is being highlighted as "hardly
737
# begin used" on Special:Properties
738
#
739
# @since 1.9
740
#
741
# default = 5
742
##
743
$GLOBALS['smwgPropertyLowUsageThreshold'] = 5;
744
##
745
746
###
747
# Hide properties where the usage count is zero on Special:Properties
748
#
749
# @since 1.9
750
#
751
# default = true (legacy behaviour)
752
##
753
$GLOBALS['smwgPropertyZeroCountDisplay'] = true;
754
755
###
756
# Sets whether or not a factbox content should be stored in cache. This will
757
# considerable improve page response time as non-changed page content will
758
# not cause re-parsing of factbox content and instead is served directly from
759
# cache while only a new revision will trigger to re-parse the factbox.
760
#
761
# If smwgFactboxUseCache is set false (equals legacy behaviour) then every page
762
# request will bind the factbox to be re-parsed.
763
#
764
# @since 1.9
765
#
766
# @requires $smwgCacheType be set
767
# @default true
768
##
769
$GLOBALS['smwgFactboxUseCache'] = true;
770
##
771
772
###
773
# Sets whether or not a cached factbox should be invalidated on an action=purge
774
# event
775
#
776
# If set false the factbox cache will be only reset after a new page revision
777
# but if set true each purge request (no new page revision) will invalidate
778
# the factbox cache
779
#
780
# @since 1.9
781
#
782
# @requires $smwgCacheType be set
783
# @default true
784
##
785
$GLOBALS['smwgFactboxCacheRefreshOnPurge'] = true;
786
##
787
788
###
789
# This option enables to omit categories (marked with __HIDDENCAT__) from
790
# the annotation process.
791
#
792
# If a category is updated of either being hidden or visible, pages need to
793
# be refreshed to ensure that the StoreUpdater can make use of the changed
794
# environment.
795
#
796
# @since 1.9
797
# @default true (true = legacy behaviour, false = not to show hidden categories)
798
##
799
$GLOBALS['smwgShowHiddenCategories'] = true;
800
##
801
802
###
803
# QueryProfiler related setting to enable/disable specific monitorable profile
804
# data
805
#
806
# @note If these settings are changed, please ensure to run update.php/rebuildData.php
807
#
808
# - smwgQueryProfiler can be set false itself allowing it to disable its
809
# functionality but it may impact secondary processes that rely on profile
810
# information to be available (Notification system etc.)
811
#
812
# - smwgQueryDurationEnabled to record query duration (the time
813
# between the query result selection and output its)
814
#
815
#
816
# @since 1.9
817
##
818
$GLOBALS['smwgQueryProfiler'] = array(
819
	'smwgQueryDurationEnabled' => false,
820
);
821
##
822
823
###
824
# Enables SMW specific annotation and content processing for listed SpecialPages
825
#
826
# @since 1.9
827
##
828
$GLOBALS['smwgEnabledSpecialPage'] = array( 'Ask' );
829
##
830
831
###
832
# Search engine to fall back to in case SMWSearch is used as custom search
833
# engine but is unable to interpret the search term as an SMW query
834
#
835
# Leave as null to select the default search engine for the selected database
836
# type (e.g. SearchMySQL, SearchPostgres or SearchOracle), or set to a class
837
# name to override to a custom search engine.
838
#
839
# @since 2.1
840
##
841
$GLOBALS['smwgFallbackSearchType'] = null;
842
##
843
844
###
845
# If enabled it will display help information on the edit page to support users
846
# unfamiliar with SMW when extending page content.
847
#
848
# @since 2.1
849
##
850
$GLOBALS['smwgEnabledEditPageHelp'] = true;
851
##
852
853
###
854
# Various MediaWiki update operations in MW 1.26+ started to use DeferredUpdates
855
# and to ensure that the Store update follows in queue of updates made to a page
856
# this setting should be enabled by default for MW 1.26 onwards.
857
#
858
# It will improve page responsiveness for purge and move action significantly.
859
#
860
# @since 2.4
861
##
862
$GLOBALS['smwgEnabledDeferredUpdate'] = true;
863
##
864
865
###
866
# Improves performance for selected Job operations that can be executed in a deferred
867
# processing mode (or asynchronous to the current transaction) as those (if enabled)
868
# are send as request to a dispatcher in order for them to be decoupled from the
869
# initial transaction.
870
#
871
# @since 2.3
872
##
873
$GLOBALS['smwgEnabledHttpDeferredJobRequest'] = true;
874
##
875
876
###
877
# If enabled it will store dependencies for queries allowing it to purge
878
# the ParserCache on subjects with embedded queries that contain altered entities.
879
#
880
# The setting requires to run `update.php` (it creates an extra table). Also
881
# as noted in #1117, `SMW\ParserCachePurgeJob` should be scheduled accordingly.
882
#
883
# Requires `smwgEnabledHttpDeferredJobRequest` to be set true.
884
#
885
# @since 2.3 (experimental)
886
# @default false
887
##
888
$GLOBALS['smwgEnabledQueryDependencyLinksStore'] = false;
889
##
890
891
###
892
# Relates to `smwgEnabledQueryDependencyLinksStore` and defines property keys
893
# to be excluded from the dependency detection.
894
#
895
# For example, to avoid a purge process being triggered for each altered subobject
896
# '_SOBJ' is excluded from the processing but it will not exclude any properties
897
# defined by a subobject (given that it is not part of an extended exclusion list).
898
#
899
# `_MDAT` is excluded to avoid a purge on each page edit with a `Modification date`
900
# change that would otherwise trigger a dependency update.
901
#
902
# '_ASKDU' changes to the duration of a query should not trigger an update of
903
# possible query dependencies (as this has no bearing on the result list).
904
#
905
# @since 2.3 (experimental)
906
##
907
$GLOBALS['smwgQueryDependencyPropertyExemptionlist'] = array( '_MDAT', '_SOBJ', '_ASKDU' );
908
##
909
910
###
911
# Listed properties are marked as affiliate, meaning that when an alteration to
912
# a property value occurs query dependencies for the related entity are recorded
913
# as well. For example, _DTITLE is most likely such property where a change would
914
# normally not be reflected in query results (as it not directlty linked to a
915
# query) but when added as an affiliated, changes to its content will be
916
# handled as if it is linked to an embedded entity.
917
#
918
# @since 2.4 (experimental)
919
##
920
$GLOBALS['smwgQueryDependencyAffiliatePropertyDetectionlist'] = array();
921
##
922
923
###
924
# The setting is introduced the keep backwards compatibility with existing Rdf/Turtle
925
# exports. The `aux` marker is epxected only used to be used for selected properties
926
# to generate a helper value and not for any other predefined property.
927
#
928
# Any property that does not explicitly require an auxiliary value (such `_dat`/
929
# `_geo` type values) now uses its native as condition descriptor (`Has_subobject`
930
# instead of `Has_subobject-23aux`)
931
#
932
# For SPARQL repository users that don't want to run an a  `rebuildData.php`,
933
# the setting has to be TRUE.
934
#
935
# This BC setting is planned to vanish with 3.x.
936
#
937
# @since 2.3
938
##
939
$GLOBALS['smwgExportBCAuxiliaryUse'] = false;
940
##
941
942
##
943
# The preferred form is to use canonical identifiers (Category:, Property:)
944
# instead of localized names to ensure that RDF/Query statements are language
945
# agnostic and do work even after the site/content language changes.
946
#
947
# This BC setting is planned to vanish with 3.x.
948
#
949
# @since 2.3
950
##
951
$GLOBALS['smwgExportBCNonCanonicalFormUse'] = false;
952
953
##
954
# The strict mode is to help to remove ambiguity during the annotation [[ ... :: ... ]]
955
# parsing process.
956
#
957
# The default interpretation (strict) is to find a single triple such as
958
# [[property::value:partOfTheValue::alsoPartOfTheValue]] where in case the strict
959
# mode is disabled multiple properties can be assigned using a
960
# [[property1::property2::value]] notation but may cause value strings to be
961
# interpret unanticipated in case of additional colons.
962
#
963
# @since 2.3
964
# @default true
965
##
966
$GLOBALS['smwgEnabledInTextAnnotationParserStrictMode'] = true;
967
968
##
969
# Features or restrictions for specific DataValue types
970
#
971
# - SMW_DV_NONE
972
#
973
# - SMW_DV_PROV_REDI (PropertyValue) If a property is redirected to a different
974
# target (Foo -> Bar) then follow it by default in order to allow query results
975
# to be displayed equivalent for both queries without having to adjust
976
# (or change) a query. This flag is mainly provided to restore backwards
977
# compatibility where behaviour is not expected to be altered, nevertheless it is
978
# recommended that the setting is enabled to improve user friendliness in terms
979
# of query execution.
980
#
981
# - SMW_DV_MLTV_LCODE (MonolingualTextValue) is to require a language code in order
982
# for a DV to be completed otherwise a MLTV can operate without a language code
983
#
984
# - SMW_DV_PVAP (Allows pattern) to allow regular expression pattern matching
985
# when `Allows pattern` property is assigned to user-defined property
986
#
987
# - SMW_DV_WPV_DTITLE (WikiPageValue) is to allow requesting a lookup for a display
988
# title and if present will be used as caption for the invoked subject
989
#
990
# - SMW_DV_PROV_DTITLE (PropertyValue) in combination with SMW_DV_WPV_DTITLE; If
991
# enabled it will attempt to resolve a property label by matching it against a
992
# possible assigned property "Display title of" value. For example, property
993
# "Foo" has "Display title of" "hasFoolishFoo" where "hasFoolishFoo" is being
994
# resolved as "Foo" when creating annotations. Currently, this uses an
995
# uncached lookup and therefore is disabled by default to avoid a possible
996
# performance impact (which has not been established or analyzed).
997
#
998
# - SMW_DV_PVUC (Uniqueness constraint) to specify that a property can only
999
# assign a value that is unique in its literal representation (the state of
1000
# uniqueness for a value is established by the fact that it is assigned before
1001
# any other value of the same representation to a property).
1002
#
1003
# - SMW_DV_TIMEV_CM (TimeValue) to indicate the CalendarModel if is not a
1004
# CM_GREGORIAN
1005
#
1006
# - SMW_DV_NUMV_USPACE (Number/QuantityValue) to preserve spaces within
1007
# unit labels
1008
#
1009
# @since 2.4
1010
##
1011
$GLOBALS['smwgDVFeatures'] = SMW_DV_PROV_REDI | SMW_DV_MLTV_LCODE | SMW_DV_PVAP | SMW_DV_WPV_DTITLE | SMW_DV_TIMEV_CM;
1012
1013
##
1014
# Fulltext search support
1015
#
1016
# If enabled, it will store text elements using a separate table in order for the
1017
# DB back-end to use special fulltext index operations.
1018
#
1019
# - Tested with MySQL/MariaDB
1020
# - Tested with SQLite
1021
#
1022
# @since 2.5
1023
##
1024
$GLOBALS['smwgEnabledFulltextSearch'] = false;
1025
1026
##
1027
# Throttle the amount of expected index updates.
1028
#
1029
# It can be of advantage to postpone the update using a deferred job execution to
1030
# decouple changes to the storage back-end and the fulltext index table.
1031
#
1032
# In case `smwgFulltextDeferredUpdate` and `$GLOBALS['smwgEnabledDeferredUpdate']` are
1033
# enabled then the updater will try to open a new process for posting instructions
1034
# to execute the `SearchTableUpdateJob` immediately otherwise `SearchTableUpdateJob`
1035
# will be enqueued and `runJobs.php` is required to be schedule for execution.
1036
#
1037
# If a user wants to avoid the JobQueue for executing updates via `SearchTableUpdateJob`
1038
# then this setting should be disabled.
1039
#
1040
# @since 2.5
1041
# @default true
1042
##
1043
$GLOBALS['smwgFulltextDeferredUpdate'] = true;
1044
1045
##
1046
# Fulltext search table options
1047
#
1048
# This setting directly influences how a ft table is created therefore please
1049
# change the content with caution.
1050
#
1051
# - MySQL version 5.6 or later with only MyISAM and InnoDB storage engines
1052
# to support full-text search (according to sources)
1053
#
1054
# - MariaDB full-text indexes can be used only with MyISAM and Aria tables,
1055
# from MariaDB 10.0.5 with InnoDB tables and from MariaDB 10.0.15
1056
# with Mroonga tables (according to sources)
1057
#
1058
# - SQLite FTS3 has been available since version 3.5, FTS4 were added with
1059
# version 3.7.4, and FTS5 is available with version 3.9.0 (according to
1060
# sources); The setting allows to specify extra arguments after the module
1061
# engine such as array( 'FTS4', 'tokenize=porter' ).
1062
#
1063
# It is possible to extend the option decription (MySQL 5.7+)  with
1064
# 'mysql' => array( 'ENGINE=MyISAM, DEFAULT CHARSET=utf8', 'WITH PARSER ngram' )
1065
#
1066
# @since 2.5
1067
##
1068
$GLOBALS['smwgFulltextSearchTableOptions'] = array(
1069
	'mysql'  => array( 'ENGINE=MyISAM, DEFAULT CHARSET=utf8' ),
1070
	'sqlite' => array( 'FTS4' )
1071
);
1072
1073
##
1074
# List of property keys for which value assignments are being exempted from the
1075
# fulltext indexing process because there are either insignificant or mostly
1076
# represent single terms which are not required to be searched via a FT or a
1077
# proximity.
1078
#
1079
# Listed properties will use the standard LIKE/NLIKE expression when used in
1080
# connection with the ~/!~ operator.
1081
#
1082
# @since 2.5
1083
##
1084
$GLOBALS['smwgFulltextSearchPropertyExemptionList'] = array(
1085
	'_ASKFO', '_ASKST', '_IMPO', '_LCODE', '_UNIT', '_CONV', '_TYPE', '_ERRT'
1086
);
1087
1088
##
1089
# Describes the minimum word/token length to help to decide whether MATCH or LIKE
1090
# operators are to be used for a condition statement.
1091
#
1092
# For MySQL it is expected it corresponds to either innodb_ft_min_token_size or
1093
# ft_min_word_len
1094
#
1095
# @since 2.5
1096
##
1097
$GLOBALS['smwgFulltextSearchMinTokenSize'] = 3;
1098
1099
##
1100
# To detect a possible language candidate from an indexable text element.
1101
#
1102
# TextCatLanguageDetector, a large list of languages does have a detrimental
1103
# influence on the performance when trying to detect a language from a free text.
1104
#
1105
# Stopwords are only applied after language detection has been enabled.
1106
#
1107
# @see https://github.com/wikimedia/wikimedia-textcat
1108
#
1109
# @since 2.5
1110
# @default empty list (language detection is disabled by default)
1111
##
1112
$GLOBALS['smwgFulltextLanguageDetection'] = array(
1113
//	'TextCatLanguageDetector' => array( 'en', 'de', 'fr', 'es', 'ja', 'zh' )
0 ignored issues
show
Unused Code Comprehensibility introduced by
57% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
1114
//	'CdbNGramLanguageDetector' => array( 'en', 'de', 'fr', 'es', 'ja', 'zh' )
1115
);
1116
1117
##
1118
# Using MySQL's "Global Transaction Identifier" will create issues when executing
1119
# queries that rely on temporary tables, according to the documentation "... the
1120
# operations listed here cannot be used ... CREATE TEMPORARY TABLE statements
1121
# inside transactions".
1122
#
1123
# MySQL Global transaction identifier is a unique transaction ID assigned to every
1124
# transaction that happens in MySQL database.
1125
#
1126
# Issue is encountered when @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1
1127
#
1128
# @see https://dev.mysql.com/doc/refman/5.6/en/replication-options-gtids.html
1129
# @see https://support.software.dell.com/kb/184275
1130
#
1131
# @since 2.5
1132
# @default false
1133
##
1134
$GLOBALS['smwgQTemporaryTablesAutoCommitMode'] = false;
1135