4
0
Fork 0

update 2023-07-25 20:14:10

This commit is contained in:
Robot 2023-07-25 20:14:10 +02:00
parent babf6ca09b
commit 6a673b4230
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
9 changed files with 106 additions and 11 deletions

View File

@ -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
];
}

View File

@ -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
];
}

View File

@ -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

View File

@ -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
*

View File

@ -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
*

View File

@ -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
];
}

View File

@ -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
];
}

View File

@ -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
];
}

View File

@ -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
];
}