templateThis class contains methods that prints out to the template system, the template system is what the user see when using your application.
This means everything that is supposed to echo to the users browser is done with this class. This class resides in the global variable $template and these methods can be called by $template->call_any_method().
Located in /includes/template.class.php (line 23)
string
$active_language
(line 50)
Contains active language identifier being used.
string
$cron_output
(line 43)
When this variable is assigned, the cronjob will output to his template system if it is enabled in the config.
string
$debug
= false (line 102)
Assign this variable if you would like to debug your script, it will show on critical errors as well.
It will parse anything that is assigned to it.
array
$global
(line 116)
Use this to have global available variables throughout scripts. For instance in hooks.
array
$hook_array
(line 109)
Contains array with existing registered hook points for active script.
string
$hook_request
(line 133)
The hook position id (head, foot, aaa, etc...) that is being required in main script.
This helps the developer split its code to only a specific hook area.
Example:
string
$modify_output_active_info
= false (line 66)
Use this variable to modify the output templates active info.
string
$modify_output_breadcrumbs
= false (line 73)
Use this variable to modify the output templates breadcrumbs.
string
$modify_output_footer
= false (line 94)
Use this variable to modify the output templates footer.
string
$modify_output_menu
= false (line 80)
Use this variable to modify the output templates menu.
string
$modify_output_script
= false (line 87)
Use this variable to modify the output templates script.
string
$modify_output_title
= false (line 59)
Use this variable to modify the output templates title.
string
$stop_script
(line 36)
This variable is used to activate a stop script command, it will be used to end a script immediately while still finishing compiling the template.
Usage Example :
Does the alternating colors of rows when there is more then 1 result. Intended to be used by the developer.
This returns/prints a busy of the script being executed. Intended to be used by the developer.
This returns/prints a critical message regarding the active script. Intended to be used by the developer.
Error handler function and logging system, it only catches errors in custom scripts and will most likely not catch errors from PHPDevShell.
It does not catch fatal errors as PHP always handles this. Method takes most PHP errors on to itself and logs it to the database. This is done for easier debugging.
This function support output_script by looking deeper into menu structure to find last linked menu item that is not linked to another.
This returns/prints a heading discription of the script being executed. Intended to be used by the developer.
The exact location where hook should be applied.
Convert all HTML entities to their applicable characters.
This prints an icon to the script being executed (header area). Intended to be used by the developer.
This returns/prints info of the script being executed. Intended to be used by the developer.
This creates an the [i] when over with mouse a popup with a message appears, this can be placed anywhere. Intended to be used by the developer.
Loads the username & password html template form.
This returns/prints a message of the script being executed. Intended to be used by the developer.
This returns/prints a note of the script being executed. Intended to be used by the developer.
This returns/prints a notice of the script being executed. Intended to be used by the developer.
This returns/prints an ok message regarding the active script. Intended to be used by the developer.
Print out any message given to it (instead of return). Intended to be used by the developer.
Returns "users version number" and some other detail to the template system. Intended to be used by the engine.
Returns "breadcrumbs" to the template system. Intended to be used by the engine.
Returns the last footer string to the template system. Intended to be used by the engine.
Outputs current language identifier being used.
Gets the desired logo and displays it. This method will try its best to deliver a logo, whatever the case.
Returns "menus" to the template system. Intended to be used by the engine.
Returns "output script" to the template system. Intended to be used by the engine.
Prints the number of queries used to the gui.
Creates a random color by group. Intended to be used by the developer.
Output "no results found" if no results are found in a paging script.
This returns/prints a short heading on active script. Intended to be used by the developer.
Acquire script identification image or logo.
Outputs data to the cron template if cron debug is enabled in the configuration.
This returns/prints a warning message regarding the active script. Intended to be used by the developer.
Documentation generated on Thu, 23 Oct 2008 13:58:34 +0200 by phpDocumentor 1.4.0