2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
2023-10-04 18:28:29 +00:00
|
|
|
# class Config (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Power**
|
|
|
|
> extends: **BaseConfig**
|
2023-03-21 22:52:57 +00:00
|
|
|
```uml
|
|
|
|
@startuml
|
2023-10-04 18:28:29 +00:00
|
|
|
class Config #Gold {
|
|
|
|
# JoomlaRegistry $config
|
|
|
|
+ __construct(?Input $input = null, ?JoomlaRegistry $params = null, ...)
|
|
|
|
# getGiteatoken() : ?string
|
|
|
|
# getAddcustomgiteaurl() : int
|
|
|
|
# getCustomgiteaurl() : ?string
|
|
|
|
# getCustomgiteatoken() : ?string
|
2023-10-24 08:36:39 +00:00
|
|
|
# getSuperpowerscoreorganisation() : string
|
|
|
|
# getSuperpowersinitrepos() : array
|
2023-10-04 18:28:29 +00:00
|
|
|
# getTmppath() : string
|
2023-10-24 08:36:39 +00:00
|
|
|
# getAddsuperpowers() : bool
|
|
|
|
# getAddownpowers() : bool
|
2023-10-04 18:28:29 +00:00
|
|
|
# getLocalpowersrepositorypath() : string
|
|
|
|
# getApprovedpaths() : array
|
2023-03-21 22:52:57 +00:00
|
|
|
}
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Config::__construct
|
|
|
|
Constructor
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
|
|
|
|
arguments:
|
2023-10-04 18:28:29 +00:00
|
|
|
?Input $input = null
|
|
|
|
?JoomlaRegistry $params = null
|
|
|
|
?JoomlaRegistry $config = null
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note left of Config::getGiteatoken
|
|
|
|
get Gitea Access Token
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: ?string
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Config::getAddcustomgiteaurl
|
|
|
|
get Add Custom Gitea URL
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: int
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note left of Config::getCustomgiteaurl
|
|
|
|
get Custom Gitea URL
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: ?string
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Config::getCustomgiteatoken
|
|
|
|
get Custom Gitea Access Token
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: ?string
|
|
|
|
end note
|
|
|
|
|
2023-10-24 08:36:39 +00:00
|
|
|
note left of Config::getSuperpowerscoreorganisation
|
|
|
|
Get super power core organisation
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Config::getSuperpowersinitrepos
|
|
|
|
Get super power init repos
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: array
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note left of Config::getTmppath
|
|
|
|
get temporary path
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
2023-10-24 08:36:39 +00:00
|
|
|
note right of Config::getAddsuperpowers
|
|
|
|
Get switch to add super powers
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: bool
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Config::getAddownpowers
|
|
|
|
Get switch to add own super powers
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: bool
|
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of Config::getLocalpowersrepositorypath
|
|
|
|
Get local super powers repository path
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Config::getApprovedpaths
|
|
|
|
Get super power approved paths
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: array
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|