Factory
class Factory
Joomla Platform Factory class.
Properties
static CMSApplication | $application | Global application object | |
static Cache | $cache | Global cache object | |
static JConfig | $config | Global configuraiton object | |
static array | $dates | Container for Date instances | |
static Session | $session | Global session object | |
static Language | $language | Global language object | |
static JDocument | $document | Global document object | |
static Access | $acl | Global ACL object | |
static JDatabaseDriver | $database | Global database object | |
static Mail | $mailer | Global mailer object |
Methods
Get an application object.
Get a configuration object
Get a session object.
Get a language object.
Get a document object.
Get a cache object
Get a database object.
Get a mailer object.
Get a parsed XML Feed Source
Reads a XML file.
Creates a new stream object with appropriate prefix
Details
static
CMSApplication
getApplication(
mixed $id = null,
array $config = array(),
string $prefix = 'J')
Get an application object.
Returns the global {@link CMSApplication} object, only creating it if it doesn't already exist.
static
Registry
getConfig(
string $file = null,
string $type = 'PHP',
string $namespace = '')
Get a configuration object
Returns the global {@link \JConfig} object, only creating it if it doesn't already exist.
static
Session
getSession(
array $options = array())
Get a session object.
Returns the global {@link Session} object, only creating it if it doesn't already exist.
static
Language
getLanguage()
Get a language object.
Returns the global {@link Language} object, only creating it if it doesn't already exist.
static
JDocument
getDocument()
Get a document object.
Returns the global {@link \JDocument} object, only creating it if it doesn't already exist.
static
User
getUser(
integer $id = null)
Get a user object.
Returns the global {@link User} object, only creating it if it doesn't already exist.
static
CacheController
getCache(
string $group = '',
string $handler = 'callback',
string $storage = null)
Get a cache object
Returns the global {@link CacheController} object
static
Access
getAcl()
Get an authorization object
Returns the global {@link Access} object, only creating it if it doesn't already exist.
static
JDatabaseDriver
getDbo()
Get a database object.
Returns the global {@link \JDatabaseDriver} object, only creating it if it doesn't already exist.