Class Application

Description

The main application class

On instantiation, this class loads all ini files, creates all objects and then executes actions.

Located in /phpfw.php (line 54)


	
			
Variable Summary
Method Summary
Application Application (string $config_file)
void check_configuration_section (string $section, array $sub_sections)
void display_error (string $error_msg)
Variables
array $config (line 63)
  • var: Configuration file array
string $config_file (line 58)
  • var: Configuration file name
object Controller $controller (line 78)
  • var: The Controller object
object Database $database (line 73)
  • var: The Database object
object Error $error (line 68)
  • var: The Error object
array $scripts (line 83)
  • var: Array of script files to use in this application
array $stylesheets (line 88)
  • var: Array of CSS files to use in this application
Methods
Constructor Application (line 99)

Constructor for the Application class

  • Loads all ini files
  • Creates all objects : Error, Database, Controller
  • Executes actions

Application Application (string $config_file)
  • string $config_file: Path to the config file for the application
check_configuration_file (line 177)

Verify that the configuration file has all required elements declared.

void check_configuration_file ()
check_configuration_section (line 207)

Helper function for check_configuration_file() to check a configuration section.

void check_configuration_section (string $section, array $sub_sections)
  • string $section: Section to check
  • array $sub_sections: Array of sub-sections that need to be defined
display_error (line 165)

Display an error message - this is used by the Application before the Error class is loaded

void display_error (string $error_msg)
  • string $error_msg: The message to display
load_include_files (line 217)

Load all include files - scripts and stylesheets

void load_include_files ()

Documentation generated on Sat, 23 Jun 2007 21:28:25 -0500 by phpDocumentor 1.3.2