jcb-compiler/src/7c1fb50f-8fb1-4627-8705-6fe.../README.md

79 lines
2.3 KiB
Markdown
Raw Permalink Normal View History

2023-04-29 23:34:15 +00:00
```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
2023-10-04 18:28:29 +00:00
# final class Upsert (Details)
> namespace: **VDM\Joomla\Componentbuilder\Power\Model**
> extends: **AbstractionModel**
2023-04-29 23:34:15 +00:00
```uml
@startuml
2023-10-04 18:28:29 +00:00
class Upsert << (F,LightGreen) >> #RoyalBlue {
2023-04-29 23:34:15 +00:00
+ value(mixed $value, string $field, ...) : mixed
# validateBefore(mixed $value, ?string $field = null, ...) : bool
# validateAfter(mixed $value, ?string $field = null, ...) : bool
# getTable() : string
}
2023-10-04 18:28:29 +00:00
note right of Upsert::value
2023-04-29 23:34:15 +00:00
Model the value
Example: $this->value(value, 'field_key', 'table_name');
since: 3.2.0
return: mixed
arguments:
mixed $value
string $field
?string $table = null
end note
2023-10-04 18:28:29 +00:00
note right of Upsert::validateBefore
2023-04-29 23:34:15 +00:00
Validate before the value is modelled
since: 3.2.0
return: bool
arguments:
mixed $value
?string $field = null
?string $table = null
end note
2023-10-04 18:28:29 +00:00
note right of Upsert::validateAfter
2023-04-29 23:34:15 +00:00
Validate after the value is modelled
since: 3.2.0
return: bool
arguments:
mixed $value
?string $field = null
?string $table = null
end note
2023-10-04 18:28:29 +00:00
note right of Upsert::getTable
2023-04-29 23:34:15 +00:00
Get the current active table
since: 3.2.0
return: string
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)