ModelBehavior

Base class for model behaviors.

 class Winter\Storm\Database\ModelBehavior
extends Winter\Storm\Extension\ExtensionBase

Extends

Class Description
ExtensionBase

Extension class Allows for "Private traits"

Traits

Trait Description
ExtensionTrait

Extension trait

Properties

protected $model : Winter\Storm\Database\Model

Reference to the extended model.

inherited public static $extendableStaticCalledClass : string

Inherited from ExtensionTrait

The calling class when using a static method.

inherited protected static $extensionCallbacks : array

Inherited from ExtensionTrait

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

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

inherited protected $extensionHidden : mixed

Inherited from ExtensionTrait

Methods

public __construct (Winter\Storm\Database\Model $model)

Constructor

Parameters
Property Description
$model

The extended model.

Returns
mixed

inherited public static extend (callable $callback)

Inherited from ExtensionBase
Parameters
Property Description
$callback
callable
Returns
mixed

inherited public extensionApplyInitCallbacks ()

Inherited from ExtensionTrait
Returns
mixed

inherited public static extensionExtendCallback (callable $callback) : void

Inherited from ExtensionTrait

Helper method for ::extend() static method

Parameters
Property Description
$callback
callable
Returns
void

inherited public extensionIsHiddenField ($name)

Inherited from ExtensionTrait
Parameters
Property Description
$name
mixed
Returns
mixed

inherited public extensionIsHiddenMethod ($name)

Inherited from ExtensionTrait
Parameters
Property Description
$name
mixed
Returns
mixed

inherited public static getCalledExtensionClass ()

Inherited from ExtensionTrait
Returns
mixed

inherited protected extensionHideField ($name)

Inherited from ExtensionTrait
Parameters
Property Description
$name
mixed
Returns
mixed

inherited protected extensionHideMethod ($name)

Inherited from ExtensionTrait
Parameters
Property Description
$name
mixed
Returns
mixed

Extended by

Class Description
ModelBehavior

Base class for model behaviors.

Copyright © 2024 Winter CMS