pacKman/src/My.php

48 lines
896 B
PHP
Raw Normal View History

2023-03-11 17:46:23 +00:00
<?php
/**
* @brief pacKman, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
declare(strict_types=1);
namespace Dotclear\Plugin\pacKman;
use dcCore;
class My
{
2023-03-16 22:56:25 +00:00
/** @var string Required php version */
public const PHP_MIN = '8.1';
2023-03-11 17:46:23 +00:00
/** @var array Excluded files */
public const EXCLUDED_FILES = [
'.',
'..',
'__MACOSX',
'.svn',
'.hg*',
'.git*',
'CVS',
'.DS_Store',
'Thumbs.db',
'_disabled',
];
2023-03-16 23:00:34 +00:00
public static function id(): string
2023-03-11 17:46:23 +00:00
{
return basename(dirname(__DIR__));
}
2023-03-16 23:00:34 +00:00
public static function name(): string
2023-03-11 17:46:23 +00:00
{
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
}
}