Class ApplicationController

Description

Class controlling an application run

This class parses an application definition file and prepares to run the specified application. This class implements a Controller, but all of its functionality can be delegated to others.

An application definition file can provide application-level configuration, template bindings TemplateManager and so-called "run-sections". Each of these run-sections is an instruction what to do when a specified path is requested. Run-sections can also contain per-run-section configuration.

Located in /phpsatk-lib/global/org.eenterphace.sat.app.controller/application.controller.php (line 41)


	
			
Method Summary
ApplicationController __construct (string $app_path)
string getAppName ()
string getAppPath ()
void initialize (string $app_path)
void run ()
Methods
Constructor __construct (line 126)

Creates a new ApplicationController for a specific application

Loads the application definition file (application.xml in appdir), validates it (using sat.application.xsd) and adds the app-local module overlay if present.

  • access: protected
ApplicationController __construct (string $app_path)
  • string $app_path: Path to the application directory
getAppName (line 183)

Gets the Name of the running Application

  • access: public
string getAppName ()
getAppPath (line 192)

Gets the path to the running application

  • access: public
string getAppPath ()
getInstance (line 110)

Gets an instance of the application controller

  • access: public
  • static:
ApplicationController getInstance ()
initialize (line 101)

Initializes the static instance of the Application controller

  • access: public
  • static:
void initialize (string $app_path)
  • string $app_path: Path to the application directory
run (line 211)

Runs the application

This function does the actual parsing of the application definition, selects the correct run-element to use, aggregates per application configuration to global, and calls the method passed through it. Checks whether the user has access to the application/path combination using a AuthorizationResourceApplication object.

Configuration is cached.

void run ()

Documentation generated on Mon, 21 May 2007 10:34:38 +0200 by phpDocumentor 1.3.0RC5