/** * gets list of image file names in a directory * * @param string $subDirectory subdirectory (deprecated) * * @return array */ public static function getList($subDirectory = '') { $xoops = \Xoops::getInstance(); $subDirectory = trim($subDirectory, '/'); $path = 'images/subject/' . $subDirectory; $subjects = ImageFile::getList($xoops->path($path), $subDirectory . '/'); return $subjects; }
/** * gets list of image file names in a directory * * @param string $path filesystem path * @param string $prefix prefix added to file names * * @return array */ public static function getImgListAsArray($path, $prefix = '') { return \Xoops\Core\Lists\ImageFile::getList($path, $prefix); }