PHP Class Themosis\Load\WidgetLoader

Inheritance: extends Load
Show file Open project: themosis/framework

Protected Properties

Property Type Description
$excludedWidgets array List of excluded widgets names.
$filter Themosis\Hook\IHook
$widgets array The loaded widgets.

Public Methods

Method Description
__construct ( Themosis\Hook\IHook $filter, array $paths = [] ) WidgetLoader constructor.
getWidgets ( ) : array Return a list of allowed widgets.
install ( ) Register the widgets.
load ( ) : Themosis\Load\ILoader Load the widgets.

Method Details

__construct() public method

WidgetLoader constructor.
public __construct ( Themosis\Hook\IHook $filter, array $paths = [] )
$filter Themosis\Hook\IHook
$paths array

getWidgets() public method

Return a list of allowed widgets.
public getWidgets ( ) : array
return array

install() public method

Register the widgets.
public install ( )

load() public method

Load the widgets.
public load ( ) : Themosis\Load\ILoader
return Themosis\Load\ILoader

Property Details

$excludedWidgets protected property

List of excluded widgets names.
protected array $excludedWidgets
return array

$filter protected property

protected IHook,Themosis\Hook $filter
return Themosis\Hook\IHook

$widgets protected property

The loaded widgets.
protected array $widgets
return array