|
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\SalesRule\Model\CouponFactory $couponFactory, \Magento\SalesRule\Model\Coupon\CodegeneratorFactory $codegenFactory, \Magento\SalesRule\Model\Rule\Condition\CombineFactory $condCombineFactory, \Magento\SalesRule\Model\Rule\Condition\Product\CombineFactory $condProdCombineF, \Magento\SalesRule\Model\ResourceModel\Coupon\Collection $couponCollection, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[], ExtensionAttributesFactory $extensionFactory=null, AttributeValueFactory $customAttributeFactory=null, \Magento\Framework\Serialize\Serializer\Json $serializer=null) |
|
| loadRelations () |
|
| loadCouponCode () |
|
| afterSave () |
|
| loadPost (array $data) |
|
| getConditionsInstance () |
|
| getActionsInstance () |
|
| getCouponCodeGenerator () |
|
| setCouponCodeGenerator (\Magento\SalesRule\Model\Coupon\CodegeneratorInterface $codeGenerator) |
|
| getPrimaryCoupon () |
|
| getCustomerGroupIds () |
|
| getStoreLabel ($store=null) |
|
| getStoreLabels () |
|
| getCoupons () |
|
| getCouponTypes () |
|
| getFromDate () |
|
| getToDate () |
|
| hasIsValidForAddress ($address) |
|
| setIsValidForAddress ($address, $validationResult) |
|
| getIsValidForAddress ($address) |
|
| getConditionsFieldSetId ($formName='') |
|
| getActionsFieldSetId ($formName='') |
|
| getConditionsInstance () |
|
| getActionsInstance () |
|
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[], ExtensionAttributesFactory $extensionFactory=null, AttributeValueFactory $customAttributeFactory=null, \Magento\Framework\Serialize\Serializer\Json $serializer=null) |
|
| beforeSave () |
|
| setConditions ($conditions) |
|
| getConditions () |
|
| setActions ($actions) |
|
| getActions () |
|
| getForm () |
|
| loadPost (array $data) |
|
| validate (\Magento\Framework\DataObject $object) |
|
| validateData (\Magento\Framework\DataObject $dataObject) |
|
| isDeleteable () |
|
| setIsDeleteable ($value) |
|
| isReadonly () |
|
| setIsReadonly ($value) |
|
| getWebsiteIds () |
|
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) |
|
| getCustomAttributes () |
|
| getCustomAttribute ($attributeCode) |
|
| setCustomAttributes (array $attributes) |
|
| setCustomAttribute ($attributeCode, $attributeValue) |
|
| setData ($key, $value=null) |
|
| unsetData ($key=null) |
|
| getData ($key='', $index=null) |
|
| setId ($value) |
|
| __sleep () |
|
| __wakeup () |
|
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) |
|
| __sleep () |
|
| __wakeup () |
|
| setIdFieldName ($name) |
|
| getIdFieldName () |
|
| getId () |
|
| setId ($value) |
|
| isDeleted ($isDeleted=null) |
|
| hasDataChanges () |
|
| setData ($key, $value=null) |
|
| unsetData ($key=null) |
|
| setDataChanges ($value) |
|
| getOrigData ($key=null) |
|
| setOrigData ($key=null, $data=null) |
|
| dataHasChangedFor ($field) |
|
| getResourceName () |
|
| getResourceCollection () |
|
| getCollection () |
|
| load ($modelId, $field=null) |
|
| beforeLoad ($identifier, $field=null) |
|
| afterLoad () |
|
| isSaveAllowed () |
|
| setHasDataChanges ($flag) |
|
| save () |
|
| afterCommitCallback () |
|
| isObjectNew ($flag=null) |
|
| beforeSave () |
|
| validateBeforeSave () |
|
| getCacheTags () |
|
| cleanModelCache () |
|
| afterSave () |
|
| delete () |
|
| beforeDelete () |
|
| afterDelete () |
|
| afterDeleteCommit () |
|
| getResource () |
|
| getEntityId () |
|
| setEntityId ($entityId) |
|
| clearInstance () |
|
| getStoredData () |
|
| getEventPrefix () |
|
| __construct (array $data=[]) |
|
| addData (array $arr) |
|
| setData ($key, $value=null) |
|
| unsetData ($key=null) |
|
| getData ($key='', $index=null) |
|
| getDataByPath ($path) |
|
| getDataByKey ($key) |
|
| setDataUsingMethod ($key, $args=[]) |
|
| getDataUsingMethod ($key, $args=null) |
|
| hasData ($key='') |
|
| toArray (array $keys=[]) |
|
| convertToArray (array $keys=[]) |
|
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) |
|
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) |
|
| toJson (array $keys=[]) |
|
| convertToJson (array $keys=[]) |
|
| toString ($format='') |
|
| __call ($method, $args) |
|
| isEmpty () |
|
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') |
|
| debug ($data=null, &$objects=[]) |
|
| offsetSet ($offset, $value) |
|
| offsetExists ($offset) |
|
| offsetUnset ($offset) |
|
| offsetGet ($offset) |
|
Shopping Cart Rule data model
@api @method string getName() @method \Magento\SalesRule\Model\Rule setName(string $value) @method string getDescription() @method \Magento\SalesRule\Model\Rule setDescription(string $value) @method \Magento\SalesRule\Model\Rule setFromDate(string $value) @method \Magento\SalesRule\Model\Rule setToDate(string $value) @method int getUsesPerCustomer() @method \Magento\SalesRule\Model\Rule setUsesPerCustomer(int $value) @method int getUsesPerCoupon() @method \Magento\SalesRule\Model\Rule setUsesPerCoupon(int $value) @method \Magento\SalesRule\Model\Rule setCustomerGroupIds(string $value) @method int getIsActive() @method \Magento\SalesRule\Model\Rule setIsActive(int $value) @method string getConditionsSerialized() @method \Magento\SalesRule\Model\Rule setConditionsSerialized(string $value) @method string getActionsSerialized() @method \Magento\SalesRule\Model\Rule setActionsSerialized(string $value) @method int getStopRulesProcessing() @method \Magento\SalesRule\Model\Rule setStopRulesProcessing(int $value) @method int getIsAdvanced() @method \Magento\SalesRule\Model\Rule setIsAdvanced(int $value) @method string getProductIds() @method \Magento\SalesRule\Model\Rule setProductIds(string $value) @method int getSortOrder() @method \Magento\SalesRule\Model\Rule setSortOrder(int $value) @method string getSimpleAction() @method \Magento\SalesRule\Model\Rule setSimpleAction(string $value) @method float getDiscountAmount() @method \Magento\SalesRule\Model\Rule setDiscountAmount(float $value) @method float getDiscountQty() @method \Magento\SalesRule\Model\Rule setDiscountQty(float $value) @method int getDiscountStep() @method \Magento\SalesRule\Model\Rule setDiscountStep(int $value) @method int getApplyToShipping() @method \Magento\SalesRule\Model\Rule setApplyToShipping(int $value) @method int getTimesUsed() @method \Magento\SalesRule\Model\Rule setTimesUsed(int $value) @method int getIsRss() @method \Magento\SalesRule\Model\Rule setIsRss(int $value) @method string getWebsiteIds() @method \Magento\SalesRule\Model\Rule setWebsiteIds(string $value) @method int getCouponType() @method \Magento\SalesRule\Model\Rule setCouponType(int $value) @method int getUseAutoGeneration() @method \Magento\SalesRule\Model\Rule setUseAutoGeneration(int $value) @method string getCouponCode() @method \Magento\SalesRule\Model\Rule setCouponCode(string $value) @method int getRuleId() @method \Magento\SalesRule\Model\Rule setRuleId(int $ruleId) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
- Since
- 100.0.2
Definition at line 68 of file Rule.php.