2023-09-26 06:24:03 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
|
|
|
# final class Load (Details)
|
2024-04-06 13:05:35 +00:00
|
|
|
> namespace: **TrueChristianChurch\Joomla\GetBible\Model**
|
2023-10-07 12:23:18 +00:00
|
|
|
> extends: **Model**
|
2023-09-26 06:24:03 +00:00
|
|
|
```uml
|
|
|
|
@startuml
|
2023-10-07 12:23:18 +00:00
|
|
|
class Load << (F,LightGreen) >> #RoyalBlue {
|
2023-09-26 06:24:03 +00:00
|
|
|
# Config $config
|
|
|
|
+ __construct(Config $config, Table $table)
|
|
|
|
+ value(mixed $value, string $field, ...) : mixed
|
|
|
|
# validateBefore(mixed $value, ?string $field = null, ...) : bool
|
|
|
|
# validateAfter(mixed $value, ?string $field = null, ...) : bool
|
|
|
|
# getTable() : string
|
|
|
|
+ modelDistributionHistory(mixed $value) : mixed
|
|
|
|
}
|
|
|
|
|
|
|
|
note right of Load::__construct
|
|
|
|
Constructor
|
|
|
|
|
|
|
|
since: 2.0.1
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Load::value
|
|
|
|
Model the value
|
|
|
|
Example: $this->value(value, 'field_key', 'table_name');
|
|
|
|
|
|
|
|
since: 2.0.1
|
|
|
|
return: mixed
|
|
|
|
|
|
|
|
arguments:
|
|
|
|
mixed $value
|
|
|
|
string $field
|
|
|
|
?string $table = null
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Load::validateBefore
|
|
|
|
Validate before the value is modelled
|
|
|
|
|
|
|
|
since: 2.0.1
|
|
|
|
return: bool
|
|
|
|
|
|
|
|
arguments:
|
|
|
|
mixed $value
|
|
|
|
?string $field = null
|
|
|
|
?string $table = null
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Load::validateAfter
|
|
|
|
Validate after the value is modelled
|
|
|
|
|
|
|
|
since: 2.0.1
|
|
|
|
return: bool
|
|
|
|
|
|
|
|
arguments:
|
|
|
|
mixed $value
|
|
|
|
?string $field = null
|
|
|
|
?string $table = null
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Load::getTable
|
|
|
|
Get the current active table
|
|
|
|
|
|
|
|
since: 2.0.1
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Load::modelDistributionHistory
|
|
|
|
Model Distribution History
|
|
|
|
|
|
|
|
since: 2.0.1
|
|
|
|
return: mixed
|
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|