2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
|
|
|
# class Readme (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Power\Repos**
|
|
|
|
```uml
|
|
|
|
@startuml
|
|
|
|
class Readme #Gold {
|
|
|
|
# Power $power
|
|
|
|
# Plantuml $plantuml
|
|
|
|
+ __construct(?Power $power = null, ?Plantuml $plantuml = null)
|
|
|
|
+ get(array $powers) : string
|
|
|
|
- readmeBuilder($powers) : string
|
|
|
|
- readmeModel(array $classes) : string
|
|
|
|
- generateIndex(array $classes) : string
|
|
|
|
- defineTypeOrder() : array
|
|
|
|
- sortClasses(array $classes, array $typeOrder) : void
|
|
|
|
- compareNamespace(array $a, array $b) : int
|
|
|
|
- compareType(array $a, array $b, ...) : int
|
|
|
|
- compareName(array $a, array $b) : int
|
2023-10-04 18:28:29 +00:00
|
|
|
- indexLinkPower(array $power) : string
|
|
|
|
- linkPowerRepo(array $power) : string
|
|
|
|
- linkPowerCode(array $power) : string
|
|
|
|
- linkPowerSettings(array $power) : string
|
|
|
|
- linkPowerSPK(array $power) : string
|
2023-03-21 22:52:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
note right of Readme::__construct
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Readme::get
|
|
|
|
Get Super Power Readme
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Readme::readmeBuilder
|
|
|
|
The readme builder
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Readme::readmeModel
|
|
|
|
Sort and model the readme classes
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Readme::generateIndex
|
|
|
|
Generate the index string for classes
|
|
|
|
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note left of Readme::defineTypeOrder
|
2023-03-21 22:52:57 +00:00
|
|
|
Define the order of types for sorting purposes
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: array
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Readme::sortClasses
|
2023-03-21 22:52:57 +00:00
|
|
|
Sort the flattened array using a single sorting function
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note left of Readme::compareNamespace
|
2023-03-21 22:52:57 +00:00
|
|
|
Compare the namespace of two classes
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: int
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Readme::compareType
|
2023-03-21 22:52:57 +00:00
|
|
|
Compare the type of two classes
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: int
|
|
|
|
|
|
|
|
arguments:
|
|
|
|
array $a
|
|
|
|
array $b
|
|
|
|
array $typeOrder
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note left of Readme::compareName
|
2023-03-21 22:52:57 +00:00
|
|
|
Compare the name of two classes
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: int
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Readme::indexLinkPower
|
|
|
|
Build the Link to the power in this repository
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Readme::linkPowerRepo
|
|
|
|
Build the Link to the power in this repository
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Readme::linkPowerCode
|
|
|
|
Build the Link to the power settings in this repository
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Readme::linkPowerSettings
|
|
|
|
Build the Link to the power settings in this repository
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Readme::linkPowerSPK
|
|
|
|
Get the SuperPowerKey (SPK)
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|