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 ()
Returns
mixed
public static extensionExtendCallback (callable $callback) : void
Helper method for ::extend()
static method
Parameters
Property | Type | Description |
---|---|---|
$callback | callable |
callable
|
Returns
void
public extensionIsHiddenField ($name)
Parameters
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
Returns
mixed
public extensionIsHiddenMethod ($name)
Parameters
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
Returns
mixed
public static getCalledExtensionClass ()
Returns
mixed
protected extensionHideField ($name)
Parameters
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
Returns
mixed
protected extensionHideMethod ($name)
Parameters
Property | Type | Description |
---|---|---|
$name | mixed |
mixed
|
Returns
mixed
Copyright © 2023 Winter CMS