Method | Description | Returns |
---|---|---|
getId() | int | |
getName() | string | |
getPosition() | int | |
isFinal() | Once the rule matches its conditions, further rules will not be considered | bool |
isActive() | Defines if rule conditions should be checked or the whole rule is skipped | bool |
getCreated() | Date the record was created. | DateTime |
getModified() | Last modification date for the record. | DateTime |
getDiscount() | Discount | |
getConditions() | Collection (BaseCondition) | |
getActions() | Collection (BaseAction) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
getHateoasLinks() | Get the HATEOAS links for the record | array |
getEditUrl() | Get the url for editing the record. | string |
getDeleteUrl() | Get the url for deleting the record. | string |
getManageUrl() | Get the url for managing records. | string |
getMoveUrl() | Get the url for moving the record. | string |
Discounts\Models\Backend\Rule
Rule