2023-04-16 00:48:32 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @brief dcAdvancedCleaner, a plugin for Dotclear 2
|
|
|
|
*
|
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
|
|
|
*
|
|
|
|
* @author Jean-Christian Denis and Contributors
|
|
|
|
*
|
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Dotclear\Plugin\dcAdvancedCleaner;
|
|
|
|
|
|
|
|
use dcCore;
|
|
|
|
|
|
|
|
/**
|
2023-05-08 08:26:31 +00:00
|
|
|
* This module definitions.
|
2023-04-16 00:48:32 +00:00
|
|
|
*/
|
|
|
|
class My
|
|
|
|
{
|
|
|
|
/**
|
2023-05-08 08:26:31 +00:00
|
|
|
* This module id.
|
2023-04-16 00:48:32 +00:00
|
|
|
*/
|
|
|
|
public static function id(): string
|
|
|
|
{
|
|
|
|
return basename(dirname(__DIR__));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2023-05-08 08:26:31 +00:00
|
|
|
* This module name.
|
2023-04-16 00:48:32 +00:00
|
|
|
*/
|
|
|
|
public static function name(): string
|
|
|
|
{
|
2023-05-01 17:34:54 +00:00
|
|
|
$name = dcCore::app()->plugins->moduleInfo(self::id(), 'name');
|
|
|
|
|
|
|
|
return __(is_string($name) ? $name : self::id());
|
2023-04-16 00:48:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2023-05-08 08:26:31 +00:00
|
|
|
* This module path.
|
2023-04-16 00:48:32 +00:00
|
|
|
*/
|
2023-05-08 08:26:31 +00:00
|
|
|
public static function path(): string
|
2023-04-16 00:48:32 +00:00
|
|
|
{
|
|
|
|
return dirname(__DIR__);
|
|
|
|
}
|
|
|
|
}
|