jcb-compiler/src/1f86db0f-e271-45df-8795-3e5.../README.md

90 lines
2.4 KiB
Markdown
Raw Normal View History

2023-03-21 22:52:57 +00:00
```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
2023-10-04 18:28:29 +00:00
# final class Load (Details)
> namespace: **VDM\Joomla\Componentbuilder\Power\Database**
2023-03-21 22:52:57 +00:00
```uml
@startuml
2023-10-04 18:28:29 +00:00
class Load << (F,LightGreen) >> #RoyalBlue {
# Model $model
# Database $load
+ __construct(Model $model, Database $load)
+ value(array $keys, string $field) : mixed
+ item(array $keys) : ?object
+ items(array $keys) : ?array
- prefix(array $keys) : array
2023-03-21 22:52:57 +00:00
}
2023-10-04 18:28:29 +00:00
note right of Load::__construct
Constructor
2023-10-04 18:28:29 +00:00
since: 2.0.1
end note
2023-10-04 18:28:29 +00:00
note right of Load::value
Get a value from a given table
Example: $this->value(
[
'guid' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
], 'value_key'
);
2023-03-21 22:52:57 +00:00
2023-10-04 18:28:29 +00:00
since: 2.0.1
return: mixed
2023-03-21 22:52:57 +00:00
end note
2023-10-04 18:28:29 +00:00
note right of Load::item
Get values from a given table
Example: $this->item(
[
'guid' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
]
);
2023-03-21 22:52:57 +00:00
2023-10-04 18:28:29 +00:00
since: 2.0.1
return: ?object
2023-03-21 22:52:57 +00:00
end note
2023-10-04 18:28:29 +00:00
note right of Load::items
Get values from a given table
Example: $this->items(
[
'guid' => [
'operator' => 'IN',
'value' => [''xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'', ''xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'']
]
]
);
Example: $this->items($ids, 'table_name');
2023-10-04 18:28:29 +00:00
since: 2.0.1
return: ?array
end note
2023-10-04 18:28:29 +00:00
note right of Load::prefix
Add prefix to the keys
2023-03-21 22:52:57 +00:00
2023-10-04 18:28:29 +00:00
since: 2.0.1
return: array
2023-03-21 22:52:57 +00:00
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)