diff --git a/Admin/Install/db.json b/Admin/Install/db.json index 3d2c8da..4c7b51b 100755 --- a/Admin/Install/db.json +++ b/Admin/Install/db.json @@ -40,6 +40,11 @@ "name": "editor_doc_created_at", "type": "DATETIME", "null": false + }, + "editor_doc_visible": { + "name": "editor_doc_visible", + "type": "TINYINT", + "null": false } } }, diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index 8e23ebf..3223107 100755 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -69,6 +69,14 @@ class EditorDoc implements \JsonSerializable, ArrayableInterface */ private string $virtualPath = '/'; + /** + * Doc is visible in editor doc list. + * + * @var bool + * @since 1.0.0 + */ + public bool $isVisible = true; + /** * Created. * diff --git a/Models/EditorDocMapper.php b/Models/EditorDocMapper.php index a547270..0febae4 100755 --- a/Models/EditorDocMapper.php +++ b/Models/EditorDocMapper.php @@ -43,6 +43,7 @@ final class EditorDocMapper extends DataMapperAbstract 'editor_doc_content' => ['name' => 'editor_doc_content', 'type' => 'string', 'internal' => 'content'], 'editor_doc_virtual' => ['name' => 'editor_doc_virtual', 'type' => 'string', 'internal' => 'virtualPath'], 'editor_doc_created_at' => ['name' => 'editor_doc_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true], + 'editor_doc_visible' => ['name' => 'editor_doc_visible', 'type' => 'bool', 'internal' => 'isVisible'], ]; /** diff --git a/Theme/Backend/Lang/de.lang.php b/Theme/Backend/Lang/de.lang.php old mode 100755 new mode 100644 index f248981..e11b24f --- a/Theme/Backend/Lang/de.lang.php +++ b/Theme/Backend/Lang/de.lang.php @@ -4,6 +4,7 @@ * * PHP Version 8.0 * + * @package Modules\Localization * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php old mode 100755 new mode 100644 index d691e40..1d66138 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -4,6 +4,7 @@ * * PHP Version 8.0 * + * @package Modules\Localization * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -12,7 +13,7 @@ declare(strict_types=1); return ['Editor' => [ - 'Add' => '', + 'Add' => 'Add', 'Created' => 'Created', 'Creator' => 'Creator', 'Documents' => 'Documents',