trait HasComponents

Properties

BaseComponent[] $components

Methods

static void
bootHasComponents()

Boot the sortable trait for this model.

parseComponentSettings()

No description

getComponent(string $componentName)

Returns a component by its name.

mixed
hasComponent(string $componentName)

Checks if the object has a component with the specified name.

runComponents()

No description

updateComponent($alias, array $properties)

No description

Details

at line 19
static void bootHasComponents()

Boot the sortable trait for this model.

Return Value

void

at line 26
parseComponentSettings()

No description

at line 52
BaseComponent getComponent(string $componentName)

Returns a component by its name.

This method is used only in the admin and for internal system needs when the standard way to access components is not an option.

Parameters

string $componentName

Specifies the component name.

Return Value

BaseComponent

at line 71
mixed hasComponent(string $componentName)

Checks if the object has a component with the specified name.

Parameters

string $componentName

Specifies the component name.

Return Value

mixed

Return false or the full component name used on the page (it could include the alias).

at line 96
runComponents()

No description

at line 110
updateComponent($alias, array $properties)

No description

Parameters

$alias
array $properties