示例#1
0
文件: Handler.php 项目: visapi/amun
 private function getType($mimeType)
 {
     $mimeType = strtolower($mimeType);
     $types = Record::getType();
     foreach ($types as $type => $val) {
         if (strpos($mimeType, $type) !== false) {
             return $type;
         }
     }
     return false;
 }
示例#2
0
文件: Form.php 项目: visapi/amun
 private function getType()
 {
     $status = array();
     $result = Media\Record::getType();
     foreach ($result as $k => $v) {
         array_push($status, array('label' => $v, 'value' => $k));
     }
     return $status;
 }