Back to Joomla project (class list)

Class LibraryHelper - list of methods

Library helper class
Package: Joomla\CMS\Helper
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Helper/LibraryHelper.php
Project: Joomla

Method Summary

public static \stdClass
(mixed $element, mixed $strict = false)

Get the library information.
Parameters
  • string $element Element of the library in the extensions table.
  • bool $strict If set and the library does not exist, the enabled attribute will be set to false.
Returns
  • \stdClass An object with the library's information.
Since
  • 3.2
Show source code of this method: getLibrary Source Code

public static bool
(mixed $element)

Checks if a library is enabled
Parameters
  • string $element Element of the library in the extensions table.
Returns
  • bool
Since
  • 3.2
Show source code of this method: isEnabled Source Code

public static \Joomla\Registry\Registry
(mixed $element, mixed $strict = false)

Gets the parameter object for the library
Parameters
  • string $element Element of the library in the extensions table.
  • bool $strict If set and the library does not exist, false will be returned
Returns
  • \Joomla\Registry\Registry A Registry object.
Since
  • 3.2
-
  • \Joomla\Registry\Registry
Show source code of this method: getParams Source Code

public static \Joomla\Registry\Registry|bool
(mixed $element, mixed $params)

Save the parameters object for the library
Parameters
  • string $element Element of the library in the extensions table.
  • \Joomla\Registry\Registry $params Params to save
Returns
  • \Joomla\Registry\Registry|bool A Registry object.
Since
  • 3.2
-
  • \Joomla\Registry\Registry
Show source code of this method: saveParams Source Code

protected static bool
(mixed $element)

Load the installed library into the libraries property.
Parameters
  • string $element The element value for the extension
Returns
  • bool True on success
Since
  • 3.7.0
Show source code of this method: loadLibrary Source Code

Properties Summary

protected static array
$libraries
The component list cache
Since
  • 3.2

Tags Summary

Since
3.2