Class constructor
JApplication
__construct
(string $client, integer 1)
-
integer
1: A client identifier
-
string
$client: The URL option passed in
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Redefined in descendants as:
Depreacted, use JDocument->addCustomTag instead
void
addCustomHeadTag
(mixed $html)
Depreacted, use JDocument->setMetadata instead
void
addMetaTag
(mixed $name, mixed $content, [mixed $prepend = ''], [mixed $append = ''])
Depreacted, use JDocument->setMetadata instead
void
appendMetaTag
(mixed $name, mixed $content)
Depreceated, use JPathWay->addItem() method instead
void
appendPathWay
(mixed $name, [mixed $link = null])
Return the application url
string
getBaseURL
()
Depreacted, use JApplicationHelper::getBlogCategoryCount instead
void
getBlogCategoryCount
()
Depreacted, use JApplicationHelper::getBlogSectionCount instead
void
getBlogSectionCount
()
Return a reference to the JBrowser object
jbrowser
&getBrowser
()
Gets a configuration value
The
getCfg
(string $varname)
-
string
$varname: The name of the value to get
Gets the client id
void
getClient
(mixed 0)
-
mixed
0: A client identifier
Depreacted, use JApplicationHelper::getContentItemLinkCount instead
void
getContentItemLinkCount
()
Depreceated, use JPathWay->getNamePathWay() method instead
void
getCustomPathWay
()
Return a reference to a JDatabase instance
jdatabase
&getDBO
([string $host = null], [string $user = null], [string $password = null], [string $db = null], [string $dbprefix = null], [string $dbtype = null], [string $debug = null])
-
string
$host: Database host
-
string
$user: Database user name
-
string
$password: Database user password
-
string
$db: Database name
-
string
$dbprefix: Common prefix for all tables
-
string
$dbtype: Database type
-
string
$debug: True if database needs to be set in debug mode
Return a reference to the JDocument object
void
&getDocument
()
Depreacted, use JApplicationHelper::getGlobalBlogSectionCount instead
void
getGlobalBlogSectionCount
()
Depreacted, use JDocument->renderHead instead
void
getHead
()
Depreacted, use JApplicationHelper::getItemid instead
void
getItemid
(mixed $id, [mixed $typed = 1], [mixed $link = 1], [mixed $bs = 1], [mixed $bc = 1], [mixed $gbs = 1])
Return a reference to the JLanguage object
jlanguage
&getLanguage
()
Return the application option string [main component]
string
getOption
()
Depreacted, use JApplicationHelper::getPath instead
void
getPath
(mixed $varname, [mixed $user_option = null])
Return a reference to the JPathWay object
jpathway
&getPathWay
()
Depreacted, use JApplicationHelper::getStaticContentCount instead
void
getStaticContentCount
()
Gets the name of the current template
string
getTemplate
()
Return a reference to the JURI object
juri
&getURI
()
Returns a reference to the JUser object
Gets a user state
The
getUserState
(string $key)
-
string
$key: The path of the state
Gets the value of a user state variable
The
getUserStateFromRequest
(string $key, string $request, [string $default = null])
-
string
$key: The key of the user state variable
-
string
$request: The name of the variable passed in a request
-
string
$default: The default value for the variable if not found
Is admin interface?
boolean
isAdmin
()
Is site interface?
boolean
isSite
()
Login authentication function
Username and encoded password are passed the the onLoginUser event who is responsible for the user validation. A successful validation updates the current session record with the users details.
void
login
([mixed $username = null], [mixed $passwd = null])
Logout authentication function
Passed the current user information to the onLogoutUser event and reverts the current session record back to 'anonymous' parameters
void
logout
()
Depreacted, use JDocument->setMetadata instead
void
prependMetaTag
(mixed $name, mixed $content)
Registers a handler to a particular event group
void
registerEvent
(string $event, mixed $handler)
-
string
$event: The event name
-
mixed
$handler: The handler, a function or an instance of a event object
Set the configuration
void
setConfiguration
(string $file, [string $type = 'config'])
-
string
$file: The path to the configuration file
-
string
$type: The type of the configuration file
Set the application language
void
setLanguage
([string $lang = null])
-
string
$lang: The language name
Set the user session
void
setSession
(string $name)
-
string
$name: The sessions name
Sets the value of a user state variable
mixed
setUserState
(string $key, string $value)
-
string
$key: The path of the state
-
string
$value: The value of the variable
Calls all handlers associated with an event group
array
triggerEvent
(string $event, [array $args = null])
-
string
$event: The event name
-
array
$args: An array of arguments
Create the configuration registry
void
_createConfiguration
(string $file, [string $type = 'PHP'])
-
string
$file: The path to the configuration file
-
string
$type: The format type
Create a JPathWay object and set the home/component items of the pathway
boolean
_createPathWay
()
Create the user session
Old sessions are flushed based on the configuration value for the cookie lifetime. If an existing session, then the last access time is updated. If a new session, a session id is generated and a record is created in the #__sessions table.
void
_createSession
(string $name, [boolean $useCookies = true])
-
string
$name: The sessions name
-
boolean
$useCookies: Use cookies to store the session on the client
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::JObject()
JObject::get()
JObject::set()
JObject::toString()
JObject::__destruct()