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
string
The 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
string
The service key to look up
Response
bool
register
Register a service
register( key, string|object handler, replace = false) :
since |
4.0.0 |
---|
Arguments
- key
string
The service key to be registered- handler
string|object
The handler for the service as either a PHP class name or class object- replace
bool
Flag 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>