JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • AbstractApplication
  • AbstractCliApplication
  • AbstractDaemonApplication
  • AbstractWebApplication

Class AbstractApplication

Joomla Framework Base Application Class

Joomla\Application\AbstractApplication implements Psr\Log\LoggerAwareInterface

Direct known subclasses

JApplicationBase, Joomla\Application\AbstractCliApplication, Joomla\Application\AbstractWebApplication

Indirect known subclasses

JApplication, JApplicationAdministrator, JWeb, JApplicationCli, JApplicationCms, JApplicationDaemon, JApplicationSite, JApplicationWeb, JCli, JDaemon, Joomla\Application\AbstractDaemonApplication

Abstract
Namespace: Joomla\Application
Since: 1.0
Located at vendor/joomla/application/src/AbstractApplication.php

Methods summary

public
# __construct( Joomla\Input\Input $input = null, Joomla\Registry\Registry $config = null )

Class constructor.

Class constructor.

Parameters

$input
Joomla\Input\Input - $input An optional argument to provide dependency injection for the application's input object. If the argument is an Input object that object will become the application's input object, otherwise a default input object is created.
$config
Joomla\Registry\Registry - $config An optional argument to provide dependency injection for the application's config object. If the argument is a Registry object that object will become the application's config object, otherwise a default config object is created.

Since

1.0
public
# close( integer $code = 0 )

Method to close the application.

Method to close the application.

Parameters

$code
integer - $code The exit code (optional; default is 0).

Since

1.0

CodeCoverageIgnore

abstract protected
# doExecute( )

Method to run the application routines. Most likely you will want to instantiate a controller and execute it, or perform some sort of task directly.

Method to run the application routines. Most likely you will want to instantiate a controller and execute it, or perform some sort of task directly.

Since

1.0
public
# execute( )

Execute the application.

Execute the application.

Since

1.0
public mixed
# get( string $key, mixed $default = null )

Returns a property of the object or the default value if the property is not set.

Returns a property of the object or the default value if the property is not set.

Parameters

$key
string - $key The name of the property.
$default
mixed - $default The default value (optional) if none is set.

Returns

mixed - The value of the configuration.

Since

1.0
public Psr\Log\LoggerInterface
# getLogger( )

Get the logger.

Get the logger.

Returns

Psr\Log\LoggerInterface

Since

1.0
protected
# initialise( )

Custom initialisation method.

Custom initialisation method.

Called at the end of the AbstractApplication::__construct method. This is for developers to inject initialisation code for their application classes.

Since

1.0

CodeCoverageIgnore

public mixed
# set( string $key, mixed $value = null )

Modifies a property of the object, creating it if it does not already exist.

Modifies a property of the object, creating it if it does not already exist.

Parameters

$key
string - $key The name of the property.
$value
mixed - $value The value of the property to set (optional).

Returns

mixed - Previous value of the property

Since

1.0
public Joomla\Application\AbstractApplication
# setConfiguration( Joomla\Registry\Registry $config )

Sets the configuration for the application.

Sets the configuration for the application.

Parameters

$config
Joomla\Registry\Registry - $config A registry object holding the configuration.

Returns

Joomla\Application\AbstractApplication - Returns itself to support chaining.

Since

1.0
public Joomla\Application\AbstractApplication
# setLogger( Psr\Log\LoggerInterface $logger )

Set the logger.

Set the logger.

Parameters

$logger
Psr\Log\LoggerInterface - $logger The logger.

Returns

Joomla\Application\AbstractApplication - Returns itself to support chaining.

Since

1.0

Implementation of

Psr\Log\LoggerAwareInterface::setLogger()

Magic methods summary

Properties summary

protected Joomla\Registry\Registry $config
#

The application configuration object.

The application configuration object.

Since

1.0
public Joomla\Input\Input $input
#

The application input object.

The application input object.

Since

1.0
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.