Registry

Service registry for JHtml services

final
since

4.0.0

package

Application

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) : bool
since

4.0.0

Arguments

key

stringThe service key to look up

Response

bool

register

Register a service

register(string key, string|object handler, bool 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

boolFlag 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