\JApplicationCmsInspector
Inspector for the JApplicationCms class.
Synopsis
class JApplicationCmsInspector
extends JApplicationCms
{
- // members
- public $headersSent;
- public $connectionAlive;
- public $headers;
- public $closed;
- // Inherited members from JApplicationCms
- protected $docOptions;
- protected $instances;
- public $scope;
- protected $_clientId;
- protected $_messageQueue;
- protected $_name;
- protected JProfiler $profiler;
- protected $template;
- // Inherited members from JApplicationWeb
- public $charSet;
- public $mimeType;
- public JDate $modifiedDate;
- public JApplicationWebClient $client;
- protected JRegistry $config;
- protected JDocument $document;
- protected JLanguage $language;
- protected JSession $session;
- protected $response;
- protected JApplicationWeb $instance;
- // Inherited members from JApplicationBase
- protected JEventDispatcher $dispatcher;
- protected JUser $identity;
- public JInput $input;
- // methods
- public boolean checkConnectionAlive()
- public boolean checkHeadersSent()
- public void close()
- public void doExecute()
- public void header()
- // Inherited methods from JApplicationCms
- public void __construct()
- public void afterSessionStart()
- public void checkSession()
- public void enqueueMessage()
- public void execute()
- public mixed getCfg()
- public integer getClientId()
- public static JApplicationCms getInstance()
- public JMenu getMenu()
- public array getMessageQueue()
- public string getName()
- public JPathway getPathway()
- public static JRouter getRouter()
- public mixed getTemplate()
- public mixed getUserState()
- public getUserStateFromRequest()
- protected void initialiseApp()
- public boolean isAdmin()
- public boolean isSite()
- public JApplicationCms loadSession()
- public boolean login()
- public boolean logout()
- public void redirect()
- protected void render()
- protected void route()
- public mixed setUserState()
- public string toString()
- // Inherited methods from JApplicationWeb
- public void __construct()
- public static JApplicationWeb getInstance()
- public JApplicationWeb initialise()
- public void execute()
- protected void doExecute()
- protected void render()
- protected void compress()
- protected void respond()
- public void redirect()
- public JApplicationWeb loadConfiguration()
- public mixed get()
- public mixed set()
- public boolean allowCache()
- public JApplicationWeb setHeader()
- public array getHeaders()
- public JApplicationWeb clearHeaders()
- public JApplicationWeb sendHeaders()
- public JApplicationWeb setBody()
- public JApplicationWeb prependBody()
- public JApplicationWeb appendBody()
- public mixed getBody()
- public JDocument getDocument()
- public JLanguage getLanguage()
- public JSession getSession()
- protected boolean checkConnectionAlive()
- protected boolean checkHeadersSent()
- protected string detectRequestUri()
- protected mixed fetchConfigurationData()
- public void flushAssets()
- protected void header()
- public boolean isSSLConnection()
- public JApplicationWeb loadDocument()
- public JApplicationWeb loadLanguage()
- public JApplicationWeb loadSession()
- public void afterSessionStart()
- protected void loadSystemUris()
- // Inherited methods from JApplicationBase
- public void close()
- public mixed getIdentity()
- public JApplicationBase registerEvent()
- public array triggerEvent()
- public JApplicationBase loadDispatcher()
- public JApplicationBase loadIdentity()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
674 | At some point we need to get away from having session data always in the db. |
Members
protected
- $_clientId
—
integer
The client identifier. - $_messageQueue
—
array
The application message queue. - $_name
—
array
The name of the application. - $config — JRegistry
- $dispatcher
—
JEventDispatcher
The application dispatcher object. - $docOptions
—
array
Array of options for the JDocument object - $document — JDocument
- $identity
—
JUser
The application identity object. - $instance — JApplicationWeb
- $instances
—
array
Application instances container. - $language — JLanguage
- $profiler
—
JProfiler
The profiler instance - $response —
- $session — JSession
- $template
—
Currently active template
public
- $charSet — string
- $client — JApplicationWebClient
- $closed — integer
- $connectionAlive — boolean
- $headers — array
- $headersSent — boolean
- $input
—
JInput
The application input object. - $mimeType — string
- $modifiedDate — JDate
- $scope
—
string
The scope of the application.
Methods
public
- checkConnectionAlive() — Allows public access to protected method.
- checkHeadersSent() — Allows public access to protected method.
- close() — Mimic exiting the application.
- doExecute() — Allows public access to protected method.
- header() — Allows public access to protected method.
Inherited from JApplicationCms
protected
- initialiseApp() — Initialise the application.
- render() — Rendering is the process of pushing the document buffers into the template placeholders, retrieving data from the document and pushing it into the application response buffer.
- route() — Route the application.
public
- afterSessionStart() — After the session has been started we need to populate it with some default values.
- checkSession() — Checks the user session.
- enqueueMessage() — Enqueue a system message.
- execute() — Execute the application.
- getCfg() — Gets a configuration value.
- getClientId() — Gets the client id of the current running application.
- getInstance() — Returns a reference to the global JApplicationCms object, only creating it if it doesn't already exist.
- getMenu() — Returns the application JMenu object.
- getMessageQueue() — Get the system message queue.
- getName() — Gets the name of the current running application.
- getPathway() — Returns the application JPathway object.
- getRouter() — Returns the application JRouter object.
- getTemplate() — Gets the name of the current template.
- getUserState() — Gets a user state.
- getUserStateFromRequest() — Gets the value of a user state variable.
- isAdmin() — Is admin interface?
- isSite() — Is site interface?
- loadSession() — Allows the application to load a custom or default session.
- login() — Login authentication function.
- logout() — Logout authentication function.
- redirect() — Redirect to another URL.
- setUserState() — Sets the value of a user state variable.
- toString() — Sends all headers prior to returning the string
Inherited from JApplicationWeb
protected
- checkConnectionAlive() — Method to check the current client connnection status to ensure that it is alive. We are wrapping this to isolate the connection_status() function from our code base for testing reasons.
- checkHeadersSent() — Method to check to see if headers have already been sent. We are wrapping this to isolate the headers_sent() function from our code base for testing reasons.
- compress() — Checks the accept encoding of the browser and compresses the data before sending it to the client if possible.
- detectRequestUri() — Method to detect the requested URI from server environment variables.
- doExecute() — Method to run the Web application routines. Most likely you will want to instantiate a controller and execute it, or perform some sort of action that populates a JDocument object so that output can be rendered to the client.
- fetchConfigurationData() — Method to load a PHP configuration class file based on convention and return the instantiated data object. You will extend this method in child classes to provide configuration data from whatever data source is relevant for your specific application.
- header() — Method to send a header to the client. We are wrapping this to isolate the header() function from our code base for testing reasons.
- loadSystemUris() — Method to load the system URI strings for the application.
- render() — Rendering is the process of pushing the document buffers into the template placeholders, retrieving data from the document and pushing it into the application response buffer.
- respond() — Method to send the application response to the client. All headers will be sent prior to the main application output data.
public
- afterSessionStart() — After the session has been started we need to populate it with some default values.
- allowCache() — Set/get cachable state for the response. If $allow is set, sets the cachable state of the response. Always returns the current state.
- appendBody() — Append content to the body content
- clearHeaders() — Method to clear any set response headers.
- execute() — Execute the application.
- flushAssets() — Flush the media version to refresh versionable assets
- get() — Returns a property of the object or the default value if the property is not set.
- getBody() — Return the body content
- getDocument() — Method to get the application document object.
- getHeaders() — Method to get the array of response headers to be sent when the response is sent to the client.
- getInstance() — Returns a reference to the global JApplicationWeb object, only creating it if it doesn't already exist.
- getLanguage() — Method to get the application language object.
- getSession() — Method to get the application session object.
- initialise() — Initialise the application.
- isSSLConnection() — Determine if we are using a secure (SSL) connection.
- loadConfiguration() — Load an object or array into the application configuration object.
- loadDocument() — Allows the application to load a custom or default document.
- loadLanguage() — Allows the application to load a custom or default language.
- loadSession() — Allows the application to load a custom or default session.
- prependBody() — Prepend content to the body content
- redirect() — Redirect to another URL.
- sendHeaders() — Send the response headers.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setBody() — Set body content. If body content already defined, this will replace it.
- setHeader() — Method to set a response header. If the replace flag is set then all headers with the given name will be replaced by the new one. The headers are stored in an internal array to be sent when the site is sent to the browser.
Inherited from JApplicationBase
public
- close() — Method to close the application.
- getIdentity() — Get the application identity.
- loadDispatcher() — Allows the application to load a custom or default dispatcher.
- loadIdentity() — Allows the application to load a custom or default identity.
- registerEvent() — Registers a handler to a particular event group.
- triggerEvent() — Calls all handlers associated with an event group.