|
Class TShellApplication
TShellApplication class.
TShellApplication is the base class for developing command-line PRADO tools
that share the same configurations as their Web application counterparts.
A typical usage of TShellApplication in a command-line PHP script is as
follows:
require_once('path/to/prado.php');
$application=new TShellApplication('path/to/application.xml');
$application->run();
Since the application instance has access to all configurations, including
path aliases, modules and parameters, the command-line script has nearly the
same accessibility to resources as the PRADO Web applications.
-
TComponent
-
TApplication
-
TShellApplication
Methods summary
public
|
#
run( )
Runs the application. This method overrides the parent implementation by
initializing application with configurations specified when it is created.
Runs the application. This method overrides the parent implementation by
initializing application with configurations specified when it is created.
Overrides
|
Methods inherited from TApplication
__construct(),
applyConfiguration(),
clearGlobalState(),
completeRequest(),
flushOutput(),
getApplicationConfigurationClass(),
getApplicationStatePersister(),
getAssetManager(),
getAuthorizationRules(),
getBasePath(),
getCache(),
getConfigurationFile(),
getConfigurationFileExt(),
getConfigurationFileName(),
getConfigurationType(),
getErrorHandler(),
getGlobalState(),
getGlobalization(),
getID(),
getMode(),
getModule(),
getModules(),
getPageServiceID(),
getParameters(),
getRequest(),
getRequestCompleted(),
getResponse(),
getRuntimePath(),
getSecurityManager(),
getService(),
getSession(),
getUniqueID(),
getUser(),
initApplication(),
internalLoadModule(),
loadGlobals(),
onAuthentication(),
onAuthenticationComplete(),
onAuthorization(),
onAuthorizationComplete(),
onBeginRequest(),
onEndRequest(),
onError(),
onLoadState(),
onLoadStateComplete(),
onPreFlushOutput(),
onPreRunService(),
onSaveState(),
onSaveStateComplete(),
resolvePaths(),
runService(),
saveGlobals(),
setApplicationStatePersister(),
setAssetManager(),
setBasePath(),
setCache(),
setConfigurationFile(),
setConfigurationType(),
setErrorHandler(),
setGlobalState(),
setGlobalization(),
setID(),
setMode(),
setModule(),
setPageServiceID(),
setRequest(),
setResponse(),
setRuntimePath(),
setSecurityManager(),
setService(),
setSession(),
setUser(),
startService()
|
Methods inherited from TComponent
__call(),
__destruct(),
__get(),
__isset(),
__set(),
__sleep(),
__unset(),
__wakeup(),
addParsedObject(),
asa(),
attachBehavior(),
attachBehaviors(),
attachClassBehavior(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
clearBehaviors(),
createdOnTemplate(),
detachBehavior(),
detachBehaviors(),
detachClassBehavior(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
evaluateStatements(),
fxAttachClassBehavior(),
fxDetachClassBehavior(),
getAutoGlobalListen(),
getBehaviorsEnabled(),
getClassHierarchy(),
getEventHandlers(),
getListeningToGlobalEvents(),
getSubProperty(),
hasEvent(),
hasEventHandler(),
hasProperty(),
isa(),
listen(),
raiseEvent(),
setSubProperty(),
unlisten()
|
Constants inherited from TApplication
CONFIGCACHE_FILE,
CONFIG_FILE_EXT_PHP,
CONFIG_FILE_EXT_XML,
CONFIG_FILE_PHP,
CONFIG_FILE_XML,
CONFIG_TYPE_PHP,
CONFIG_TYPE_XML,
GLOBAL_FILE,
PAGE_SERVICE_ID,
RUNTIME_PATH,
STATE_DEBUG,
STATE_NORMAL,
STATE_OFF,
STATE_PERFORMANCE
|
|