|
8150 | 8150 | }
|
8151 | 8151 | }
|
8152 | 8152 | },
|
| 8153 | + { |
| 8154 | + "class": "craft\\commerce\\elements\\Product", |
| 8155 | + "name": "EVENT_DEFINE_PARENT_SELECTION_CRITERIA", |
| 8156 | + "type": "craft\\events\\ElementCriteriaEvent", |
| 8157 | + "desc": "The event that is triggered when defining the parent selection criteria.", |
| 8158 | + "filters": { |
| 8159 | + "duplicating": { |
| 8160 | + "label": "Element is being duplicated to a new element", |
| 8161 | + "conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)", |
| 8162 | + "excludes": [ |
| 8163 | + "isNew", |
| 8164 | + "resaving", |
| 8165 | + "revision" |
| 8166 | + ] |
| 8167 | + }, |
| 8168 | + "enabled": { |
| 8169 | + "label": "Element is enabled", |
| 8170 | + "conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())" |
| 8171 | + }, |
| 8172 | + "firstSave": { |
| 8173 | + "label": "Element is being saved for the first time", |
| 8174 | + "conditionsPhp": "$event->sender->firstSave", |
| 8175 | + "excludes": [ |
| 8176 | + "isNew", |
| 8177 | + "draft", |
| 8178 | + "provisional", |
| 8179 | + "revision", |
| 8180 | + "resaving" |
| 8181 | + ] |
| 8182 | + }, |
| 8183 | + "propagating": { |
| 8184 | + "label": "Element is being propagated", |
| 8185 | + "conditionsPhp": "$event->sender->propagating" |
| 8186 | + }, |
| 8187 | + "resaving": { |
| 8188 | + "label": "Element is being bulk-resaved", |
| 8189 | + "conditionsPhp": "$event->sender->resaving", |
| 8190 | + "excludes": [ |
| 8191 | + "firstSave" |
| 8192 | + ] |
| 8193 | + } |
| 8194 | + } |
| 8195 | + }, |
8153 | 8196 | {
|
8154 | 8197 | "class": "craft\\commerce\\elements\\Product",
|
8155 | 8198 | "name": "EVENT_REGISTER_SOURCES",
|
|
18466 | 18509 | "type": "yii\\base\\Event",
|
18467 | 18510 | "desc": "an event raised at the end of `validate()`"
|
18468 | 18511 | },
|
| 18512 | + { |
| 18513 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18514 | + "name": "EVENT_INIT", |
| 18515 | + "type": "yii\\base\\Event", |
| 18516 | + "desc": "The event that is triggered after the model's init cycle" |
| 18517 | + }, |
| 18518 | + { |
| 18519 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18520 | + "name": "EVENT_DEFINE_BEHAVIORS", |
| 18521 | + "type": "craft\\events\\DefineBehaviorsEvent", |
| 18522 | + "desc": "The event that is triggered when defining the class behaviors" |
| 18523 | + }, |
| 18524 | + { |
| 18525 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18526 | + "name": "EVENT_DEFINE_RULES", |
| 18527 | + "type": "craft\\events\\DefineRulesEvent", |
| 18528 | + "desc": "The event that is triggered when defining the model rules" |
| 18529 | + }, |
| 18530 | + { |
| 18531 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18532 | + "name": "EVENT_DEFINE_FIELDS", |
| 18533 | + "type": "craft\\events\\DefineFieldsEvent", |
| 18534 | + "desc": "The event that is triggered when defining the arrayable fields" |
| 18535 | + }, |
| 18536 | + { |
| 18537 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18538 | + "name": "EVENT_DEFINE_EXTRA_FIELDS", |
| 18539 | + "type": "craft\\events\\DefineFieldsEvent", |
| 18540 | + "desc": "The event that is triggered when defining the extra arrayable fields" |
| 18541 | + }, |
| 18542 | + { |
| 18543 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18544 | + "name": "EVENT_BEFORE_VALIDATE", |
| 18545 | + "type": "yii\\base\\ModelEvent", |
| 18546 | + "desc": "an event raised at the beginning of `validate()`. You may set `ModelEvent::isValid` to be false to stop the validation." |
| 18547 | + }, |
| 18548 | + { |
| 18549 | + "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSearchConditionRule", |
| 18550 | + "name": "EVENT_AFTER_VALIDATE", |
| 18551 | + "type": "yii\\base\\Event", |
| 18552 | + "desc": "an event raised at the end of `validate()`" |
| 18553 | + }, |
18469 | 18554 | {
|
18470 | 18555 | "class": "craft\\commerce\\elements\\conditions\\products\\ProductVariantSkuConditionRule",
|
18471 | 18556 | "name": "EVENT_INIT",
|
|
0 commit comments