Back to Joomla project (class list)

Class Registry - list of methods

Service registry for JHtml services
Package: Joomla\CMS\HTML
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/HTML/Registry.php
Project: Joomla

Method Summary

public string|object
(string $key)

Get the service for a given key
Parameters
  • string $key The service key to look up
Returns
  • string|object
Since
  • 4.0.0
Show source code of this method: getService Source Code

public bool
(string $key)

Check if the registry has a service for the given key
Parameters
  • string $key The service key to look up
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: hasService Source Code

public void
(string $key, mixed $handler, bool $replace = false)

Register a service
Parameters
  • string $key The service key to be registered
  • string|object $handler The handler for the service as either a PHP class name or class object
  • bool $replace Flag indicating the service key may replace an existing definition
Returns
  • void
Since
  • 4.0.0
Show source code of this method: register Source Code

Properties Summary

private array
$serviceMap
Mapping array of the core CMS JHtml helpers
Since
  • 4.0.0

Tags Summary

Since
4.0.0