/** * Returns TRUE if the object is a video file * * @see isCommonVideo() */ public function isVideo() { return $this->exists() && WebFilesystem::isCommonVideo($this->getFilename()); }
public function isVideo() { $this->getIterator(); return $this->iterator->current()->isFile() && WebFilesystem::isCommonFile($this->iterator->current()->getRealPath()) && WebFilesystem::isCommonVideo($this->iterator->current()->getRealPath()); }