bufferGetType() public méthode

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