private static function getType4Attachment($file) {/*{{{*/ if(isset($file['name']) && TuClient::isDcm($file['name'])) { $type = Attachment::TYPE_DCM; } else if(isset($file['type']) && Attachment::isSound($file['type'])) { $type = Attachment::TYPE_AMR; } else { $type = Attachment::TYPE_JPG; } return $type; }/*}}}*/