Class JApplicationSite
Joomla! Site Application class
-
Joomla\Application\AbstractApplication
implements
Psr\Log\LoggerAwareInterface
-
JApplicationBase
-
JApplicationWeb
-
JApplicationCms
-
JApplicationSite
Methods summary
public
|
#
__construct( JInput $input = null, Joomla\Registry\Registry $config = null, JApplicationWebClient $client = null )
Class constructor.
Parameters
- $input
JInput - $input An optional argument to provide dependency injection for the
application's input object. If the argument is a JInput 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.
- $client
JApplicationWebClient - $client An optional argument to provide dependency injection for the
application's client object. If the argument is a JApplicationWebClient object
that object will become the application's client object, otherwise a default
client object is created.
Since
3.2
Overrides
|
protected
|
#
authorise( integer $itemid )
Check if the user can access the application
Check if the user can access the application
Parameters
- $itemid
integer - $itemid The item ID to check authorisation for
Throws
Exception
- When you are not authorised to view the home page menu item
Since
3.2
|
public
|
#
dispatch( string $component = null )
Dispatch the application
Parameters
- $component
string - $component The component which is being rendered.
Since
3.2
|
protected
|
#
doExecute( )
Method to run the Web application routines.
Method to run the Web application routines.
Since
3.2
Overrides
|
public
boolean
|
#
getDetectBrowser( )
Return the current state of the detect browser option.
Return the current state of the detect browser option.
Returns
boolean
Since
3.2
|
public
boolean
|
#
getLanguageFilter( )
Return the current state of the language filter.
Return the current state of the language filter.
Returns
boolean
Since
3.2
|
public
Joomla\Registry\Registry
|
#
getPageParameters( string $option = null )
Get the application parameters
Get the application parameters
Deprecated
4.0 Use getParams() instead
Parameters
- $option
string - $option The component option
Returns
Since
3.2
|
public
Joomla\Registry\Registry
|
#
getParams( string $option = null )
Get the application parameters
Get the application parameters
Parameters
- $option
string - $option The component option
Returns
Since
3.2
|
public
JPathway
|
#
getPathway( string $name = 'site', array $options = array() )
Return a reference to the JPathway object.
Return a reference to the JPathway object.
Parameters
- $name
string - $name The name of the application.
- $options
array - $options An optional associative array of configuration settings.
Returns
Since
3.2
Overrides
|
public static
JRouter
|
#
getRouter( string $name = 'site', array $options = array() )
Return a reference to the JRouter object.
Return a reference to the JRouter object.
Parameters
- $name
string - $name The name of the application.
- $options
array - $options An optional associative array of configuration settings.
Returns
Since
3.2
Overrides
|
public
string
|
#
getTemplate( boolean $params = false )
Gets the name of the current template.
Gets the name of the current template.
Parameters
- $params
boolean - $params True to return the template parameters
Returns
string - The name of the template.
Throws
Since
3.2
Overrides
|
protected
|
#
initialiseApp( array $options = array() )
Initialise the application.
Initialise the application.
Parameters
- $options
array - $options An optional associative array of configuration settings.
Since
3.2
Overrides
|
protected
|
#
loadLibraryLanguage( )
Load the library language files for the application
Load the library language files for the application
Since
3.6.3
Overrides
|
public
boolean
|
#
login( array $credentials, array $options = array() )
Login authentication function
Login authentication function
Parameters
- $credentials
array - $credentials Array('username' => string, 'password' => string)
- $options
array - $options Array('remember' => boolean)
Returns
boolean - True on success.
Since
3.2
Overrides
|
protected
|
#
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.
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.
Since
3.2
Overrides
|
protected
|
#
route( )
Route the application.
Routing is the process of examining the request environment to determine
which component should receive the request. The component optional parameters
are then set in the request object to be processed when the application is being
dispatched.
Since
3.2
Overrides
|
public
boolean
|
#
setDetectBrowser( boolean $state = false )
Set the current state of the detect browser option.
Set the current state of the detect browser option.
Parameters
- $state
boolean - $state The new state of the detect browser option
Returns
boolean - The previous state
Since
3.2
|
public
boolean
|
#
setLanguageFilter( boolean $state = false )
Set the current state of the language filter.
Set the current state of the language filter.
Parameters
- $state
boolean - $state The new state of the language filter
Returns
boolean - The previous state
Since
3.2
|
public
|
#
setTemplate( string $template, mixed $styleParams = null )
Overrides the default template that would be used
Overrides the default template that would be used
Parameters
- $template
string - $template The template name
- $styleParams
mixed - $styleParams The template style parameters
Since
3.2
|
afterSessionStart()
,
checkSession()
,
checkUserRequireReset()
,
enqueueMessage()
,
execute()
,
getCfg()
,
getClientId()
,
getInstance()
,
getMessageQueue()
,
getName()
,
getUserState()
,
getUserStateFromRequest()
,
isAdmin()
,
isClient()
,
isHttpsForced()
,
isSite()
,
loadSession()
,
logout()
,
redirect()
,
setUserState()
,
toString()
allowCache()
,
appendBody()
,
checkConnectionAlive()
,
checkHeadersSent()
,
clearHeaders()
,
compress()
,
detectRequestUri()
,
fetchConfigurationData()
,
flushAssets()
,
getBody()
,
getDocument()
,
getHeaders()
,
getLanguage()
,
getSession()
,
header()
,
initialise()
,
isSSLConnection()
,
loadConfiguration()
,
loadDocument()
,
loadLanguage()
,
loadSystemUris()
,
prependBody()
,
respond()
,
sendHeaders()
,
setBody()
,
setHeader()
getIdentity()
,
loadDispatcher()
,
loadIdentity()
,
registerEvent()
,
triggerEvent()
close()
,
get()
,
getLogger()
,
set()
,
setConfiguration()
,
setLogger()
Magic methods summary
Properties summary
protected
boolean
|
$_language_filter
|
#
Option to filter by language
Option to filter by language
Deprecated
4.0 Will be renamed $language_filter
Since
3.2
|
protected
boolean
|
$_detect_browser
|
#
Option to detect language by the browser
Option to detect language by the browser
Deprecated
4.0 Will be renamed $detect_browser
Since
3.2
|
$_clientId
,
$_messageQueue
,
$_name
,
$docOptions
,
$instances
,
$profiler
,
$scope
,
$template
$charSet
,
$client
,
$document
,
$instance
,
$language
,
$mimeType
,
$modifiedDate
,
$response
,
$session
$dispatcher
,
$identity
$config
,
$input
$input