JFactory
static JApplication
getApplication
([mixed $id = null], [ $config = array()], [string $prefix = 'J'])
static JCacheController
getCache
([string $group = ''], [string $handler = 'callback'], [string $storage = null])
JApplication
$application
= null (line 23)
JConfig
$config
= null (line 35)
JDatabaseDriver
$database
= null (line 71)
array
$dates
= array() (line 41)
Create a configuration object
- 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 a session object
- 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 JApplication object, only creating it if it doesn't already exist.
- 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
- 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.
- string $file: The path to the configuration file
- string $type: The type of the configuration file
Return the JDate object
- 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.
- string $editor: The editor to load, depends on the editor plugins that are installed
Get a parsed XML Feed Source
- 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.
Get a session object.
Returns the global JSession object, only creating it if it doesn't already exist.
- array $options: An array containing session options
Creates a new stream object with appropriate prefix
- 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
- string $uri: Uri name.
Get an user object.
Returns the global JUser object, only creating it if it doesn't already exist.
- integer $id: The user to load - Can be an integer or string - If string, it is converted to ID automatically.
Reads a XML file.
- string $data: Full path and file name.
- boolean $isFile: true to load a file or false to load a string.
JFactory
static