|
static | getApplication ($id=null, array $config=array(), $prefix='J') |
|
static | getConfig ($file=null, $type='PHP', $namespace='') |
|
static | getSession (array $options=array()) |
|
static | getLanguage () |
|
static | getDocument () |
|
static | getUser ($id=null) |
|
static | getCache ($group='', $handler='callback', $storage=null) |
|
static | getAcl () |
|
static | getDbo () |
|
static | getMailer () |
|
static | getFeedParser ($url, $cacheTime=0) |
|
static | getXml ($data, $isFile=true) |
|
static | getEditor ($editor=null) |
|
static | getUri ($uri='SERVER') |
|
static | getDate ($time='now', $tzOffset=null) |
|
static | getStream ($usePrefix=true, $useNetwork=true, $userAgentSuffix=null, $maskUserAgent=false) |
|
Joomla Platform Factory class.
- Depuis
- 1.7.0
◆ createConfig()
static createConfig |
( |
|
$file, |
|
|
|
$type = 'PHP' , |
|
|
|
$namespace = '' |
|
) |
| |
|
staticprotected |
Create a configuration object
- Paramètres
-
string | $file | The path to the configuration file. |
string | $type | The type of the configuration file. |
string | $namespace | The namespace of the configuration file. |
- Renvoie
- Registry
- Voir également
- Registry
- Depuis
- 1.7.0
Références $config, $file, $name, et $type.
◆ createDbo()
◆ createDocument()
static createDocument |
( |
| ) |
|
|
staticprotected |
◆ createLanguage()
static createLanguage |
( |
| ) |
|
|
staticprotected |
◆ createMailer()
◆ createSession()
static createSession |
( |
array |
$options = array() | ) |
|
|
staticprotected |
◆ getAcl()
◆ getApplication()
static getApplication |
( |
|
$id = null , |
|
|
array |
$config = array() , |
|
|
|
$prefix = 'J' |
|
) |
| |
|
static |
Get an application object.
Returns the global CMSApplication object, only creating it if it doesn't already exist.
- Paramètres
-
mixed | $id | A client identifier or name. |
array | $config | An optional associative array of configuration settings. |
string | $prefix | Application prefix |
- Renvoie
- CMSApplication object
- Voir également
- JApplication
- Depuis
- 1.7.0
- Exceptions
-
Références $id, Log\createDelegatedLogger(), et CMSApplication\getInstance().
Référencé par Route\_(), ExtensionAdapter\_endElement(), ActionlogsModelActionlogs\buildDateRange(), ActionlogsModelActionlogs\delete(), ContentViewCategory\display(), PlgSystemFields\display(), CollectionAdapter\findUpdate(), ExtensionAdapter\findUpdate(), HtmlDocument\getBuffer(), CMSHelper\getCurrentLanguage(), ContentHelper\getCurrentLanguage(), ActionlogsHelper\getHumanReadableLogMessage(), JFormFieldterms\getLayoutData(), FrontendlanguageField\getOptions(), TagField\getOptions(), UpdateAdapter\getUpdateSiteResponse(), HTMLHelper\includeRelativeFiles(), Route\link(), PlgSystemActionLogs\onContentPrepareForm(), ActionlogsModelActionlogs\populateState(), ActionlogsModelActionlogs\purge(), AdminModel\redirectToAssociations(), ExceptionHandler\render(), Mail\Send(), CaptchaField\setup(), et ToolbarHelper\title().
◆ getCache()
static getCache |
( |
|
$group = '' , |
|
|
|
$handler = 'callback' , |
|
|
|
$storage = null |
|
) |
| |
|
static |
◆ getConfig()
static getConfig |
( |
|
$file = null , |
|
|
|
$type = 'PHP' , |
|
|
|
$namespace = '' |
|
) |
| |
|
static |
Get a configuration object
Returns the global JConfigobject,onlycreatingitifitdoesn'talreadyexist.@paramstring$fileThepathtotheconfigurationfile@paramstring$typeThetypeoftheconfigurationfile@paramstring$namespaceThenamespaceoftheconfigurationfile@returnRegistry@seeRegistry@since1.7.0
Références $config, $file, $type, JPATH_CONFIGURATION, et null.
Référencé par PlgSystemActionLogs\clearCacheGroups(), HTMLHelper\date(), EditorField\getEditor(), HTMLHelper\includeRelativeFiles(), Mail\isSendmail(), Mail\Send(), et Mail\sendMail().
◆ getDate()
static getDate |
( |
|
$time = 'now' , |
|
|
|
$tzOffset = null |
|
) |
| |
|
static |
◆ getDbo()
Get a database object.
Returns the global JDatabaseDriverobject,onlycreatingitifitdoesn'talreadyexist.@return\JDatabaseDriver@see\JDatabaseDriver@since1.7.0
Référencé par ExtensionAdapter\_endElement(), Update\_endElement(), HTMLHelper\calendar(), ContentHelper\countRelations(), MVCFactory\createTable(), EditorField\getEditor(), MenuField\getGroups(), TemplatestyleField\getGroups(), MenuitemField\getGroups(), CMSHelper\getLanguageId(), ContentHelper\getLanguageId(), JFormFieldterms\getLayoutData(), ActionlogsHelper\getLogContentTypeParams(), FrontendlanguageField\getOptions(), JFormFieldExtension\getOptions(), JFormFieldLogCreator\getOptions(), AuthorField\getOptions(), ContenttypeField\getOptions(), TagField\getOptions(), OrderingField\getQuery(), Updater\getSitesWithUpdates(), ChromestyleField\getTemplates(), ActionlogsHelper\loadActionLogPluginsLanguage(), ExistsRule\test(), et Updater\updateLastCheckTimestamp().
◆ getDocument()
◆ getEditor()
static getEditor |
( |
|
$editor = null | ) |
|
|
static |
◆ getFeedParser()
static getFeedParser |
( |
|
$url, |
|
|
|
$cacheTime = 0 |
|
) |
| |
|
static |
Get a parsed XML Feed Source
- Paramètres
-
string | $url | Url for feed source. |
integer | $cacheTime | Time to cache feed for (using internal cache mechanism). |
- Renvoie
- mixed SimplePie parsed object on success, false on failure.
- Depuis
- 1.7.0
- Exceptions
-
Références $url, Log\add(), et Log\WARNING.
◆ getLanguage()
Get a language object.
Returns the global Language object, only creating it if it doesn't already exist.
- Renvoie
- Language object
- Voir également
- Language
- Depuis
- 1.7.0
Références $language.
Référencé par Text\_(), LastvisitdaterangeField\__construct(), UseractiveField\__construct(), RegistrationdaterangeField\__construct(), Categories\__construct(), Text\alt(), HTMLHelper\calendar(), HTMLHelper\date(), TemplatestyleField\getGroups(), JFormFieldterms\getLayoutData(), ContenttypeField\getOptions(), ActionlogsHelper\loadActionLogPluginsLanguage(), ActionlogsHelper\loadTranslationFiles(), PlgUserJoomla\onUserAfterSave(), Text\passSprintf(), Text\plural(), Text\printf(), ExceptionHandler\render(), Text\script(), Text\sprintf(), et ToolbarHelper\versions().
◆ getMailer()
◆ getSession()
static getSession |
( |
array |
$options = array() | ) |
|
|
static |
◆ getStream()
static getStream |
( |
|
$usePrefix = true , |
|
|
|
$useNetwork = true , |
|
|
|
$userAgentSuffix = null , |
|
|
|
$maskUserAgent = false |
|
) |
| |
|
static |
Creates a new stream object with appropriate prefix
- Paramètres
-
boolean | $usePrefix | Prefix the connections for writing |
boolean | $useNetwork | Use network if available for writing; use false to disable (e.g. FTP, SCP) |
string | $userAgentSuffix | String to append to user agent |
boolean | $maskUserAgent | User agent masking (prefix Mozilla) |
- Renvoie
- Voir également
- Depuis
- 1.7.0
Références $context, $prefix, $version, elseif, JLoader\import(), et JPATH_ROOT.
Référencé par File\append(), Folder\copy(), File\copy(), File\move(), Folder\move(), File\upload(), et File\write().
◆ getUri()
static getUri |
( |
|
$uri = 'SERVER' | ) |
|
|
static |
◆ getUser()
static getUser |
( |
|
$id = null | ) |
|
|
static |
Get a user object.
Returns the global User object, only creating it if it doesn't already exist.
- Paramètres
-
integer | $id | The user to load - Can be an integer or string - If string, it is converted to ID automatically. |
- Renvoie
- User object
- Voir également
- User
- Depuis
- 1.7.0
Références $id, elseif, et User\getInstance().
Référencé par JAdminCssMenu\__construct(), AbstractMenu\__get(), ContentHelper\_getActions(), ActionlogsModelActionlog\addLog(), HTMLHelper\date(), ContentHelper\getActions(), MenuField\getGroups(), UserField\getLayoutData(), FrontendlanguageField\getOptions(), UsergrouplistField\getOptions(), AbstractMenu\getUser(), PlgActionlogJoomla\onAfterCheckin(), PlgActionlogJoomla\onAfterLogExport(), PlgActionlogJoomla\onAfterLogPurge(), PlgSystemActionLogs\onContentPrepareForm(), PlgActionlogJoomla\onUserAfterSave(), PlgUserJoomla\onUserLogout(), et UserField\setup().
◆ getXml()
static getXml |
( |
|
$data, |
|
|
|
$isFile = true |
|
) |
| |
|
static |
Reads a XML file.
- Paramètres
-
string | $data | Full path and file name. |
boolean | $isFile | true to load a file or false to load a string. |
- Renvoie
- mixed JXMLElement or SimpleXMLElement on success or false on error.
- Voir également
- JXMLElement
- Depuis
- 1.7.0
- Note
- When JXMLElement is not present a SimpleXMLElement will be returned.
- Obsolète:
- 4.0 - Use SimpleXML directly.
Références $class, $data, Log\add(), et Log\WARNING.
◆ $acl
◆ $application
◆ $cache
◆ $config
◆ $database
◆ $dates
◆ $document
◆ $language
◆ $mailer
◆ $session
La documentation de cette classe a été générée à partir du fichier suivant :