Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct ($options=array()) | |
getHeadData () | |
setHeadData ($data) | |
mergeHeadData ($data) | |
addHeadLink ($href, $relation, $relType= 'rel', $attribs=array()) | |
addFavicon ($href, $type= 'image/vnd.microsoft.icon', $relation= 'shortcut icon') | |
addCustomTag ($html) | |
isHtml5 () | |
setHtml5 ($state) | |
getBuffer ($type=null, $name=null, $attribs=array()) | |
setBuffer ($content, $options=array()) | |
parse ($params=array()) | |
render ($caching=false, $params=array()) | |
countModules ($condition) | |
countMenuChildren () | |
Fonctions membres publiques inherited from JDocument | |
setType ($type) | |
getType () | |
getBuffer () | |
getMetaData ($name, $httpEquiv=false) | |
setMetaData ($name, $content, $http_equiv=false) | |
addScript ($url, $type="text/javascript", $defer=false, $async=false) | |
addScriptVersion ($url, $version=null, $type="text/javascript", $defer=false, $async=false) | |
addScriptDeclaration ($content, $type= 'text/javascript') | |
addStyleSheet ($url, $type= 'text/css', $media=null, $attribs=array()) | |
addStyleSheetVersion ($url, $version=null, $type="text/css", $media=null, $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) |
Attributs publics | |
$_links = array() | |
$_custom = array() | |
$template = null | |
$baseurl = null | |
$params = null | |
$_file = null | |
Attributs publics inherited from JDocument | |
$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 |
Fonctions membres protégées | |
_loadTemplate ($directory, $filename) | |
_fetchTemplate ($params=array()) | |
_parseTemplate () | |
_renderTemplate () |
Attributs protégés | |
$_template = '' | |
$_template_tags = array() | |
$_caching = null | |
Attributs protégés inherited from JDocument | |
$mediaVersion = null |
Attributs privés | |
$_html5 = null |
Additional Inherited Members | |
Fonctions membres publiques statiques inherited from JDocument | |
static | getInstance ($type= 'html', $attributes=array()) |
Attributs publics statiques inherited from JDocument | |
static | $_buffer = null |
Attributs protégés statiques inherited from JDocument | |
static | $instances = array() |
JDocumentHTML::__construct | ( | $options = array() | ) |
Class constructor
array | $options | Associative array of options |
Réimplémentée à partir de JDocument.
Définition à la ligne 110 du fichier html.php.
|
protected |
Fetch the template, and initialise the params
array | $params | Parameters to determine the template |
Définition à la ligne 602 du fichier html.php.
Références JUri\base(), JFilterInput\getInstance(), et JFactory\getLanguage().
|
protected |
Load a template file
string | $directory | The name of the template |
string | $filename | The actual filename |
Définition à la ligne 556 du fichier html.php.
Références JUri\base().
|
protected |
Parse a document template
Définition à la ligne 642 du fichier html.php.
Références JUtility\parseAttributes().
|
protected |
JDocumentHTML::addCustomTag | ( | $html | ) |
Adds a custom HTML string to the head block
string | $html | The HTML to add to the head |
Définition à la ligne 317 du fichier html.php.
JDocumentHTML::addFavicon | ( | $href, | |
$type = 'image/vnd.microsoft.icon' , |
|||
$relation = 'shortcut icon' |
|||
) |
Adds a shortcut icon (favicon)
This adds a link to the icon shown in the favorites list or on the left of the url in the address bar. Some browsers display it on the tab, as well.
string | $href | The link that is being related. |
string | $type | File type |
string | $relation | Relation of link |
Définition à la ligne 300 du fichier html.php.
JDocumentHTML::addHeadLink | ( | $href, | |
$relation, | |||
$relType = 'rel' , |
|||
$attribs = array() |
|||
) |
Adds <link> tags to the head of the document
$relType defaults to 'rel' as it is the most common relation type used. ('rev' refers to reverse relation, 'rel' indicates normal, forward relation.) Typical tag: <link href="index.php" rel="Start">
string | $href | The link that is being related. |
string | $relation | Relation of link. |
string | $relType | Relation type attribute. Either rel or rev (default: 'rel'). |
array | $attribs | Associative array of remaining attributes. |
Définition à la ligne 276 du fichier html.php.
JDocumentHTML::countMenuChildren | ( | ) |
Count the number of child menu items
Définition à la ligne 517 du fichier html.php.
Références JFactory\getApplication(), et JFactory\getDbo().
JDocumentHTML::countModules | ( | $condition | ) |
Count the modules based on the given condition
string | $condition | The condition to use |
Définition à la ligne 492 du fichier html.php.
JDocumentHTML::getBuffer | ( | $type = null , |
|
$name = null , |
|||
$attribs = array() |
|||
) |
Get the contents of a document include
string | $type | The type of renderer |
string | $name | The name of the element to render |
array | $attribs | Associative array of remaining attributes. |
Définition à la ligne 364 du fichier html.php.
Références JFactory\getCache(), JCache\getWorkarounds(), et JCache\setWorkarounds().
JDocumentHTML::getHeadData | ( | ) |
Get the HTML document head data
Définition à la ligne 128 du fichier html.php.
Références JText\script().
JDocumentHTML::isHtml5 | ( | ) |
Returns whether the document is set up to be output as HTML5
JDocumentHTML::mergeHeadData | ( | $data | ) |
Merge the HTML document head data
array | $data | The document head data in array form |
Définition à la ligne 192 du fichier html.php.
JDocumentHTML::parse | ( | $params = array() | ) |
Parses the template and populates the buffer
array | $params | Parameters for fetching the template |
Réimplémentée à partir de JDocument.
JDocumentHTML::render | ( | $caching = false , |
|
$params = array() |
|||
) |
Outputs the template to the browser.
boolean | $caching | If true, cache the output |
array | $params | Associative array of attributes |
Réimplémentée à partir de JDocument.
Définition à la ligne 465 du fichier html.php.
JDocumentHTML::setBuffer | ( | $content, | |
$options = array() |
|||
) |
Set the contents a document includes
string | $content | The content to be set in the buffer. |
array | $options | Array of optional elements. |
Réimplémentée à partir de JDocument.
Définition à la ligne 424 du fichier html.php.
JDocumentHTML::setHeadData | ( | $data | ) |
Set the HTML document head data
array | $data | The document head data in array form |
Définition à la ligne 154 du fichier html.php.
Références JText\script().
JDocumentHTML::setHtml5 | ( | $state | ) |