jcb-compiler/src/380bb7a3-cdcc-4336-a699-507.../README.md

90 lines
2.5 KiB
Markdown

```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
# final class Insert (Details)
> namespace: **VDM\Joomla\Componentbuilder\Power\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) : bool
+ rows(?array $items) : bool
+ item(object $item) : bool
+ items(?array $items) : bool
}
note right of Insert::__construct
Constructor
since: 3.2.0
end note
note right of Insert::value
Insert a value to a given table
Example: $this->value(Value, 'value_key', 'GUID');
since: 3.2.0
return: bool
arguments:
mixed $value
string $field
string $keyValue
string $key = 'guid'
end note
note right of Insert::row
Insert single row with multiple values to a given table
Example: $this->item(Array);
since: 3.2.0
return: bool
end note
note right of Insert::rows
Insert multiple rows to a given table
Example: $this->items(Array);
since: 3.2.0
return: bool
end note
note right of Insert::item
Insert single item with multiple values to a given table
Example: $this->item(Object);
since: 3.2.0
return: bool
end note
note right of Insert::items
Insert multiple items to a given table
Example: $this->items(Array);
since: 3.2.0
return: bool
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)