Public Member Functions | Data Fields | Protected Member Functions
Controller Class Reference

Base for all application controllers. More...

Inheritance diagram for Controller:
Dispersion

Public Member Functions

 Controller ()
 
 __destruct ()
 
- Public Member Functions inherited from Dispersion
 Dispersion ()
 
 emptyLayout ()
 
 set ($name, $value)
 
 _set ($name, $value)
 
 insertView ($name, $index=-1)
 

Data Fields

 $template
 
 $url
 
- Data Fields inherited from Dispersion
 $model_ob = null
 
 $debug_ob = null
 
 $_variables = array()
 
 $_content = array()
 
 $_content_count = 0
 
 $model
 
 $debug
 

Protected Member Functions

 before ()
 
 getIp ()
 
 isAjax ()
 
 jsonRespond ($response)
 
- Protected Member Functions inherited from Dispersion
 requireConfigFile ($file_name, $required=false)
 

Detailed Description

Base for all application controllers.

Version
1.1
Author
DinuSV

Extends the main Dispersion class, therefore provides access to all autoloaded libraries.

Constructor & Destructor Documentation

__destruct ( )

On destruct load view files

Member Function Documentation

Constructor

before ( )
protected

Hook to extend in controllers.

getIp ( )
protected

Get clients ip

Returns
string
isAjax ( )
protected

Check if the request is an ajax request.

Returns
boolean
jsonRespond (   $response)
protected

Respond to a json request

Parameters
string$response

Field Documentation

$template

Template : Contains the template object

$url

Url : Contains the url object