Skip to content

Commit

Permalink
Merge branch 'main' into five-tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Oct 16, 2024
2 parents f8cc32f + 700b130 commit f0de52d
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/.artifacts/commerce/4.x/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,12 @@
"type": "yii\\base\\ActionEvent",
"desc": "an event raised right after executing a controller action."
},
{
"class": "craft\\commerce\\console\\controllers\\UpgradeController",
"name": "EVENT_BEFORE_DROP_V3_DATABASE_ENTITIES",
"type": "craft\\commerce\\events\\UpgradeEvent",
"desc": "The event that is triggered before the v3 columns and tables are dropped during upgrade."
},
{
"class": "craft\\commerce\\console\\controllers\\UpgradeController",
"name": "EVENT_DEFINE_ACTIONS",
Expand Down Expand Up @@ -15289,6 +15295,48 @@
"type": "yii\\base\\Event",
"desc": "an event raised at the end of `validate()`"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_INIT",
"type": "yii\\base\\Event",
"desc": "The event that is triggered after the model's init cycle"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_BEHAVIORS",
"type": "craft\\events\\DefineBehaviorsEvent",
"desc": "The event that is triggered when defining the class behaviors"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_RULES",
"type": "craft\\events\\DefineRulesEvent",
"desc": "The event that is triggered when defining the model rules"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_FIELDS",
"type": "craft\\events\\DefineFieldsEvent",
"desc": "The event that is triggered when defining the arrayable fields"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_EXTRA_FIELDS",
"type": "craft\\events\\DefineFieldsEvent",
"desc": "The event that is triggered when defining the extra arrayable fields"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_BEFORE_VALIDATE",
"type": "yii\\base\\ModelEvent",
"desc": "an event raised at the beginning of `validate()`. You may set `ModelEvent::isValid` to be false to stop the validation."
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_AFTER_VALIDATE",
"type": "yii\\base\\Event",
"desc": "an event raised at the end of `validate()`"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSkuConditionRule",
"name": "EVENT_INIT",
Expand Down
85 changes: 85 additions & 0 deletions docs/.artifacts/commerce/5.x/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -8150,6 +8150,49 @@
}
}
},
{
"class": "craft\\commerce\\elements\\Product",
"name": "EVENT_DEFINE_PARENT_SELECTION_CRITERIA",
"type": "craft\\events\\ElementCriteriaEvent",
"desc": "The event that is triggered when defining the parent selection criteria.",
"filters": {
"duplicating": {
"label": "Element is being duplicated to a new element",
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
"excludes": [
"isNew",
"resaving",
"revision"
]
},
"enabled": {
"label": "Element is enabled",
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
},
"firstSave": {
"label": "Element is being saved for the first time",
"conditionsPhp": "$event->sender->firstSave",
"excludes": [
"isNew",
"draft",
"provisional",
"revision",
"resaving"
]
},
"propagating": {
"label": "Element is being propagated",
"conditionsPhp": "$event->sender->propagating"
},
"resaving": {
"label": "Element is being bulk-resaved",
"conditionsPhp": "$event->sender->resaving",
"excludes": [
"firstSave"
]
}
}
},
{
"class": "craft\\commerce\\elements\\Product",
"name": "EVENT_REGISTER_SOURCES",
Expand Down Expand Up @@ -18466,6 +18509,48 @@
"type": "yii\\base\\Event",
"desc": "an event raised at the end of `validate()`"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_INIT",
"type": "yii\\base\\Event",
"desc": "The event that is triggered after the model's init cycle"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_BEHAVIORS",
"type": "craft\\events\\DefineBehaviorsEvent",
"desc": "The event that is triggered when defining the class behaviors"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_RULES",
"type": "craft\\events\\DefineRulesEvent",
"desc": "The event that is triggered when defining the model rules"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_FIELDS",
"type": "craft\\events\\DefineFieldsEvent",
"desc": "The event that is triggered when defining the arrayable fields"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_DEFINE_EXTRA_FIELDS",
"type": "craft\\events\\DefineFieldsEvent",
"desc": "The event that is triggered when defining the extra arrayable fields"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_BEFORE_VALIDATE",
"type": "yii\\base\\ModelEvent",
"desc": "an event raised at the beginning of `validate()`. You may set `ModelEvent::isValid` to be false to stop the validation."
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule",
"name": "EVENT_AFTER_VALIDATE",
"type": "yii\\base\\Event",
"desc": "an event raised at the end of `validate()`"
},
{
"class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSkuConditionRule",
"name": "EVENT_INIT",
Expand Down

0 comments on commit f0de52d

Please sign in to comment.