public function getMimeType() { if (!$this->object) { return NULL; } if (!$this->mime_type) { $mime = new MIME(Config::MIME_CACHE_PATH); $this->mime_type = $mime->bufferGetType($this->object->data, $this->getName()); } return $this->mime_type; }