45 lines
801 B
PHP
45 lines
801 B
PHP
|
<?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
|
||
|
{
|
||
|
/** @var array Excluded files */
|
||
|
public const EXCLUDED_FILES = [
|
||
|
'.',
|
||
|
'..',
|
||
|
'__MACOSX',
|
||
|
'.svn',
|
||
|
'.hg*',
|
||
|
'.git*',
|
||
|
'CVS',
|
||
|
'.DS_Store',
|
||
|
'Thumbs.db',
|
||
|
'_disabled',
|
||
|
];
|
||
|
|
||
|
public static function id()
|
||
|
{
|
||
|
return basename(dirname(__DIR__));
|
||
|
}
|
||
|
|
||
|
public static function name()
|
||
|
{
|
||
|
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
|
||
|
}
|
||
|
}
|