From 660b65af0b1d774cc16ed0127fbb9b116b099a70 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 5 Jul 2014 20:27:37 -0700 Subject: [PATCH] Added getFiles() method to retrieve all files in the media-manager. (_common_file) --- e107_handlers/media_class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php index 033371815..c9ce8ad8b 100644 --- a/e107_handlers/media_class.php +++ b/e107_handlers/media_class.php @@ -405,6 +405,14 @@ class e_media } + public function getFiles($from=0, $amount = null, $search = null) + { + return $this->getImages('_common_file', $from, $amount, $search); + } + + + + /** * Return an array of Images in a particular category * @param string $cat : category name. use + to include _common eg. 'news+'