芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.5/modules/mod_sampledata/src/Helper/SampledataHelper.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Module\Sampledata\Administrator\Helper; \defined('_JEXEC') or die; use Joomla\CMS\Event\AbstractEvent; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; /** * Helper for mod_sampledata * * @since 3.8.0 */ abstract class SampledataHelper { /** * Get a list of sampledata. * * @return mixed An array of sampledata, or false on error. * * @since 3.8.0 */ public static function getList() { PluginHelper::importPlugin('sampledata'); return Factory::getApplication() ->getDispatcher() ->dispatch( 'onSampledataGetOverview', AbstractEvent::create( 'onSampledataGetOverview', [ 'subject' => new \stdClass, ] ) ) ->getArgument('result') ?? []; } }