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 JACL object, only creating it if it doesn't already exist.
static
JACL
getACL
()
Get a application object.
Returns the global JApplication object, only creating it if it doesn't already exist.
static
JApplication
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
JCache
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
$file: The path to the configuration file
-
string
$type: The type 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 JDatabase 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.
Get an XML document
static
object Parsed
getXMLParser
([string $type = ''], [array $options = array()])
-
string
$type: The type of XML parser needed 'DOM', 'RSS' or 'Simple'
-
array
$options: ['rssUrl'] the rss url to parse when using "RSS", ['cache_time'] with ' RSS' - feed cache time. If not defined defaults to 3600 sec
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