Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Visitor
accepts
Visitor::accepts PHP Méthode
Visitor Interface Documentation
Afficher le fichier
Open project: getkirby/toolkit
accepts()
public
static
méthode
Returns whether a specified MIME type is accepted by the visitor's browser
public
static
accepts
(
string
$type
) :
boolean
$type
string
MIME type like "text/html"
Résultat
boolean
public static function accepts($type) { return static::acceptance($type) > 0; }
Visitor
acceptance
acceptedLanguage
acceptedLanguageCode
accepts
banned
ip
referer
referrer
ua
userAgent