bufferGetType() public method

public bufferGetType ( $buf, $filename = NULL )
示例#1
0
 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;
 }