plugins->moduleInfo(self::id(), 'name')); } /** * List of allowed backup folder */ public static function backupFoldersCombo(): array { return [ __('locales folders of each module') => 'module', __('plugins folder root') => 'plugin', __('public folder root') => 'public', __('cache folder of Dotclear') => 'cache', __('locales folder of translater') => self::id(), ]; } /** * List of possible home tab of the plugin */ public static function startPageCombo() { return [ __('Plugins') => 'plugin', __('Themes') => 'theme', __('Home') => '-', ]; } /** * List of place of tranlsations */ public static function l10nGroupsCombo(): array { $groups = [ 'main', 'public', 'theme', 'admin', 'date', 'error', ]; return array_combine($groups, $groups); } /** * List of user info can be parsed */ public static function defaultUserInformations(): array { return [ 'firstname', 'displayname', 'name', 'email', 'url', ]; } /** * List of distributed plugins and themes */ public static function defaultDistribModules(string $type): array { $types = [ 'plugin' => explode(',', DC_DISTRIB_PLUGINS), 'theme' => explode(',', DC_DISTRIB_THEMES), ]; return $types[$type] ?? []; } }