TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
front Class Reference

Titan Controller Class. More...

Inheritance diagram for front:
module rest

Public Member Functions

 __construct ($path_info=null)
 
 route ($path,\tl\core\loadable $handler=null)
 
 default_route ($handler)
 
 execute ($path)
 

Protected Member Functions

 module_exists ($module)
 
 module_routed ($module)
 
 module_loaded ($module)
 
 register_modules ()
 
 register_module ($module)
 
 module_info ($module)
 
 modules_info ()
 

Detailed Description

Titan Controller Class.

Class: \tl\core\controller\front

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Constructor & Destructor Documentation

__construct (   $path_info = null)

Constructor

Parameters
string$path_info(optional) Fake PATH_INFO (default) null = auto-detect PATH_INFO

Member Function Documentation

route (   $path,
\tl\core\loadable  $handler = null 
)

Add/edit/delete a controller route

Parameters
string$pathThe path of the route to manage
mixed$handler(optional) The \tl\core\loadable handler for the route (default) null = delete the route
default_route (   $handler)

Add/edit/delete a controller route

Parameters
mixed$handlerThe handler \tl\core\loadable for the default route (default) null = delete the route
execute (   $path)

Find the correct route for $path and execute its handler

Parameters
string$pathThe URI path
module_exists (   $module)
protected

Does the module exist?

Parameters
string$moduleThe module name
Returns
boolean
module_routed (   $module)
protected

Does the module have a route setup?

Parameters
string$moduleThe module name
Returns
boolean
module_loaded (   $module)
protected

Is the module loaded?

Parameters
string$moduleThe module name
Returns
boolean
register_modules ( )
protected

Setup module handlers for all installed modules in a modular system

register_module (   $module)
protected

Setup a module handler in a modular system

Parameters
string$moduleThe module name - NOTE: Must be lowercase and must not contain spaces
module_info (   $module)
protected

Read and return a module infomation

Parameters
string$moduleThe module name - NOTE: Must be lowercase and must not contain spaces
modules_info ( )
protected

Read and set all modules infomation


The documentation for this class was generated from the following file: