Create a configuration object
static
JRegistry
createConfig
(
string $file, [
string $type =
'PHP'], [
string $namespace =
''])
-
string
$file: The path to the configuration file.
-
string
$type: The type of the configuration file.
-
string
$namespace: The namespace of the configuration file.
Create an database object
Create a mailer object
static
JMail
createMailer
()
Create a session object
static
JSession
createSession
([
array $options =
array()])
-
array
$options: An array containing session options
Get an authorization object
Returns the global JAccess object, only creating it if it doesn't already exist.
Get a application object.
Returns the global JApplicationCms object, only creating it if it doesn't already exist.
static
JApplicationCms
getApplication
([
mixed $id =
null], [
array $config =
array()], [
string $prefix =
'J'])
-
mixed
$id: A client identifier or name.
-
array
$config: An optional associative array of configuration settings.
-
string
$prefix: Application prefix
Get a cache object
Returns the global JCache object
static
JCacheController
getCache
([
string $group =
''], [
string $handler =
'callback'], [
string $storage =
null])
-
string
$group: The cache group name
-
string
$handler: The handler to use
-
string
$storage: The storage method
Get a configuration object
Returns the global JRegistry object, only creating it if it doesn't already exist.
static
JRegistry
getConfig
([
string $file =
null], [
string $type =
'PHP'], [
string $namespace =
''])
-
string
$file: The path to the configuration file
-
string
$type: The type of the configuration file
-
string
$namespace: The namespace of the configuration file
Return the JDate object
static
JDate
getDate
([
mixed $time =
'now'], [
mixed $tzOffset =
null])
-
mixed
$time: The initial time for the JDate object
-
mixed
$tzOffset: The timezone offset.
Get a database object.
Returns the global JDatabaseDriver object, only creating it if it doesn't already exist.
Get a document object.
Returns the global JDocument object, only creating it if it doesn't already exist.
Get an editor object.
static
JEditor
getEditor
([
string $editor =
null])
-
string
$editor: The editor to load, depends on the editor plugins that are installed
Get a parsed XML Feed Source
static mixed
getFeedParser
(string $url, [integer $cache_time = 0])
-
string
$url: Url for feed source.
-
integer
$cache_time: Time to cache feed for (using internal cache mechanism).
Get a language object.
Returns the global JLanguage object, only creating it if it doesn't already exist.
Get a mailer object.
Returns the global JMail object, only creating it if it doesn't already exist.
static
JMail
getMailer
()
Get a session object.
Returns the global JSession object, only creating it if it doesn't already exist.
static
JSession
getSession
([
array $options =
array()])
-
array
$options: An array containing session options
Creates a new stream object with appropriate prefix
static
JStream
getStream
([
boolean $use_prefix =
true], [
boolean $use_network =
true], [
string $ua =
null], [
boolean $uamask =
false])
-
boolean
$use_prefix: Prefix the connections for writing
-
boolean
$use_network: Use network if available for writing; use false to disable (e.g. FTP, SCP)
-
string
$ua: UA User agent to use
-
boolean
$uamask: User agent masking (prefix Mozilla)
Return a reference to the JUri object
static
JUri
getURI
([
string $uri =
'SERVER'])
Get an user object.
Returns the global JUser object, only creating it if it doesn't already exist.
static
JUser
getUser
([
integer $id =
null])
-
integer
$id: The user to load - Can be an integer or string - If string, it is converted to ID automatically.
Reads a XML file.
static mixed
getXML
(string $data, [boolean $isFile = true])
-
string
$data: Full path and file name.
-
boolean
$isFile: true to load a file or false to load a string.