ModelDiscounts module
DateCondition
Date condition describes the conditions that need to be met for the discount to be applied; based on a specific date range.
The discount will only be applicable within the specified date range.
A model in the Discounts module, with 16 members for templates, 13 API properties and 17 members for admin templates.
Templates view
Properties 16
Take no arguments.
-
#
getFrom() -
?string - Gets the start date ("Y-m-d H:i:s" format) from which the discount becomes applicable.
-
#
getTo() -
?string - Gets the end date ("Y-m-d H:i:s" format) until which the discount remains applicable.
-
#
getSnakeType() -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
getSlugType() -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
getId() -
?int -
#
getName() -
?string -
#
getData() -
?array -
#
isActive() -
bool -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 13
Read-only values on the record.
-
#
from -
?string - Gets the start date ("Y-m-d H:i:s" format) from which the discount becomes applicable.
-
#
snakeType -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
slugType -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
id -
?int -
#
name -
?string -
#
data -
?array -
#
active -
bool
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 17
Take no arguments.
-
#
getFrom() -
?string - Gets the start date ("Y-m-d H:i:s" format) from which the discount becomes applicable.
-
#
getTo() -
?string - Gets the end date ("Y-m-d H:i:s" format) until which the discount remains applicable.
-
#
getSnakeType() -
string - Returns the type of condition in the snake case format: lowercase and connected by underline
-
#
getSlugType() -
string - Returns the type of condition in the slug format: lowercase and connected by hyphen
-
#
getId() -
?int -
#
getName() -
?string -
#
getData() -
?array -
#
isActive() -
bool -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.