Skip to content

StoreBehavior ​

Type
Class
Namespace
craft\commerce\behaviors
Inherits
craft\commerce\behaviors\StoreBehavior » yii\base\Behavior » yii\base\BaseObject
Implements
yii\base\Configurable
Since
5.0.0

Store Behavior

View source

Public Properties ​

PropertyDescription
ownercraft\models\Site
storecraft\commerce\models\Store, null

owner ​

Type
craft\models\Site
Default value
null

View source

store ​

Type
craft\commerce\models\Store, null
Default value
null
Access
Read-only

View source

Public Methods ​

MethodDescription
__call()Calls the named method which is not a class method.
__construct()Constructor.
__get()Returns the value of an object property.
__isset()Checks if a property is set, i.e. defined and not null.
__set()Sets value of an object property.
__unset()Sets an object property to null.
attach()
canGetProperty()Returns a value indicating whether a property can be read.
canSetProperty()Returns a value indicating whether a property can be set.
className()Returns the fully qualified name of this class.
detach()Detaches the behavior object from the component.
events()Declares event handlers for the owner's events.
getStore()
hasMethod()Returns a value indicating whether a method is defined.
hasProperty()Returns a value indicating whether a property is defined.
init()Initializes the object.

attach() ​

View source

Arguments ​

  • $owner

Throws ​

getStore() ​

View source

Returns ​

craft\commerce\models\Store, null

Throws ​