4
0
api-powers/src/a07d90f6-6ff2-40a1-99c1-0f2cf33c9adf/README.md
2024-04-06 15:05:35 +02:00

89 lines
2.6 KiB
Markdown

```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
# final class Insert (Details)
> namespace: **TrueChristianChurch\Joomla\GetBible\Database**
```uml
@startuml
class Insert << (F,LightGreen) >> #RoyalBlue {
# Model $model
# Database $database
+ __construct(Model $model, Database $database)
+ value(mixed $value, string $field, ...) : bool
+ row(array $item, string $table) : bool
+ rows(?array $items, string $table) : bool
+ item(object $item, string $table) : bool
+ items(?array $items, string $table) : bool
}
note right of Insert::__construct
Constructor
since: 2.0.1
end note
note right of Insert::value
Insert a value to a given table
Example: $this->value(Value, 'value_key', 'table_name');
since: 2.0.1
return: bool
arguments:
mixed $value
string $field
string $table
end note
note right of Insert::row
Insert single row with multiple values to a given table
Example: $this->item(Array, 'table_name');
since: 2.0.1
return: bool
end note
note right of Insert::rows
Insert multiple rows to a given table
Example: $this->items(Array, 'table_name');
since: 2.0.1
return: bool
end note
note right of Insert::item
Insert single item with multiple values to a given table
Example: $this->item(Object, 'table_name');
since: 2.0.1
return: bool
end note
note right of Insert::items
Insert multiple items to a given table
Example: $this->items(Array, 'table_name');
since: 2.0.1
return: bool
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)