Liste de tous les membres
Fonctions membres publiques |
| __construct ($options=array()) |
| setType ($type) |
| getType () |
| getBuffer () |
| setBuffer ($content, $options=array()) |
| getMetaData ($name, $httpEquiv=false) |
| setMetaData ($name, $content, $http_equiv=false, $sync=true) |
| addScript ($url, $type="text/javascript", $defer=false, $async=false) |
| addScriptDeclaration ($content, $type= 'text/javascript') |
| addStyleSheet ($url, $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 () |
| 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()) |
| __toString () |
| def ($property, $default=null) |
| get ($property, $default=null) |
| getProperties ($public=true) |
| getError ($i=null, $toString=true) |
| getErrors () |
| set ($property, $value=null) |
| setProperties ($properties) |
| setError ($error) |
| toString () |
Fonctions membres publiques statiques |
static | getInstance ($type= 'html', $attributes=array()) |
Attributs protégés statiques |
static | $instances = array() |
Additional Inherited Members |
| $_errors = array() |
Documentation des constructeurs et destructeur
JDocument::__construct |
( |
|
$options = array() | ) |
|
Documentation des fonctions membres
JDocument::_getLineEnd |
( |
| ) |
|
Returns the lineEnd
- Renvoie:
- string
- Depuis:
- 11.1
Returns a string containing the unit for indenting HTML
- Renvoie:
- string
- Depuis:
- 11.1
JDocument::addScript |
( |
|
$url, |
|
|
|
$type = "text/javascript" , |
|
|
|
$defer = false , |
|
|
|
$async = false |
|
) |
| |
Adds a linked script to the page
- Paramètres:
-
string | $url | URL to the linked script |
string | $type | Type of script. Defaults to 'text/javascript' |
boolean | $defer | Adds the defer attribute. |
boolean | $async | Adds the async attribute. |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $type, et $url.
JDocument::addScriptDeclaration |
( |
|
$content, |
|
|
|
$type = 'text/javascript' |
|
) |
| |
Adds a script to the page
- Paramètres:
-
string | $content | Script |
string | $type | Scripting mime (defaults to 'text/javascript') |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $type.
JDocument::addStyleDeclaration |
( |
|
$content, |
|
|
|
$type = 'text/css' |
|
) |
| |
Adds a stylesheet declaration to the page
- Paramètres:
-
string | $content | Style declarations |
string | $type | Type of stylesheet (defaults to 'text/css') |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $type.
JDocument::addStyleSheet |
( |
|
$url, |
|
|
|
$type = 'text/css' , |
|
|
|
$media = null , |
|
|
|
$attribs = array() |
|
) |
| |
Adds a linked stylesheet to the page
- Paramètres:
-
string | $url | URL to the linked style sheet |
string | $type | Mime encoding type |
string | $media | Media type that this stylesheet applies to |
array | $attribs | Array of attributes |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $attribs, $type, et $url.
Return the base URI of the document.
- Renvoie:
- string
- Depuis:
- 11.1
Références $base.
Get the contents of the document buffer
- Renvoie:
- The contents of the document buffer
- Depuis:
- 11.1
JDocument::getCharset |
( |
| ) |
|
Returns the document charset encoding.
- Renvoie:
- string
- Depuis:
- 11.1
JDocument::getDescription |
( |
| ) |
|
Return the title of the page.
- Renvoie:
- string
- Depuis:
- 11.1
JDocument::getDirection |
( |
| ) |
|
Returns the document direction declaration.
- Renvoie:
- string
- Depuis:
- 11.1
Références $direction.
JDocument::getGenerator |
( |
| ) |
|
Returns the document generator
- Renvoie:
- string
- Depuis:
- 11.1
static JDocument::getInstance |
( |
|
$type = 'html' , |
|
|
|
$attributes = array() |
|
) |
| |
|
static |
JDocument::getLanguage |
( |
| ) |
|
Returns the document language.
- Renvoie:
- string
- Depuis:
- 11.1
Références $language.
Returns the document base url
- Renvoie:
- string
- Depuis:
- 11.1
Références $link.
JDocument::getMetaData |
( |
|
$name, |
|
|
|
$httpEquiv = false |
|
) |
| |
Gets a meta tag.
- Paramètres:
-
string | $name | Value of name or http-equiv tag |
boolean | $httpEquiv | META type "http-equiv" defaults to null |
- Renvoie:
- string
- Depuis:
- 11.1
Références $name, et elseif.
JDocument::getMimeEncoding |
( |
| ) |
|
Return the document MIME encoding that is sent to the browser.
- Renvoie:
- string
- Depuis:
- 11.1
JDocument::getModifiedDate |
( |
| ) |
|
Returns the document modified date
- Renvoie:
- string
- Depuis:
- 11.1
Return the title of the document.
- Renvoie:
- string
- Depuis:
- 11.1
Références $title.
Returns the document type
- Renvoie:
- string
- Depuis:
- 11.1
JDocument::loadRenderer |
( |
|
$type | ) |
|
JDocument::parse |
( |
|
$params = array() | ) |
|
Parses the document and prepares the buffers
- Paramètres:
-
array | $params | The array of parameters |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Réimplémentée dans JDocumentHTML.
JDocument::render |
( |
|
$cache = false , |
|
|
|
$params = array() |
|
) |
| |
JDocument::setBase |
( |
|
$base | ) |
|
Sets the base URI of the document
- Paramètres:
-
string | $base | The base URI to be set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $base.
JDocument::setBuffer |
( |
|
$content, |
|
|
|
$options = array() |
|
) |
| |
Set the contents of the document buffer
- Paramètres:
-
string | $content | The content to be set in the buffer. |
array | $options | Array of optional elements. |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Réimplémentée dans JDocumentHTML.
JDocument::setCharset |
( |
|
$type = 'utf-8' | ) |
|
Sets the document charset
- Paramètres:
-
string | $type | Charset encoding string |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $type.
JDocument::setDescription |
( |
|
$description | ) |
|
Sets the description of the document
- Paramètres:
-
string | $description | The description to set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références description.
JDocument::setDirection |
( |
|
$dir = "ltr" | ) |
|
Sets the global document direction declaration. Default is left-to-right (ltr).
- Paramètres:
-
string | $dir | The language direction to be set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références direction.
JDocument::setGenerator |
( |
|
$generator | ) |
|
Sets the document generator
- Paramètres:
-
string | $generator | The generator to be set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
JDocument::setLanguage |
( |
|
$lang = "en-gb" | ) |
|
Sets the global document language declaration. Default is English (en-gb).
- Paramètres:
-
string | $lang | The language to be set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $lang, et language.
JDocument::setLineEnd |
( |
|
$style | ) |
|
Sets the line end style to Windows, Mac, Unix or a custom string.
- Paramètres:
-
string | $style | "win", "mac", "unix" or custom string. |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $style.
JDocument::setLink |
( |
|
$url | ) |
|
Sets the document link
- Paramètres:
-
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $url.
JDocument::setMetaData |
( |
|
$name, |
|
|
|
$content, |
|
|
|
$http_equiv = false , |
|
|
|
$sync = true |
|
) |
| |
Sets or alters a meta tag.
- Paramètres:
-
string | $name | Value of name or http-equiv tag |
string | $content | Value of the content tag |
boolean | $http_equiv | META type "http-equiv" defaults to null |
boolean | $sync | Should http-equiv="content-type" by synced with HTTP-header? |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $name, et elseif.
JDocument::setMimeEncoding |
( |
|
$type = 'text/html' , |
|
|
|
$sync = true |
|
) |
| |
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.
- Paramètres:
-
string | $type | The document type to be sent |
boolean | $sync | Should the type be synced with HTML? |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
http://www.w3.org/TR/xhtml-media-types
Références $type.
JDocument::setModifiedDate |
( |
|
$date | ) |
|
Sets the document modified date
- Paramètres:
-
string | $date | The date to be set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $date.
JDocument::setTab |
( |
|
$string | ) |
|
Sets the string used to indent HTML
- Paramètres:
-
string | $string | String used to indent ("\11", "\t", ' ', etc.). |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
JDocument::setTitle |
( |
|
$title | ) |
|
Sets the title of the document
- Paramètres:
-
string | $title | The title to be set |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $title, et title.
JDocument::setType |
( |
|
$type | ) |
|
Set the document type
- Paramètres:
-
string | $type | Type document is to set to |
- Renvoie:
- JDocument instance of $this to allow chaining
- Depuis:
- 11.1
Références $type.
Documentation des données membres
JDocument::$_buffer = null |
|
static |
JDocument::$_charset = 'utf-8' |
JDocument::$_engine = null |
JDocument::$_generator = 'Joomla! - Open Source Content Management' |
JDocument::$_lineEnd = "\12" |
JDocument::$_metaTags = array() |
JDocument::$_namespace = '' |
JDocument::$_profile = '' |
JDocument::$_script = array() |
JDocument::$_scripts = array() |
JDocument::$_style = array() |
JDocument::$_styleSheets = array() |
JDocument::$description = '' |
JDocument::$direction = 'ltr' |
JDocument::$instances = array() |
|
staticprotected |
JDocument::$language = 'en-gb' |
La documentation de cette classe a été générée à partir du fichier suivant :