Public Member Functions | Data Fields
Loader Class Reference

Manages the config file, loads required classes and parses the url. More...

Public Member Functions

 Loader ($locations)
 
 callUrl ()
 

Data Fields

 $url = ''
 
 $config = null
 
 $locations = array()
 
 $debug
 
 $error
 
 $autoload
 
 $required_version = '5.2.4'
 

Detailed Description

Manages the config file, loads required classes and parses the url.

Version
1.1
Author
DinuSV

This is the main Dispersion Loader, where all modules and components are loaded.

Member Function Documentation

Loader (   $locations)

Constructor

Parameters
array$locations: locations to autoload the classes from
callUrl ( )

Parses the url and calls the given method

Field Documentation

$url = ''

string : Url of the current page

$config = null

Config : Config object

$locations = array()

array : Locations for the frameworks files

$debug

Debug : Object used for displaying errors, exceptions and debugging information

$error

Error : Object for handling errors

$autoload

Autoload : Object for handling class autoload

$required_version = '5.2.4'

string : Minimum required version of php