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