public function getValue($name)
 {
     switch ($name) {
         case 'ThumbnailMIMEType':
             switch ($this->MIMEType) {
                 case 'application/psd':
                     return 'image/png';
                 case 'image/tiff':
                     return 'image/jpeg';
                 default:
                     return $this->MIMEType;
             }
         case 'Extension':
             switch ($this->MIMEType) {
                 case 'application/psd':
                     return 'psd';
                 case 'image/tiff':
                     return 'tif';
                 case 'image/gif':
                     return 'gif';
                 case 'image/jpeg':
                     return 'jpg';
                 case 'image/png':
                     return 'png';
                 default:
                     throw new Exception('Unable to find photo extension for mime-type: ' . $this->MIMEType);
             }
         default:
             return parent::getValue($name);
     }
 }
 public function getValue($name)
 {
     switch ($name) {
         case 'ThumbnailMIMEType':
             return 'image/png';
         case 'Extension':
             switch ($this->MIMEType) {
                 case 'application/pdf':
                     return 'pdf';
                 case 'application/postscript':
                     return 'eps';
                 case 'image/svg+xml':
                     return 'svg';
                 default:
                     throw new Exception('Unable to find document extension for mime-type: ' . $this->MIMEType);
             }
         default:
             return parent::getValue($name);
     }
 }
 public function getValue($name)
 {
     switch ($name) {
         case 'ThumbnailMIMEType':
             return 'image/png';
         case 'Width':
             return 128;
         case 'Height':
             return 128;
         case 'Extension':
             switch ($this->MIMEType) {
                 case 'audio/mpeg':
                     return 'mp3';
                 default:
                     throw new Exception('Unable to find audio extension for mime-type: ' . $this->MIMEType);
             }
         default:
             return parent::getValue($name);
     }
 }
 public function getValue($name)
 {
     switch ($name) {
         case 'ThumbnailMIMEType':
             return 'image/jpeg';
         case 'Extension':
             switch ($this->MIMEType) {
                 case 'video/x-flv':
                     return 'flv';
                 case 'video/mp4':
                     return 'mp4';
                 case 'video/quicktime':
                     return 'mov';
                 default:
                     throw new Exception('Unable to find video extension for mime-type: ' . $this->MIMEType);
             }
         default:
             return parent::getValue($name);
     }
 }