super-powers/src/af0eedbe-603b-4671-8e5a-281.../README.md

94 lines
2.8 KiB
Markdown
Raw Normal View History

2023-10-04 18:23:30 +00:00
```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
2023-10-10 09:39:09 +00:00
# interface Activeregistryinterface (Details)
2023-10-04 18:23:30 +00:00
> namespace: **VDM\Joomla\Interfaces**
```uml
@startuml
2023-10-10 09:39:09 +00:00
interface Activeregistryinterface #Lavender {
2023-10-04 18:23:30 +00:00
+ isActive() : bool
+ allActive() : array
+ setActive(mixed $value, $keys) : void
2024-01-27 07:08:12 +00:00
+ addActive(mixed $value, ?bool $asArray, ...) : void
2023-10-04 18:23:30 +00:00
+ getActive(mixed $default, $keys) : mixed
+ removeActive($keys) : void
+ existsActive($keys) : bool
}
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::isActive
Check if the registry has any content.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: bool
end note
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::allActive
Retrieves all value from the registry.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: array
end note
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::setActive
Sets a value into the registry using multiple keys.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: void
end note
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::addActive
Adds content into the registry. If a key exists,
2023-10-04 18:23:30 +00:00
it either appends or concatenates based on the value's type.
2024-01-27 07:08:12 +00:00
Default is $addAsArray = false (if null) in base class.
Override in child class allowed set class property $addAsArray = true.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: void
arguments:
mixed $value
2024-01-27 07:08:12 +00:00
?bool $asArray
2023-10-04 18:23:30 +00:00
$keys
end note
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::getActive
Retrieves a value (or sub-array) from the registry using multiple keys.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: mixed
end note
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::removeActive
Removes a value (or sub-array) from the registry using multiple keys.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: void
end note
2023-10-10 09:39:09 +00:00
note right of Activeregistryinterface::existsActive
Checks the existence of a particular location in the registry using multiple keys.
2023-10-04 18:23:30 +00:00
since: 3.2.0
return: bool
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)