コード例 #1
0
ファイル: Editor.php プロジェクト: ming-hai/XoopsCore
 /**
  * gets list of available editors
  *
  * Presently,  a list of folders from class/xoopseditor directory.
  *
  * @return array
  */
 public static function getList()
 {
     return Directory::getList(\XoopsBaseConfig::get('root-path') . '/class/xoopseditor/');
 }
コード例 #2
0
ファイル: Theme.php プロジェクト: ming-hai/XoopsCore
 /**
  * gets list of all files in a directory
  *
  * @return array
  */
 public static function getList()
 {
     $fileList = Directory::getList(\XoopsBaseConfig::get('themes-path') . '/');
     return $fileList;
 }
コード例 #3
0
ファイル: Module.php プロジェクト: ming-hai/XoopsCore
 /**
  * gets list of all files in a directory
  *
  * @return array
  */
 public static function getList()
 {
     $modulePath = \Xoops::getInstance()->path('modules/');
     $fileList = Directory::getList($modulePath);
     return $fileList;
 }