private function getType($mimeType) { $mimeType = strtolower($mimeType); $types = Record::getType(); foreach ($types as $type => $val) { if (strpos($mimeType, $type) !== false) { return $type; } } return false; }
private function getType() { $status = array(); $result = Media\Record::getType(); foreach ($result as $k => $v) { array_push($status, array('label' => $v, 'value' => $k)); } return $status; }