TApplicationComponent class
TApplicationComponent is the base class for all components that are application-related, such as controls, modules, services, etc.
TApplicationComponent mainly defines a few properties that are shortcuts to some commonly used methods. The Application property gives the application instance that this component belongs to; Service gives the current running service; Request, Response and Session return the request and response modules, respectively; And User gives the current user instance.
Besides, TApplicationComponent defines two shortcut methods for publishing private files: publishAsset and publishFilePath.
Located in /TApplicationComponent.php (line 35)
TComponent | --TApplicationComponent
| Class | Description |
|---|---|
| TModule | TModule class. |
| TService | TService class. |
| TLogRoute | TLogRoute class. |
| TJsonResponse | TJsonResponse Class |
| TSoapServer | TSoapServer class. |
| THttpRequest | THttpRequest class |
| THttpResponseAdapter | THttpResponseAdapter class. |
| THttpSession | THttpSession class |
| TCallbackClientScript | TCallbackClientScript class. |
| TClientScriptManager | TClientScriptManager class. |
| TControl | TControl class |
| TControlAdapter | TControlAdapter class |
| THtmlWriter | THtmlWriter class |
| TTemplate | TTemplate implements PRADO template parsing logic. |
| TTheme | TTheme class |
| TDataGridColumn | TDataGridColumn class |
Publishes a private asset and gets its URL.
This method will publish a private asset (file or directory) and gets the URL to the asset. Note, if the asset refers to a directory, all contents under that directory will be published. Also note, it is recommended that you supply a class name as the second parameter to the method (e.g. publishAsset($assetPath,__CLASS__) ). By doing so, you avoid the issue that child classes may not work properly because the asset path will be relative to the directory containing the child class file.
Publishes a file or directory and returns its URL.
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Mon, 21 Apr 2008 11:30:29 -0400 by phpDocumentor 1.3.0RC4