\BasicPersonalisationRule
Synopsis
class BasicPersonalisationRule
extends DataObject
{
- // members
- public static array $db = ;
- public static array $has_one = ;
- public static array $summary_fields = ;
- // methods
- public void getCMSFields()
- public void NiceDecodedCondition()
- public void generateRuleHTML()
- public void getCondition()
- public void setCondition()
- public array getRequiredProperties()
- public void variationOnMatch()
- public static void _escape()
- public static void json_encode_typed()
- public static void json_decode_typed()
- public static void json_decode_typed_normalise()
- public void isDefault()
Hierarchy
Extends
- DataObject
Members
public
- $db
- $has_one
- $summary_fields
Methods
public
- NiceDecodedCondition()
- _escape()
- generateRuleHTML()
- getCMSFields()
- getCondition() — Retrieve the condition for this rule. The condition will actually be an array of BasicPersonalisationCondition objects that have been serialised into EncodedCondition. If there are no conditions, an empty array is returned.
- getRequiredProperties() — Return the properties that we will want to read when evaluating this rule. Result is a map of property names to property defs as understood by the context provider and tracking stores.
- isDefault()
- json_decode_typed()
- json_decode_typed_normalise()
- json_encode_typed()
- setCondition() — Set the endcoded condition from the given structure. Writes the data object.
- variationOnMatch()