9 lines
225 B
PHP
9 lines
225 B
PHP
<?php
|
|
|
|
class MediaListing_Utility_VideoFilesIterator extends FilterIterator {
|
|
public function accept() {
|
|
return preg_match('/\.(?:avi|ogm|m4v|mkv|mov|mp4|mpg|srt)$/i', $this->current()->getFilename());
|
|
}
|
|
}
|
|
|
|
?>
|