forType() 정적인 공개 메소드

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;
 }