Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
[lhc/web/wiklou.git] / includes / Defines.php
1 <?php
2 /**
3 * A few constants that might be needed during LocalSettings.php
4 */
5
6 /**
7 * Version constants for the benefit of extensions
8 */
9 define( 'MW_SPECIALPAGE_VERSION', 2 );
10
11 /**#@+
12 * Database related constants
13 */
14 define( 'DBO_DEBUG', 1 );
15 define( 'DBO_NOBUFFER', 2 );
16 define( 'DBO_IGNORE', 4 );
17 define( 'DBO_TRX', 8 );
18 define( 'DBO_DEFAULT', 16 );
19 define( 'DBO_PERSISTENT', 32 );
20 /**#@-*/
21
22 # Valid database indexes
23 # Operation-based indexes
24 define( 'DB_SLAVE', -1 ); # Read from the slave (or only server)
25 define( 'DB_MASTER', -2 ); # Write to master (or only server)
26 define( 'DB_LAST', -3 ); # Whatever database was used last
27
28 # Obsolete aliases
29 define( 'DB_READ', -1 );
30 define( 'DB_WRITE', -2 );
31
32
33 /**#@+
34 * Virtual namespaces; don't appear in the page database
35 */
36 define('NS_MEDIA', -2);
37 define('NS_SPECIAL', -1);
38 /**#@-*/
39
40 /**#@+
41 * Real namespaces
42 *
43 * Number 100 and beyond are reserved for custom namespaces;
44 * DO NOT assign standard namespaces at 100 or beyond.
45 * DO NOT Change integer values as they are most probably hardcoded everywhere
46 * see bug #696 which talked about that.
47 */
48 define('NS_MAIN', 0);
49 define('NS_TALK', 1);
50 define('NS_USER', 2);
51 define('NS_USER_TALK', 3);
52 define('NS_PROJECT', 4);
53 define('NS_PROJECT_TALK', 5);
54 define('NS_IMAGE', 6);
55 define('NS_IMAGE_TALK', 7);
56 define('NS_MEDIAWIKI', 8);
57 define('NS_MEDIAWIKI_TALK', 9);
58 define('NS_TEMPLATE', 10);
59 define('NS_TEMPLATE_TALK', 11);
60 define('NS_HELP', 12);
61 define('NS_HELP_TALK', 13);
62 define('NS_CATEGORY', 14);
63 define('NS_CATEGORY_TALK', 15);
64 /**#@-*/
65
66 /**
67 * Available feeds objects
68 * Should probably only be defined when a page is syndicated ie when
69 * $wgOut->isSyndicated() is true
70 */
71 $wgFeedClasses = array(
72 'rss' => 'RSSFeed',
73 'atom' => 'AtomFeed',
74 );
75
76 /**#@+
77 * Maths constants
78 */
79 define( 'MW_MATH_PNG', 0 );
80 define( 'MW_MATH_SIMPLE', 1 );
81 define( 'MW_MATH_HTML', 2 );
82 define( 'MW_MATH_SOURCE', 3 );
83 define( 'MW_MATH_MODERN', 4 );
84 define( 'MW_MATH_MATHML', 5 );
85 /**#@-*/
86
87 /**
88 * User rights list
89 * @deprecated
90 */
91 $wgAvailableRights = array(
92 'block',
93 'bot',
94 'createaccount',
95 'delete',
96 'edit',
97 'editinterface',
98 'import',
99 'importupload',
100 'move',
101 'patrol',
102 'protect',
103 'read',
104 'rollback',
105 'siteadmin',
106 'unwatchedpages',
107 'upload',
108 'userrights',
109 );
110
111 /**#@+
112 * Cache type
113 */
114 define( 'CACHE_ANYTHING', -1 ); // Use anything, as long as it works
115 define( 'CACHE_NONE', 0 ); // Do not cache
116 define( 'CACHE_DB', 1 ); // Store cache objects in the DB
117 define( 'CACHE_MEMCACHED', 2 ); // MemCached, must specify servers in $wgMemCacheServers
118 define( 'CACHE_ACCEL', 3 ); // eAccelerator or Turck, whichever is available
119 define( 'CACHE_DBA', 4 ); // Use PHP's DBA extension to store in a DBM-style database
120 /**#@-*/
121
122
123
124 /**#@+
125 * Media types.
126 * This defines constants for the value returned by Image::getMediaType()
127 */
128 define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' ); // unknown format
129 define( 'MEDIATYPE_BITMAP', 'BITMAP' ); // some bitmap image or image source (like psd, etc). Can't scale up.
130 define( 'MEDIATYPE_DRAWING', 'DRAWING' ); // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.
131 define( 'MEDIATYPE_AUDIO', 'AUDIO' ); // simple audio file (ogg, mp3, wav, midi, whatever)
132 define( 'MEDIATYPE_VIDEO', 'VIDEO' ); // simple video file (ogg, mpg, etc; no not include formats here that may contain executable sections or scripts!)
133 define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' ); // Scriptable Multimedia (flash, advanced video container formats, etc)
134 define( 'MEDIATYPE_OFFICE', 'OFFICE' ); // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc)
135 define( 'MEDIATYPE_TEXT', 'TEXT' ); // Plain text (possibly containing program code or scripts)
136 define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' ); // binary executable
137 define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' ); // archive file (zip, tar, etc)
138 /**#@-*/
139
140 /**#@+
141 * Antivirus result codes, for use in $wgAntivirusSetup.
142 */
143 define( 'AV_NO_VIRUS', 0 ); #scan ok, no virus found
144 define( 'AV_VIRUS_FOUND', 1 ); #virus found!
145 define( 'AV_SCAN_ABORTED', -1 ); #scan aborted, the file is probably imune
146 define( 'AV_SCAN_FAILED', false ); #scan failed (scanner not found or error in scanner)
147 /**#@-*/
148
149 /**#@+
150 * Anti-lock flags
151 * See DefaultSettings.php for a description
152 */
153 define( 'ALF_PRELOAD_LINKS', 1 );
154 define( 'ALF_PRELOAD_EXISTENCE', 2 );
155 define( 'ALF_NO_LINK_LOCK', 4 );
156 define( 'ALF_NO_BLOCK_LOCK', 8 );
157 /**#@-*/
158
159 /**#@+
160 * Date format selectors; used in user preference storage and by
161 * Language::date() and co.
162 */
163 /*define( 'MW_DATE_DEFAULT', '0' );
164 define( 'MW_DATE_MDY', '1' );
165 define( 'MW_DATE_DMY', '2' );
166 define( 'MW_DATE_YMD', '3' );
167 define( 'MW_DATE_ISO', 'ISO 8601' );*/
168 define( 'MW_DATE_DEFAULT', 'default' );
169 define( 'MW_DATE_MDY', 'mdy' );
170 define( 'MW_DATE_DMY', 'dmy' );
171 define( 'MW_DATE_YMD', 'ymd' );
172 define( 'MW_DATE_ISO', 'ISO 8601' );
173 /**#@-*/
174
175 /**#@+
176 * RecentChange type identifiers
177 * This may be obsolete; log items are now used for moves?
178 */
179 define( 'RC_EDIT', 0);
180 define( 'RC_NEW', 1);
181 define( 'RC_MOVE', 2);
182 define( 'RC_LOG', 3);
183 define( 'RC_MOVE_OVER_REDIRECT', 4);
184 /**#@-*/
185
186 /**#@+
187 * Article edit flags
188 */
189 define( 'EDIT_NEW', 1 );
190 define( 'EDIT_UPDATE', 2 );
191 define( 'EDIT_MINOR', 4 );
192 define( 'EDIT_SUPPRESS_RC', 8 );
193 define( 'EDIT_FORCE_BOT', 16 );
194 define( 'EDIT_DEFER_UPDATES', 32 );
195 define( 'EDIT_AUTOSUMMARY', 64 );
196 /**#@-*/
197
198 /**
199 * Flags for Database::makeList()
200 * These are also available as Database class constants
201 */
202 define( 'LIST_COMMA', 0 );
203 define( 'LIST_AND', 1 );
204 define( 'LIST_SET', 2 );
205 define( 'LIST_NAMES', 3);
206 define( 'LIST_OR', 4);
207
208
209 ?>