root/trunk/midcom/midcom.core/globals.php

Revision 14393, 1.8 kB (checked in by flack, 8 months ago)

--

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * @package midcom
4  * @author The Midgard Project, http://www.midgard-project.org
5  * @copyright The Midgard Project, http://www.midgard-project.org
6  * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
7  */
8
9 /**
10  * The last non-critical MidCOM error message. This is slowly superseded
11  * by having all errors call generate_error.
12  *
13  * @global string $GLOBALS['midcom_errstr']
14  */
15 $GLOBALS['midcom_errstr'] = '';
16
17 /**
18  * The main MidCOM application class.
19  *
20  * @global midcom_application $GLOBALS['midcom']
21  */
22 $GLOBALS['midcom'] = null;
23
24 /**
25  * The MidCOM Logging interface. Note, that even though this variable
26  * is called "debugger", it is actually a full-blown logging solution
27  * which should not be turned off any longer. Instead, step up the
28  * error reporting level to something above MIDCOM_LOG_DEBUG.
29  *
30  * @global midcom_debug $GLOBALS['midcom_debugger']
31  */
32 $GLOBALS['midcom_debugger'] = null;
33
34 /**
35  * This is a component specific global data storage area, which should
36  * be used for stuff like default configurations etc. thus avoiding the
37  * pollution of the global namespace. Each component has its own array
38  * in the global one, allowing storage of arbitrary data indexed by arbitrary
39  * keys in there. The component-specific arrays are indexed by their
40  * name.
41  *
42  * Note, that this facility is quite a different thing to the component
43  * context from midcom_application, even if it has many similar applications.
44  * The component context is only available and valid for components, which
45  * are actually handling a request. This data storage area is static to the
46  * complete component and shared over all subrequests and therefore suitable
47  * to hold default configurations, -schemas and the like.
48  *
49  * @global Array $GLOBALS['midcom_component_data']
50  */
51 $GLOBALS['midcom_component_data'] = Array();
52
53 ?>
Note: See TracBrowser for help on using the browser.