[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/ -> TApplicationComponent.php (sommaire)

TApplicationComponent class

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TApplicationComponent.php 1397 2006-09-07 07:55:53Z wei $
Poids: 111 lignes (3 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TApplicationComponent:: (8 méthodes):
  getApplication()
  getService()
  getRequest()
  getResponse()
  getSession()
  getUser()
  publishAsset()
  publishFilePath()


Classe: TApplicationComponent  - X-Ref

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 {@link getApplication Application}
property gives the application instance that this component belongs to;
{@link getService Service} gives the current running service;
{@link getRequest Request}, {@link getResponse Response} and {@link getSession Session}
return the request and response modules, respectively;
And {@link getUser User} gives the current user instance.

Besides, TApplicationComponent defines two shortcut methods for
publishing private files: {@link publishAsset} and {@link publishFilePath}.

getApplication()   X-Ref

return: TApplication current application instance

getService()   X-Ref

return: IService the current service

getRequest()   X-Ref

return: THttpRequest the current user request

getResponse()   X-Ref

return: THttpResponse the response

getSession()   X-Ref

return: THttpSession user session

getUser()   X-Ref

return: IUser information about the current user

publishAsset($assetPath)   X-Ref
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.

param: string path of the asset that is relative to the directory containing the control class file.
return: string URL to the asset path.

publishFilePath($fullPath)   X-Ref
Publishes a file or directory and returns its URL.

param: string absolute path of the file or directory to be published
return: string URL to the published file or directory



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7