PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

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();
// perform command-line tasks here

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
Extended by TApplication
Extended by TShellApplication
Package: System
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.1.0
Located at TShellApplication.php
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

TApplication::run()
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
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO