ExtensionTrait

Extension trait

 trait Winter\Storm\Extension\ExtensionTrait

Allows for "Private traits"

Properties

public static $extendableStaticCalledClass : string

The calling class when using a static method.

protected static $extensionCallbacks : array

Used to extend the constructor of an extension class. Eg:

BehaviorClass::extend(function($obj) { })

protected $extensionHidden : mixed

Methods

public extensionApplyInitCallbacks ()

Returns
mixed

public static extensionExtendCallback (callable $callback) : void

Helper method for ::extend() static method

Parameters
Property Description
$callback
callable
Returns
void

public extensionIsHiddenField ($name)

Parameters
Property Description
$name
mixed
Returns
mixed

public extensionIsHiddenMethod ($name)

Parameters
Property Description
$name
mixed
Returns
mixed

public static getCalledExtensionClass ()

Returns
mixed

protected extensionHideField ($name)

Parameters
Property Description
$name
mixed
Returns
mixed

protected extensionHideMethod ($name)

Parameters
Property Description
$name
mixed
Returns
mixed

Used by

Class Description
SettingsModel

Settings model extension

ModelBehavior

Base class for model behaviors.

FormController

Adds features for working with backend forms. This behavior will inject CRUD actions to the controller -- including create, update and preview -- along with some relevant AJAX handlers.

ImportExportController

Adds features for importing and exporting data.

ListController

Adds features for working with backend lists.

RelationController

Uses a combination of lists and forms for managing Model relations.

ReorderController

Used for reordering and sorting records.

UserPreferencesModel

User Preferences model extension, identical to System\Behaviors\SettingsModel except values are set against the logged in user's preferences via Backend\Models\UserPreference

ControllerBehavior

Controller Behavior base class

Encryptable

Encryptable model behavior

Purgeable
Sortable

Sortable model behavior

ModelBehavior

Base class for model behaviors.

ExtensionBase

Extension class Allows for "Private traits"

Copyright © 2024 Winter CMS