Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JDocumentXml
+ Graphe d'héritage de JDocumentXml:
+ Graphe de collaboration de JDocumentXml:

Liste de tous les membres

Fonctions membres publiques

 __construct ($options=array())
 render ($cache=false, $params=array())
 getName ()
 setName ($name= 'joomla')
- Fonctions membres publiques inherited from JDocument
 setType ($type)
 getType ()
 getBuffer ()
 setBuffer ($content, $options=array())
 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)
 parse ($params=array())

Attributs protégés

 $name = 'joomla'
- Attributs protégés inherited from JDocument
 $mediaVersion = null

Additional Inherited Members

- Fonctions membres publiques statiques inherited from JDocument
static getInstance ($type= 'html', $attributes=array())
- 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
- Attributs publics statiques inherited from JDocument
static $_buffer = null
- Attributs protégés statiques inherited from JDocument
static $instances = array()

Description détaillée

Définition à la ligne 19 du fichier xml.php.


Documentation des constructeurs et destructeur

JDocumentXml::__construct (   $options = array())

Class constructor

Paramètres:
array$optionsAssociative array of options
Depuis:
11.1

Réimplémentée à partir de JDocument.

Définition à la ligne 36 du fichier xml.php.

{
// Set mime type
$this->_mime = 'application/xml';
// Set document type
$this->_type = 'xml';
}

Documentation des fonctions membres

JDocumentXml::getName ( )

Returns the document name

Renvoie:
string
Depuis:
11.1

Définition à la ligne 73 du fichier xml.php.

{
return $this->name;
}
JDocumentXml::render (   $cache = false,
  $params = array() 
)

Render the document.

Paramètres:
boolean$cacheIf true, cache the output
array$paramsAssociative array of attributes
Renvoie:
The rendered data
Depuis:
11.1

Réimplémentée à partir de JDocument.

Définition à la ligne 57 du fichier xml.php.

Références JFactory\getApplication().

{
JFactory::getApplication()->setHeader('Content-disposition', 'inline; filename="' . $this->getName() . '.xml"', true);
return $this->getBuffer();
}

+ Voici le graphe d'appel pour cette fonction :

JDocumentXml::setName (   $name = 'joomla')

Sets the document name

Paramètres:
string$nameDocument name
Renvoie:
JDocumentXml instance of $this to allow chaining
Depuis:
11.1

Définition à la ligne 87 du fichier xml.php.

{
$this->name = $name;
return $this;
}

Documentation des données membres

JDocumentXml::$name = 'joomla'
protected

Définition à la ligne 27 du fichier xml.php.


La documentation de cette classe a été générée à partir du fichier suivant :