forType() static public method

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