for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
namespace Xoops\Core\Lists;
/**
* Module - provide list of available modules from the modules directory
*
* @category Xoops\Core\Lists\Module
* @package Xoops\Core
* @author Richard Griffith <[email protected]>
* @copyright 2015 XOOPS Project (http://xoops.org)/
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @link http://xoops.org
class Cpanel extends ListAbstract
{
* gets list of all files in a directory
* @return array
public static function getList()
$cpanelPath = \Xoops::getInstance()->path('modules/system/themes/');
$fileList = Directory::getList($cpanelPath);
return $fileList;
}