Registry

Service registry for JHtml services

final
since

4.0.0

Methods

getService

Get the service for a given key

getService(string $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(string $key) : boolean
since

4.0.0

Arguments

$key

stringThe service key to look up

Response

boolean

register

Register a service

register(string $key, string|object $handler, boolean $replace = false) : void
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

booleanFlag indicating the service key may replace an existing definition

Properties

serviceMap

Mapping array of the core CMS JHtml helpers

since

4.0.0

Type(s)

array