Compare commits

...

2 Commits

Author SHA1 Message Date
12c0c3ba23
cosmetic code doc 2023-11-04 11:38:47 +01:00
c824b8a57f
release 1.7.2 2023-10-13 20:29:13 +02:00
9 changed files with 35 additions and 30 deletions

View File

@ -1,3 +1,15 @@
dcLog 1.7.3 - 2023.11.04
===========================================================
* Require Dotclear 2.28
* Require PHP 8.1
* Cosmetic code doc
dcLog 1.7.2 - 2023.10.13
===========================================================
* Require Dotclear 2.28
* Require PHP 8.1
* Upgrade to last minute change to Dotclear 2.28
dcLog 1.7.1 - 2023.10.11 dcLog 1.7.1 - 2023.10.11
=========================================================== ===========================================================
* Require Dotclear 2.28 * Require Dotclear 2.28

View File

@ -1,7 +1,7 @@
# README # README
[![Release](https://img.shields.io/badge/release-1.7-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcLog/releases) [![Release](https://img.shields.io/badge/release-1.7.3-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcLog/releases)
![Date](https://img.shields.io/badge/date-2023.10.07-c44d58.svg) ![Date](https://img.shields.io/badge/date-2023.11.04-c44d58.svg)
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download) [![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/dcLog) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/dcLog)
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/dcLog/src/branch/master/LICENSE) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/dcLog/src/branch/master/LICENSE)
@ -16,7 +16,7 @@ _dcLog_ is a plugin for the open-source web publishing software called [Dotclear
* PHP 8.1+ * PHP 8.1+
* Dotclear 2.28 * Dotclear 2.28
* super admin permission * Dotclear super admin permission
## USAGE ## USAGE

View File

@ -18,7 +18,7 @@ $this->registerModule(
"Dotclear's logs", "Dotclear's logs",
'Displays Dotclear logs', 'Displays Dotclear logs',
'Tomtom and Contributors', 'Tomtom and Contributors',
'1.7.1', '1.7.3',
[ [
'requires' => [['core', '2.28']], 'requires' => [['core', '2.28']],
'permissions' => null, 'permissions' => null,

View File

@ -2,10 +2,10 @@
<modules xmlns:da="http://dotaddict.org/da/"> <modules xmlns:da="http://dotaddict.org/da/">
<module id="dcLog"> <module id="dcLog">
<name>Dotclear's logs</name> <name>Dotclear's logs</name>
<version>1.7.1</version> <version>1.7.3</version>
<author>Tomtom and Contributors</author> <author>Tomtom and Contributors</author>
<desc>Displays Dotclear logs</desc> <desc>Displays Dotclear logs</desc>
<file>https://git.dotclear.watch/JcDenis/dcLog/releases/download/v1.7.1/plugin-dcLog.zip</file> <file>https://git.dotclear.watch/JcDenis/dcLog/releases/download/v1.7.3/plugin-dcLog.zip</file>
<da:dcmin>2.28</da:dcmin> <da:dcmin>2.28</da:dcmin>
<da:details>https://git.dotclear.watch/JcDenis/dcLog/src/branch/master/README.md</da:details> <da:details>https://git.dotclear.watch/JcDenis/dcLog/src/branch/master/README.md</da:details>
<da:support>https://git.dotclear.watch/JcDenis/dcLog/issues</da:support> <da:support>https://git.dotclear.watch/JcDenis/dcLog/issues</da:support>

View File

@ -10,8 +10,8 @@ use Dotclear\Core\Process;
use Dotclear\Core\Backend\Favorites; use Dotclear\Core\Backend\Favorites;
/** /**
* @brief dcLog backend class. * @brief dcLog backend class.
* @ingroup dcLog * @ingroup dcLog
* *
* @author Tomtom (author) * @author Tomtom (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)
@ -30,7 +30,7 @@ class Backend extends Process
return false; return false;
} }
My::addBackendMenuItem(App::backend()->menus::MENU_SYSTEM); My::addBackendMenuItem(App::backend()->menus()::MENU_SYSTEM);
App::behavior()->addBehaviors([ App::behavior()->addBehaviors([
// backend user preference for logs list columns // backend user preference for logs list columns

View File

@ -20,8 +20,8 @@ use Dotclear\Helper\Html\Form\{
}; };
/** /**
* @brief dcLog logs list class. * @brief dcLog logs list class.
* @ingroup dcLog * @ingroup dcLog
* *
* @author Tomtom (author) * @author Tomtom (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -1,15 +1,5 @@
<?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); declare(strict_types=1);
namespace Dotclear\Plugin\dcLog; namespace Dotclear\Plugin\dcLog;
@ -31,8 +21,8 @@ use Dotclear\Helper\Html\Form\{
use Exception; use Exception;
/** /**
* @brief dcLog manage class. * @brief dcLog manage class.
* @ingroup dcLog * @ingroup dcLog
* *
* @author Tomtom (author) * @author Tomtom (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -13,8 +13,8 @@ use Dotclear\Database\MetaRecord;
use Exception; use Exception;
/** /**
* @brief dcLog properties helper. * @brief dcLog properties helper.
* @ingroup dcLog * @ingroup dcLog
* *
* @author Tomtom (author) * @author Tomtom (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)

View File

@ -8,8 +8,8 @@ use Dotclear\App;
use Dotclear\Module\MyPlugin; use Dotclear\Module\MyPlugin;
/** /**
* @brief dcLog My helper. * @brief dcLog My helper.
* @ingroup dcLog * @ingroup dcLog
* *
* @author Tomtom (author) * @author Tomtom (author)
* @author Jean-Christian Denis (latest) * @author Jean-Christian Denis (latest)
@ -26,7 +26,10 @@ class My extends MyPlugin
public static function checkCustomContext(int $context): ?bool public static function checkCustomContext(int $context): ?bool
{ {
// Limit module to super admin return match ($context) {
return App::auth()->isSuperAdmin(); // Limit to super admin
self::MODULE => App::auth()->isSuperAdmin(),
default => null,
};
} }
} }