Ejemplo n.º 1
0
 /**
  * Returns TRUE if the object is an image
  *
  * @see isCommonImage()
  */
 public function isImage()
 {
     return $this->exists() && WebFilesystem::isCommonImage($this->getFilename());
 }
Ejemplo n.º 2
0
 public function isImage()
 {
     $this->getIterator();
     return $this->iterator->current()->isFile() && WebFilesystem::isCommonFile($this->iterator->current()->getRealPath()) && WebFilesystem::isCommonImage($this->iterator->current()->getRealPath());
 }