ExtensionTrait
Extension trait
trait Winter\Storm\Extension\ExtensionTrait
Allows for "Private traits"
Properties
public
static
$extendableStaticCalledClass
:
string
= null
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
= {"fields":[],"methods":["extensionIsHiddenField","extensionIsHiddenMethod"]}
Methods
public extensionApplyInitCallbacks ()
public static extensionExtendCallback (callable $callback) : void
Helper method for ::extend()
static method
Property | Type | Description |
---|---|---|
$callback | callable |
callable
|
public extensionIsHiddenField ($name)
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
public extensionIsHiddenMethod ($name)
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
public static getCalledExtensionClass ()
protected extensionHideField ($name)
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
protected extensionHideMethod ($name)
Property | Type | Description |
---|---|---|
$name | mixed |
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" |