Method |
Description |
|
getComponent ( string $id, boolean $createIfNull = true ) : mixed |
Override getComponent() so we can attach any pending events if the component is getting initialized as well as
do some special logic around creating the Craft::app()->db application component. |
|
getLanguage ( ) : string |
Returns the target application language. |
|
getTimeZone ( ) : string |
Returns the system time zone. Note that this method cannot be in {@link AppBehavior}, because Yii will check
{@link \CApplication::getTimeZone()} instead. |
|
handleError ( integer $code, string $message, string $file, integer $line ) |
|
|
init ( ) |
Initializes the console app by creating the command runner. |
|
isConsole ( ) : boolean |
Returns whether we are executing in the context on a console app. |
|
on ( string $event, mixed $handler ) |
Attaches an event handler, or remembers it for later if the component has not been initialized yet. |
|
setComponents ( $components, boolean $merge = true ) |
Sets the application components. |
|
setLanguage ( string $language ) |
Sets the target application language. |
|