forType() static public method

static public forType ( $type, $default = null )
示例#1
0
文件: gitblog.php 项目: rsms/gitblog
 function recommendedFilenameExtension($default = '')
 {
     if ($ext = GBMimeType::forType($this->mimeType)) {
         return '.' . $ext;
     }
     return $default;
 }