WebApplication Class Reference

Public Member Functions

 run ()
 getLocale ($localeID=null)
 createController ($route, $owner=null)
 findModule ($moduleID)
 isApplicationInstalled ()
 setApplicationInstalled ($installed)
 isApplicationInMaintenanceMode ()
 getEdition ()
 createUrl ($route, $params=array(), $ampersand= '&')
 setResolveAlwaysAsAbsoluteUrl ()

Static Public Member Functions

static findModuleInApplication ($moduleID)

Data Fields

 $label

Protected Member Functions

 resolveWhatToPassAsParameterForOwner ($owner)
 isOwnerTheController ($owner)

Protected Attributes

 $installed
 $edition
 $maintenanceMode
 $resolveAlwaysAsAbsoluteUrl = false

Detailed Description

Definition at line 37 of file WebApplication.php.


Member Function Documentation

run (  ) 

Override to handle when debug is turned on and the checksum fails on cached models.

Definition at line 71 of file WebApplication.php.

getLocale ( localeID = null  ) 

Returns the locale instance. This overrides the default CApplication->getLocale() function.

Parameters:
string $localeID the locale ID (e.g. en_US). If null, the application language ID will be used.
Returns:
CLocale the locale instance

Definition at line 95 of file WebApplication.php.

createController ( route,
owner = null 
)

Override so that the application looks at the controller class name differently. Instead of having controllers with the same class name across the application, each class name must be different. Each controller class name is expected to include the module class name as the prefix to the controller class name. Creates a controller instance based on a route.

Definition at line 118 of file WebApplication.php.

findModule ( moduleID  ) 

Override to provide proper search of nested modules.

Definition at line 238 of file WebApplication.php.

static findModuleInApplication ( moduleID  )  [static]

Extra method so the findModule can be called statically from outside this class.

Parameters:
string $moduleID

Definition at line 247 of file WebApplication.php.

createUrl ( route,
params = array(),
ampersand = '&' 
)

Override createUrl, so it returns absolute Url, for external request

Parameters:
$route 
array $params
string $ampersand
Returns:
string

Definition at line 304 of file WebApplication.php.

setResolveAlwaysAsAbsoluteUrl (  ) 

Set flag to send absolute URLs always, used in External Controllers

Definition at line 327 of file WebApplication.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Jul 23 07:10:32 2017