From 6a673b4230edc50d37576cada747c79be70c2c42 Mon Sep 17 00:00:00 2001 From: aB0t Date: Tue, 25 Jul 2023 20:14:10 +0200 Subject: [PATCH] update 2023-07-25 20:14:10 --- .../code.php | 4 +- .../code.power | 4 +- .../README.md | 23 +++++++++-- .../code.php | 39 +++++++++++++++++++ .../code.power | 39 +++++++++++++++++++ .../code.php | 2 +- .../code.power | 2 +- .../code.php | 2 +- .../code.power | 2 +- 9 files changed, 106 insertions(+), 11 deletions(-) diff --git a/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.php b/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.php index db3d06a..41f9deb 100644 --- a/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.php +++ b/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.php @@ -131,7 +131,7 @@ final class Tagged if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_ACCESS_TO_PERFORM_THIS_ACTION'), + 'error' => Text::_("COM_GETBIBLE_WITHOUT_SELECTING_THE_CORRECT_FAVOURITE_VERSE_YOU_CANT_PERFORM_THE_INITIAL_ACTION"), 'access_required' => true ]; } @@ -187,7 +187,7 @@ final class Tagged if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_ACCESS_TO_PERFORM_THIS_ACTION'), + 'error' => Text::_("COM_GETBIBLE_WITHOUT_SELECTING_THE_CORRECT_FAVOURITE_VERSE_YOU_CANT_PERFORM_THE_INITIAL_ACTION"), 'access_required' => true ]; } diff --git a/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.power b/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.power index 09b9ff6..040d7f8 100644 --- a/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.power +++ b/src/2315a1c5-bcf6-401a-8d11-60f4d6d12dbb/code.power @@ -98,7 +98,7 @@ if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('You do not have access to perform this action'), + 'error' => Text::_("Without selecting the correct favourite verse, you can't perform the initial action."), 'access_required' => true ]; } @@ -154,7 +154,7 @@ if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('You do not have access to perform this action'), + 'error' => Text::_("Without selecting the correct favourite verse, you can't perform the initial action."), 'access_required' => true ]; } diff --git a/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/README.md b/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/README.md index a1c29a4..874aac2 100644 --- a/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/README.md +++ b/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/README.md @@ -15,10 +15,13 @@ class Linker << (F,LightGreen) >> #Green { # Insert $insert # Update $update # Session $session + # bool $trigger + __construct(Load $load, Insert $insert, ...) + + share() : bool + get() : ?string + active(bool $setup = true) : ?string + valid(string $linker) : bool + + trigger(string $linker) : bool + set(string $linker) : bool + access(string $linker, string $pass, ...) : ?array - hasAccess(string $linker, string $pass) : bool @@ -40,27 +43,41 @@ note right of Linker::__construct Session $session end note -note left of Linker::get +note left of Linker::share + The Share His Word Trigger + + since: 2.0.1 + return: bool +end note + +note right of Linker::get Get Linker that has Access since: 2.0.1 return: ?string end note -note right of Linker::active +note left of Linker::active Get active Linker since: 2.0.1 return: ?string end note -note left of Linker::valid +note right of Linker::valid Check if a Linker is valid active linker since: 2.0.1 return: bool end note +note left of Linker::trigger + The Share His Word Trigger + + since: 2.0.1 + return: bool +end note + note right of Linker::set Set Active Linker diff --git a/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.php b/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.php index 28d6142..ec68777 100644 --- a/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.php +++ b/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.php @@ -60,6 +60,14 @@ final class Linker */ protected Session $session; + /** + * The Share His Word Trigger + * + * @var bool + * @since 2.0.1 + */ + protected bool $trigger = false; + /** * Constructor * @@ -82,6 +90,17 @@ final class Linker $this->session = $session; } + /** + * The Share His Word Trigger + * + * @return bool True on success + * @since 2.0.1 + **/ + public function share(): bool + { + return $this->trigger; + } + /** * Get Linker that has Access * @@ -152,6 +171,26 @@ final class Linker return false; } + /** + * The Share His Word Trigger + * + * @param string $linker The linker GUID value + * + * @return bool True on success + * @since 2.0.1 + **/ + public function trigger(string $linker): bool + { + if (!$this->set($linker)) + { + return false; + } + + $this->trigger = true; + + return true; + } + /** * Set Active Linker * diff --git a/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.power b/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.power index 8ec4271..f2c125e 100644 --- a/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.power +++ b/src/36ab759f-7b42-4465-9c17-56ba1dd05f90/code.power @@ -30,6 +30,14 @@ */ protected Session $session; + /** + * The Share His Word Trigger + * + * @var bool + * @since 2.0.1 + */ + protected bool $trigger = false; + /** * Constructor * @@ -52,6 +60,17 @@ $this->session = $session; } + /** + * The Share His Word Trigger + * + * @return bool True on success + * @since 2.0.1 + **/ + public function share(): bool + { + return $this->trigger; + } + /** * Get Linker that has Access * @@ -122,6 +141,26 @@ return false; } + /** + * The Share His Word Trigger + * + * @param string $linker The linker GUID value + * + * @return bool True on success + * @since 2.0.1 + **/ + public function trigger(string $linker): bool + { + if (!$this->set($linker)) + { + return false; + } + + $this->trigger = true; + + return true; + } + /** * Set Active Linker * diff --git a/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.php b/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.php index b9db31a..b2fb49a 100644 --- a/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.php +++ b/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.php @@ -95,7 +95,7 @@ final class Tag if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_ACCESS_TO_PERFORM_THIS_ACTION'), + 'error' => Text::_("COM_GETBIBLE_WITHOUT_SELECTING_THE_CORRECT_FAVOURITE_VERSE_YOU_CANT_PERFORM_THE_INITIAL_ACTION"), 'access_required' => true ]; } diff --git a/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.power b/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.power index 4381033..72487d6 100644 --- a/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.power +++ b/src/67f91b8b-7b48-4dbb-bbd5-7945c174622a/code.power @@ -66,7 +66,7 @@ if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('You do not have access to perform this action'), + 'error' => Text::_("Without selecting the correct favourite verse, you can't perform the initial action."), 'access_required' => true ]; } diff --git a/src/ebda6bd8-95b9-468b-a521-974205146018/code.php b/src/ebda6bd8-95b9-468b-a521-974205146018/code.php index e0512f7..b51a050 100644 --- a/src/ebda6bd8-95b9-468b-a521-974205146018/code.php +++ b/src/ebda6bd8-95b9-468b-a521-974205146018/code.php @@ -103,7 +103,7 @@ final class Note if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('COM_GETBIBLE_YOU_DO_NOT_HAVE_ACCESS_TO_PERFORM_THIS_ACTION'), + 'error' => Text::_("COM_GETBIBLE_WITHOUT_SELECTING_THE_CORRECT_FAVOURITE_VERSE_YOU_CANT_PERFORM_THE_INITIAL_ACTION"), 'access_required' => true ]; } diff --git a/src/ebda6bd8-95b9-468b-a521-974205146018/code.power b/src/ebda6bd8-95b9-468b-a521-974205146018/code.power index df05e12..3d24e34 100644 --- a/src/ebda6bd8-95b9-468b-a521-974205146018/code.power +++ b/src/ebda6bd8-95b9-468b-a521-974205146018/code.power @@ -74,7 +74,7 @@ if (($linker = $this->linker->get()) === null) { return [ - 'error' => Text::_('You do not have access to perform this action'), + 'error' => Text::_("Without selecting the correct favourite verse, you can't perform the initial action."), 'access_required' => true ]; }