update 2023-07-25 20:14:10
This commit is contained in:
parent
babf6ca09b
commit
6a673b4230
@ -131,7 +131,7 @@ final class Tagged
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -187,7 +187,7 @@ final class Tagged
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -154,7 +154,7 @@
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,13 @@ class Linker << (F,LightGreen) >> #Green {
|
|||||||
# Insert $insert
|
# Insert $insert
|
||||||
# Update $update
|
# Update $update
|
||||||
# Session $session
|
# Session $session
|
||||||
|
# bool $trigger
|
||||||
+ __construct(Load $load, Insert $insert, ...)
|
+ __construct(Load $load, Insert $insert, ...)
|
||||||
|
+ share() : bool
|
||||||
+ get() : ?string
|
+ get() : ?string
|
||||||
+ active(bool $setup = true) : ?string
|
+ active(bool $setup = true) : ?string
|
||||||
+ valid(string $linker) : bool
|
+ valid(string $linker) : bool
|
||||||
|
+ trigger(string $linker) : bool
|
||||||
+ set(string $linker) : bool
|
+ set(string $linker) : bool
|
||||||
+ access(string $linker, string $pass, ...) : ?array
|
+ access(string $linker, string $pass, ...) : ?array
|
||||||
- hasAccess(string $linker, string $pass) : bool
|
- hasAccess(string $linker, string $pass) : bool
|
||||||
@ -40,27 +43,41 @@ note right of Linker::__construct
|
|||||||
Session $session
|
Session $session
|
||||||
end note
|
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
|
Get Linker that has Access
|
||||||
|
|
||||||
since: 2.0.1
|
since: 2.0.1
|
||||||
return: ?string
|
return: ?string
|
||||||
end note
|
end note
|
||||||
|
|
||||||
note right of Linker::active
|
note left of Linker::active
|
||||||
Get active Linker
|
Get active Linker
|
||||||
|
|
||||||
since: 2.0.1
|
since: 2.0.1
|
||||||
return: ?string
|
return: ?string
|
||||||
end note
|
end note
|
||||||
|
|
||||||
note left of Linker::valid
|
note right of Linker::valid
|
||||||
Check if a Linker is valid active linker
|
Check if a Linker is valid active linker
|
||||||
|
|
||||||
since: 2.0.1
|
since: 2.0.1
|
||||||
return: bool
|
return: bool
|
||||||
end note
|
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
|
note right of Linker::set
|
||||||
Set Active Linker
|
Set Active Linker
|
||||||
|
|
||||||
|
@ -60,6 +60,14 @@ final class Linker
|
|||||||
*/
|
*/
|
||||||
protected Session $session;
|
protected Session $session;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Share His Word Trigger
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
* @since 2.0.1
|
||||||
|
*/
|
||||||
|
protected bool $trigger = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@ -82,6 +90,17 @@ final class Linker
|
|||||||
$this->session = $session;
|
$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
|
* Get Linker that has Access
|
||||||
*
|
*
|
||||||
@ -152,6 +171,26 @@ final class Linker
|
|||||||
return false;
|
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
|
* Set Active Linker
|
||||||
*
|
*
|
||||||
|
@ -30,6 +30,14 @@
|
|||||||
*/
|
*/
|
||||||
protected Session $session;
|
protected Session $session;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The Share His Word Trigger
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
* @since 2.0.1
|
||||||
|
*/
|
||||||
|
protected bool $trigger = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
@ -52,6 +60,17 @@
|
|||||||
$this->session = $session;
|
$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
|
* Get Linker that has Access
|
||||||
*
|
*
|
||||||
@ -122,6 +141,26 @@
|
|||||||
return false;
|
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
|
* Set Active Linker
|
||||||
*
|
*
|
||||||
|
@ -95,7 +95,7 @@ final class Tag
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ final class Note
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
if (($linker = $this->linker->get()) === null)
|
if (($linker = $this->linker->get()) === null)
|
||||||
{
|
{
|
||||||
return [
|
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
|
'access_required' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user