Registry
Service registry for JHtml services
final
| since |
4.0.0 |
|---|---|
| package |
Joomla CMS |
Methods
getService
Get the service for a given key
getService( key) : string|object
| since |
4.0.0 |
|---|
Arguments
- key
stringThe service key to look up
Response
string|object
hasService
Check if the registry has a service for the given key
hasService( key) :
| since |
4.0.0 |
|---|
Arguments
- key
stringThe service key to look up
Response
bool
register
Register a service
register( key, string|object handler, replace = false) :
| since |
4.0.0 |
|---|
Arguments
- key
stringThe service key to be registered- handler
string|objectThe handler for the service as either a PHP class name or class object- replace
boolFlag indicating the service key may replace an existing definition
Response
void
Properties
serviceMap
Mapping array of the core CMS JHtml helpers
| since |
4.0.0 |
|---|
Type(s)
array<string|int, mixed>