Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($options=array()) | |
setType ($type) | |
getType () | |
getBuffer () | |
setBuffer ($content, $options=array()) | |
getMetaData ($name, $attribute='name') | |
setMetaData ($name, $content, $attribute='name') | |
addScript ($url, $options=array(), $attribs=array()) | |
addScriptVersion ($url, $options=array(), $attribs=array()) | |
addScriptDeclaration ($content, $type='text/javascript') | |
addScriptOptions ($key, $options, $merge=true) | |
getScriptOptions ($key=null) | |
addStyleSheet ($url, $options=array(), $attribs=array()) | |
addStyleSheetVersion ($url, $options=array(), $attribs=array()) | |
addStyleDeclaration ($content, $type='text/css') | |
setCharset ($type='utf-8') | |
getCharset () | |
setLanguage ($lang='en-gb') | |
getLanguage () | |
setDirection ($dir='ltr') | |
getDirection () | |
setTitle ($title) | |
getTitle () | |
setMediaVersion ($mediaVersion) | |
getMediaVersion () | |
setBase ($base) | |
getBase () | |
setDescription ($description) | |
getDescription () | |
setLink ($url) | |
getLink () | |
setGenerator ($generator) | |
getGenerator () | |
setModifiedDate ($date) | |
getModifiedDate () | |
setMimeEncoding ($type='text/html', $sync=true) | |
getMimeEncoding () | |
setLineEnd ($style) | |
_getLineEnd () | |
setTab ($string) | |
_getTab () | |
loadRenderer ($type) | |
parse ($params=array()) | |
render ($cache=false, $params=array()) | |
Fonctions membres publiques statiques | |
static | getInstance ($type='html', $attributes=array()) |
Champs de données | |
$title = '' | |
$description = '' | |
$link = '' | |
$base = '' | |
$language = 'en-gb' | |
$direction = 'ltr' | |
$_generator = 'Joomla! - Open Source Content Management' | |
$_mdate = '' | |
$_tab = "\11" | |
$_lineEnd = "\12" | |
$_charset = 'utf-8' | |
$_mime = '' | |
$_namespace = '' | |
$_profile = '' | |
$_scripts = array() | |
$_script = array() | |
$_styleSheets = array() | |
$_style = array() | |
$_metaTags = array() | |
$_engine = null | |
$_type = null | |
Attributs publics statiques | |
static | $_buffer = null |
Attributs protégés | |
$scriptOptions = array() | |
$mediaVersion = null | |
Attributs protégés statiques | |
static | $instances = array() |
Document class, provides an easy interface to parse and display a document
__construct | ( | $options = array() | ) |
Class constructor.
array | $options | Associative array of options |
Références $options.
_getLineEnd | ( | ) |
Returns the lineEnd
_getTab | ( | ) |
addScript | ( | $url, | |
$options = array() , |
|||
$attribs = array() |
|||
) |
Adds a linked script to the page
string | $url | URL to the linked script. |
array | $options | Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') |
array | $attribs | Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) |
addScriptDeclaration | ( | $content, | |
$type = 'text/javascript' |
|||
) |
addScriptOptions | ( | $key, | |
$options, | |||
$merge = true |
|||
) |
addScriptVersion | ( | $url, | |
$options = array() , |
|||
$attribs = array() |
|||
) |
Adds a linked script to the page with a version to allow to flush it. Ex: myscript.js?54771616b5bceae9df03c6173babf11d If not specified Joomla! automatically handles versioning
string | $url | URL to the linked script. |
array | $options | Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') |
array | $attribs | Array of attributes. Example: array('id' => 'scriptid', 'async' => 'async', 'data-test' => 1) |
addStyleDeclaration | ( | $content, | |
$type = 'text/css' |
|||
) |
addStyleSheet | ( | $url, | |
$options = array() , |
|||
$attribs = array() |
|||
) |
Adds a linked stylesheet to the page
string | $url | URL to the linked style sheet |
array | $options | Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') |
array | $attribs | Array of attributes. Example: array('id' => 'stylesheet', 'data-test' => 1) |
addStyleSheetVersion | ( | $url, | |
$options = array() , |
|||
$attribs = array() |
|||
) |
Adds a linked stylesheet version to the page. Ex: template.css?54771616b5bceae9df03c6173babf11d If not specified Joomla! automatically handles versioning
string | $url | URL to the linked style sheet |
array | $options | Array of options. Example: array('version' => 'auto', 'conditional' => 'lt IE 9') |
array | $attribs | Array of attributes. Example: array('id' => 'stylesheet', 'data-test' => 1) |
getBase | ( | ) |
getBuffer | ( | ) |
Get the contents of the document buffer
getCharset | ( | ) |
Returns the document charset encoding.
getDescription | ( | ) |
getDirection | ( | ) |
getGenerator | ( | ) |
Returns the document generator
|
static |
Returns the global Document object, only creating it if it doesn't already exist.
string | $type | The document type to instantiate |
array | $attributes | Array of attributes |
Références $attributes, $class, $path, $type, null, et JLoader\register().
Référencé par ExceptionHandler\render().
getLanguage | ( | ) |
getLink | ( | ) |
getMediaVersion | ( | ) |
Return the media version
getMetaData | ( | $name, | |
$attribute = 'name' |
|||
) |
getMimeEncoding | ( | ) |
Return the document MIME encoding that is sent to the browser.
getModifiedDate | ( | ) |
Returns the document modified date
getScriptOptions | ( | $key = null | ) |
Get script(s) options
string | $key | Name in Storage |
Références $key.
getTitle | ( | ) |
getType | ( | ) |
Returns the document type
loadRenderer | ( | $type | ) |
Load a renderer
string | $type | The renderer type |
Références $class, $path, $type, et JLoader\register().
parse | ( | $params = array() | ) |
Parses the document and prepares the buffers
array | $params | The array of parameters |
render | ( | $cache = false , |
|
$params = array() |
|||
) |
Outputs the document
boolean | $cache | If true, cache the output |
array | $params | Associative array of attributes |
Références $app.
setBase | ( | $base | ) |
setBuffer | ( | $content, | |
$options = array() |
|||
) |
setCharset | ( | $type = 'utf-8' | ) |
setDescription | ( | $description | ) |
Sets the description of the document
string | $description | The description to set |
Références $description, et description.
setDirection | ( | $dir = 'ltr' | ) |
Sets the global document direction declaration. Default is left-to-right (ltr).
string | $dir | The language direction to be set |
setGenerator | ( | $generator | ) |
Sets the document generator
string | $generator | The generator to be set |
setLanguage | ( | $lang = 'en-gb' | ) |
setLineEnd | ( | $style | ) |
setLink | ( | $url | ) |
setMediaVersion | ( | $mediaVersion | ) |
Set the assets version
string | $mediaVersion | Media version to use |
setMetaData | ( | $name, | |
$content, | |||
$attribute = 'name' |
|||
) |
Sets the document MIME encoding that is sent to the browser.
This usually will be text/html because most browsers cannot yet accept the proper mime settings for XHTML: application/xhtml+xml and to a lesser extent application/xml and text/xml. See the W3C note (http://www.w3.org/TR/xhtml-media-types/) for more details.
string | $type | The document type to be sent |
boolean | $sync | Should the type be synced with HTML? |
http://www.w3.org/TR/xhtml-media-types
Références $type.
setModifiedDate | ( | $date | ) |
setTab | ( | $string | ) |
setTitle | ( | $title | ) |
setType | ( | $type | ) |
|
static |
$_charset = 'utf-8' |
$_engine = null |
$_generator = 'Joomla! - Open Source Content Management' |
$_lineEnd = "\12" |
$_mdate = '' |
$_metaTags = array() |
$_mime = '' |
$_namespace = '' |
$_profile = '' |
$_script = array() |
$_scripts = array() |
$_style = array() |
$_styleSheets = array() |
$_tab = "\11" |
$_type = null |
$base = '' |
$description = '' |
$direction = 'ltr' |
|
staticprotected |
$language = 'en-gb' |
$link = '' |
|
protected |
|
protected |
$title = '' |