예제 #1
0
 function getIconPath($iMimeTypeId, $type = null)
 {
     $icon = KTUtil::arrayGet($GLOBALS['_KT_icon_path_cache'], $iMimeTypeId);
     if (empty($icon)) {
         $GLOBALS['_KT_icon_path_cache'][$iMimeTypeId] = KTMime::_getIconPath($iMimeTypeId);
         $icon = $GLOBALS['_KT_icon_path_cache'][$iMimeTypeId];
     }
     if (!empty($type)) {
         $icon .= '_' . $type;
     }
     return $icon;
 }