Index
The main module
This module manages the generation of the "page" (the most dynamic part of a TIP site). This is done by using the "content" property as a text buffer.
When the tagPage() is called, usually throught a tag in the main template, the TIP_Application module will call the callbacks stored in the queue in sequential order. The page is the output of these callbacks.
After a TIP_Application instantiation, the global variable $GLOBALS[TIP_MAIN] will contain a reference to this TIP_Application instantiated object. Your index.php, if the TIP system is properly configured, will usually be as the following one:
<?php
require_once './logic/TIP.php';
TIP_Type::getInstance('main');
$GLOBALS[TIP_MAIN]->go();
?>
Page begin string (incipit)
Page end string (explicit)
Namespace
Flag to enable global JSON infrastructure for unobtrusive javascript
Page title
Page description
Robots metatag
Page keywords
Additional code to add at the end of the <head> section
The default data engine to use: required
The data root path
The icon root path
The shared modules interface
The associative array of shared modules, organized by "job". The job is the key, while the instance id is the value.
A prefix to prepend to all data ids
The uri to redirect the browse on fatal errors
The template to run to generate the <head>
The template to run to generate the <body>
The template to run to generate the default page content
The file to run to notify errors
The file to run to notify warnings
The file to run to notify informations
The page content
Check the options
Overridable static method that checks $options for missing or invalid values and eventually corrects its content.
Constructor
Initializes a TIP_Application instance.
Get a global property
Returns a reference to a property in the current application instance.
Get a global item
Get a shared module
Some special modules are shared between the application. A common example is the logger or the notify modules. To provide maximum flexibility, this method will get a reference to these kind of modules accessing them by $job, not by id. $job is an arbitrary string identifying the type of work the module must do: maybe in the future, when TIP will be more stable, the jobs will be standardized with a bounch of constant values.
Get a shared template
Shared templates reside in the application directory and do not depend on any particular module.
Generic message notification
Outputs a generic notification message running the specified template program with the current template engine. The output will be inserted at the beginning of the page content.
The "main" function
The starting point of the TIP system. This must be called somewhere from your index.php.
Output the page content
Output some debug information
Echoes some output and profiler information, useful in the developement process. This works only if the current user has some privilege on the application module.
TIP_Applicationwas last modified by TiP on Mon 25 May 2009 06:22:25 PM CEST