public function filedepot::getFileIcon in filedepot 7
Same name and namespace in other branches
- 6 filedepot.class.php \filedepot::getFileIcon()
File
- ./
filedepot.class.php, line 1125 - filedepot.class.php Main class for the Filedepot module
Class
- filedepot
- @file filedepot.class.php Main class for the Filedepot module
Code
public function getFileIcon($fname) {
$str = explode(".", $fname);
$ext = end($str);
if (array_key_exists($ext, $this->iconmap)) {
$icon = $this->iconmap[$ext];
}
else {
$icon = $this->iconmap['default'];
}
return $icon;
}