forType() static public méthode

static public forType ( $type, $default = null )
Exemple #1
0
 function recommendedFilenameExtension($default = '')
 {
     if ($ext = GBMimeType::forType($this->mimeType)) {
         return '.' . $ext;
     }
     return $default;
 }