From 02f377d6e53df9a2c89b773495d8c28d60599024 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 5 Mar 2021 21:01:37 +0100 Subject: [PATCH] fix php version, lang files, basic tpl and sales impl. --- Admin/Install/db.json | 5 +++++ Models/EditorDoc.php | 8 ++++++++ Models/EditorDocMapper.php | 1 + Theme/Backend/Lang/de.lang.php | 1 + Theme/Backend/Lang/en.lang.php | 3 ++- 5 files changed, 17 insertions(+), 1 deletion(-) mode change 100755 => 100644 Theme/Backend/Lang/de.lang.php mode change 100755 => 100644 Theme/Backend/Lang/en.lang.php 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',