39 lines
688 B
PHP
39 lines
688 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @brief dcLog, a plugin for Dotclear 2
|
||
|
*
|
||
|
* @package Dotclear
|
||
|
* @subpackage Plugin
|
||
|
*
|
||
|
* @author Tomtom 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\dcLog;
|
||
|
|
||
|
use dcCore;
|
||
|
|
||
|
class My
|
||
|
{
|
||
|
public const BACKEND_LIST_ID = 'dcloglist';
|
||
|
|
||
|
/**
|
||
|
* This module id
|
||
|
*/
|
||
|
public static function id(): string
|
||
|
{
|
||
|
return basename(dirname(__DIR__));
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* This module name
|
||
|
*/
|
||
|
public static function name(): string
|
||
|
{
|
||
|
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
|
||
|
}
|
||
|
}
|