- md5
- 59054d3353afae60b00450fac96403c5
- sha1
- 14354c52c735de57c6976f563ec52bb363ba4fd7
- sha256
- 5efef1a71fef05296bf2ae528eb53090598cf924b52dd98c02a3f026cbbc5948
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
namespace Joomla\CMS\Application;
use Joomla\CMS\User\User;
use Joomla\Session\SessionInterface;
/**
* Interface defining a Joomla! CMS Application class
*
* @since __DEPLOY_VERSION__
*/
interface CMSApplicationInterface
{
/**
* Constant defining an enqueued emergency message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_EMERGENCY = 'emergency';
/**
* Constant defining an enqueued alert message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_ALERT = 'alert';
/**
* Constant defining an enqueued critical message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_CRITICAL = 'critical';
/**
* Constant defining an enqueued error message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_ERROR = 'error';
/**
* Constant defining an enqueued warning message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_WARNING = 'warning';
/**
* Constant defining an enqueued notice message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_NOTICE = 'notice';
/**
* Constant defining an enqueued info message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_INFO = 'info';
/**
* Constant defining an enqueued debug message
*
* @var string
* @since __DEPLOY_VERSION__
*/
const MSG_DEBUG = 'debug';
/**
* Enqueue a system message.
*
* @param string $msg The message to enqueue.
* @param string $type The message type.
*
* @return void
*
* @since __DEPLOY_VERSION__
*/
public function enqueueMessage($msg, $type = self::MSG_INFO);
/**
* Get the system message queue.
*
* @return array The system message queue.
*
* @since __DEPLOY_VERSION__
*/
public function getMessageQueue();
/**
* Execute the application.
*
* @return void
*
* @since __DEPLOY_VERSION__
*/
public function execute();
/**
* Check the client interface by name.
*
* @param string $identifier String identifier for the application interface
*
* @return boolean True if this application is of the given type client interface.
*
* @since __DEPLOY_VERSION__
*/
public function isClient($identifier);
/**
* Method to get the application session object.
*
* @return SessionInterface The session object
*
* @since __DEPLOY_VERSION__
*/
public function getSession();
/**
* Flag if the application instance is a CLI or web based application.
*
* Helper function, you should use the native PHP functions to detect if it is a CLI application.
*
* @return boolean
*
* @since __DEPLOY_VERSION__
* @deprecated 5.0 Will be removed without replacements
*/
public function isCli();
/**
* Get the application identity.
*
* @return User|null A User object or null if not set.
*
* @since __DEPLOY_VERSION__
*/
public function getIdentity();
/**
* Allows the application to load a custom or default identity.
*
* @param User $identity An optional identity object. If omitted, the factory user is created.
*
* @return $this
*
* @since __DEPLOY_VERSION__
*/
public function loadIdentity(User $identity = null);
}
No other release has this exact content. See every version of this file.