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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe ErrorDocument
+ Graphe d'héritage de ErrorDocument:

Fonctions membres publiques

 __construct ($options=array())
 
 setError ($error)
 
 render ($cache=false, $params=array())
 
 _loadTemplate ($directory, $filename)
 
 renderBacktrace ()
 
- Fonctions membres publiques hérités de Document
 __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())
 

Champs de données

 $baseurl = ''
 
 $debug = false
 
 $error
 
 $template = null
 
 $_file = null
 
- Champs de données hérités de Document
 $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 protégés

 $_error
 
- Attributs protégés hérités de Document
 $scriptOptions = array()
 
 $mediaVersion = null
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de Document
static getInstance ($type='html', $attributes=array())
 
- Attributs publics statiques hérités de Document
static $_buffer = null
 
- Attributs protégés statiques hérités de Document
static $instances = array()
 

Description détaillée

ErrorDocument class, provides an easy interface to parse and display an error page

Depuis
1.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $options = array())

Class constructor

Paramètres
array$optionsAssociative array of attributes
Depuis
1.7.0

Références $options.

Documentation des fonctions membres

◆ _loadTemplate()

_loadTemplate (   $directory,
  $filename 
)

Load a template file

Paramètres
string$directoryThe name of the template
string$filenameThe actual filename
Renvoie
string The contents of the template
Depuis
1.7.0

◆ render()

render (   $cache = false,
  $params = array() 
)

Render the document

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

Références $data, $file, $lang, $language, $params, $template, Uri\base(), JPATH_BASE, et null.

◆ renderBacktrace()

renderBacktrace ( )

Render the backtrace

Renvoie
string The contents of the backtrace
Depuis
1.7.0

Références LayoutHelper\render().

◆ setError()

setError (   $error)

Set error object

Paramètres
\Exception | \Throwable$errorError object to set
Renvoie
boolean True on success
Depuis
1.7.0

Documentation des champs

◆ $_error

$_error
protected

◆ $_file

$_file = null

◆ $baseurl

$baseurl = ''

◆ $debug

$debug = false

◆ $error

$error

◆ $template

$template = null

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