config.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. <?php
  2. /**
  3. * Stub info for $CONFIG global options.
  4. *
  5. * @tip Plugins should never use the $CONFIG array directly.
  6. *
  7. * @package Elgg.Core
  8. * @subpackage Configuration
  9. */
  10. /**
  11. * Paths to scan for autoloading languages.
  12. *
  13. * Languages are automatically loaded for the site or
  14. * user's default language. Plugins can extend or override strings.
  15. * language_paths is an array of paths to scan for PHP files matching
  16. * the default language. The order of paths is determined by the plugin load order,
  17. * with later entries overriding earlier. Language files within these paths are
  18. * named as the two-letter ISO 639-1 country codes for the language they represent.
  19. *
  20. * Language paths are stored as array keys in the format:
  21. * <code>
  22. * $CONFIG->language_paths[str $language_path] = true
  23. * </code>
  24. *
  25. * @link http://en.wikipedia.org/wiki/ISO_639-1
  26. * @see register_language()
  27. * @global array $CONFIG->language_paths
  28. */
  29. $CONFIG->language_paths;
  30. /**
  31. * String translations for the current language.
  32. *
  33. * Elgg uses a key-based system for string internationalization, which
  34. * is accessed with {@link elgg_echo()}.
  35. *
  36. * Translations are stored as an array in the following format:
  37. * <code>
  38. * $CONFIG->translations[str $language_code][str $string_key] = str 'Translated Language String';
  39. * </code>
  40. *
  41. * @see register_translation()
  42. * @see elgg_echo()
  43. * @global array $CONFIG->translations
  44. */
  45. $CONFIG->translations;
  46. /**
  47. * An array of metadata names to be used as tags.
  48. *
  49. * Because tags are simply names of meatdata, This is used
  50. * in search to prevent data exposure by searching on
  51. * arbitrary metadata.
  52. *
  53. * @global array $CONFIG->registered_tag_metadata_names
  54. */
  55. $CONFIG->registered_tag_metadata_names;
  56. /**
  57. * The full path where Elgg is installed.
  58. *
  59. * @global string $CONFIG->path;
  60. */
  61. $CONFIG->path;
  62. /**
  63. * The full path for core views.
  64. *
  65. * @global string $CONFIG->viewpath
  66. */
  67. $CONFIG->viewpath;
  68. /**
  69. * The full path where plugins are stored.
  70. *
  71. * @global string $CONFIG->pluginspath
  72. */
  73. $CONFIG->pluginspath;
  74. /**
  75. * The full URL where Elgg is installed
  76. *
  77. * @global string $CONFIG->wwwroot
  78. */
  79. $CONFIG->wwwroot;
  80. /**
  81. * The full URL where Elgg is installed
  82. *
  83. * @global string $CONFIG->wwwroot
  84. */
  85. $CONFIG->url;
  86. /**
  87. * The name of the site as defined in the config table.
  88. *
  89. * @global string $CONFIG->sitename
  90. */
  91. $CONFIG->sitename;
  92. /**
  93. * The current language for either the site or the user.
  94. *
  95. * @global $CONFIG->language
  96. */
  97. $CONFIG->language;
  98. /**
  99. * Is the site fully installed
  100. *
  101. * @global bool $CONFIG->installed
  102. */
  103. $CONFIG->installed;
  104. /**
  105. * The guid of the current site object.
  106. *
  107. * @global int $CONFIG->site_guid
  108. */
  109. $CONFIG->site_guid;
  110. /**
  111. * Copy of $CONFIG->site_guid
  112. *
  113. * @global int $CONFIG->site_id
  114. */
  115. $CONFIG->site_id;
  116. /**
  117. * The current site object.
  118. *
  119. * @global ElggSite $CONFIG->site
  120. */
  121. $CONFIG->site;
  122. /**
  123. * The full path to the data directory.
  124. *
  125. * @global string $CONFIG->dataroot
  126. */
  127. $CONFIG->dataroot;
  128. /**
  129. * Is simplecache enabled?
  130. *
  131. * @global string $CONFIG->simplecache_enabled
  132. */
  133. $CONFIG->simplecache_enabled;
  134. /**
  135. * Is the system cache enabled
  136. *
  137. * @global string $CONFIG->system_cache_enabled
  138. */
  139. $CONFIG->system_cache_enabled;
  140. /**
  141. * The site description from the current site object.
  142. *
  143. * @global string $CONFIG->sitedescription
  144. */
  145. $CONFIG->sitedescription;
  146. /**
  147. * The site email from the current site object.
  148. *
  149. * @global string $CONFIG->siteemail
  150. */
  151. $CONFIG->siteemail;
  152. /**
  153. * The default "limit" used in site queries.
  154. *
  155. * @global int $CONFIG->default_limit
  156. */
  157. $CONFIG->default_limit;
  158. /**
  159. * The current view type
  160. *
  161. * View types determin the location of view files that are used to draw pages.
  162. * They are set system-wide by the $_REQUEST['view']. If a view type is manually
  163. * set in settings.php or through a function hooking to the {@elgg_hook
  164. *
  165. * @warning This is the current view type used to determine where to load views.
  166. * Don't confuse this with the current view.
  167. *
  168. * @global string $CONFIG->view
  169. */
  170. $CONFIG->view;
  171. /**
  172. * Default access as defined in the config table for the current site.
  173. *
  174. * @global string $CONFIG->default_access
  175. */
  176. $CONFIG->default_access;
  177. /**
  178. * Is registration enabled?
  179. *
  180. * @global bool $CONFIG->allow_registration
  181. */
  182. $CONFIG->allow_registration;
  183. /**
  184. * Is current site in walled garden mode?
  185. *
  186. * @global bool $CONFIG->walled_garden
  187. */
  188. $CONFIG->walled_garden;
  189. /**
  190. * Are users allow to enter their own default access levels
  191. *
  192. * @global bool $CONFIG->allow_user_default_access
  193. */
  194. $CONFIG->allow_user_default_access;
  195. /**
  196. * A list of feature URLs for the main site menu.
  197. *
  198. * These links are added via the admin interface.
  199. *
  200. * @global string $CONFIG->menu_items_featured_urls
  201. */
  202. $CONFIG->menu_items_featured_urls;
  203. /**
  204. * The custom menu items entered in the administration.
  205. *
  206. * @global string $CONFIG->menu_items_custom_items
  207. */
  208. $CONFIG->menu_items_custom_items;
  209. /**
  210. * Holds information about views.
  211. *
  212. * @global object $CONFIG->views
  213. */
  214. $CONFIG->views;
  215. /**
  216. * A list of views to cache in the simple cache.
  217. *
  218. * @global object $CONFIG->views->simplecache
  219. */
  220. $CONFIG->views->simplecache;
  221. /**
  222. * A list of views and the top level views directory to search for the view in.
  223. *
  224. * @note Views are stored as the key and the top level view location is stored as the value.
  225. * The current viewtype {@link $CONFIG->view} is used to determin which directory under the entry
  226. * in $CONFIG->views->location to search. View names are automatically appened a '.php' extension.
  227. *
  228. * @global object $CONFIG->views->locations
  229. */
  230. $CONFIG->views->locations;
  231. /**
  232. * A list of valid view types as discovered.
  233. *
  234. * @global array $CONFIG->view_types
  235. */
  236. $CONFIG->view_types;
  237. /**
  238. * A list of plugins and their load order
  239. *
  240. * @global string $CONFIG->pluginlistcache
  241. */
  242. $CONFIG->pluginlistcache;
  243. /**
  244. * A list of registered entities and subtypes. Used in search.
  245. *
  246. * @global array $CONFIG->registered_entities
  247. */
  248. $CONFIG->registered_entities;
  249. /**
  250. * A list of entity types and subtypes that have metadata whose access permission
  251. * can be changed independently of the main object. {@link register_metadata_as_indepenent()}
  252. *
  253. * @global string $CONFIG->independents
  254. */
  255. $CONFIG->independents;
  256. /**
  257. * Holds items for all submenus.
  258. *
  259. * @global string $CONFIG->submenu_items
  260. */
  261. $CONFIG->submenu_items;
  262. /**
  263. * Holds the service handlers as registered by {@register_service_handler()}
  264. *
  265. * @global array $CONFIG->servicehandler
  266. */
  267. $CONFIG->servicehandler;
  268. /**
  269. * A list of stop works for search. Not currently used.
  270. *
  271. * @global array $CONFIG->wordblacklist
  272. * @todo currently unused.
  273. */
  274. $CONFIG->wordblacklist;
  275. /**
  276. * A list of menu contexts for menus registered with {@link add_menu()}. Not currently used.
  277. *
  278. * @global array $CONFIG->menucontexts
  279. */
  280. $CONFIG->menucontexts;
  281. /**
  282. * A list of registers and their children added via {@add_to_register()}. Used only for menus.
  283. *
  284. * @global string $CONFIG->registers
  285. */
  286. $CONFIG->registers;
  287. /**
  288. * A list of objects that can emit notifications. {@link register_notification_object()}
  289. *
  290. * @global array $CONFIG->register_objects
  291. */
  292. $CONFIG->register_objects;
  293. /**
  294. * Holds available group tools options. Added with {@link add_group_tool_option()}
  295. *
  296. * @global array $CONFIG->group_tool_options
  297. */
  298. $CONFIG->group_tool_options;
  299. /**
  300. * The last cache time for the current viewtype. Used in the generation of CSS and JS links.
  301. *
  302. * @global string $CONFIG->lastcache
  303. */
  304. $CONFIG->lastcache;
  305. /**
  306. * This is an optional script used to override Elgg's default handling of
  307. * uncaught exceptions.
  308. *
  309. * This should be an absolute file path to a php script that will be called
  310. * any time an uncaught exception is thrown.
  311. *
  312. * The script will have access to the following variables as part of the scope
  313. * global $CONFIG
  314. * $exception - the unhandled exception
  315. *
  316. * @warning - the database may not be available
  317. *
  318. * @global string $CONFIG->exception_include
  319. */
  320. $CONFIG->exception_include = '';