Base class for display conditions This is known as the Context Engine, and is a set of display rules which affect which widgets (content blocks) are shown or hidden on the page
This is the code documentation for the SproutCMS project
Search documentation |
class DisplayConditionBase class for display conditions This is known as the Context Engine, and is a set of display rules which affect which widgets (content blocks) are shown or hidden on the page
Functions
public getOperatorsarray $DisplayCondition->getOperators ( ); Return the list of operators for the condition value Common values would be 'equals', 'not equals', 'less than', 'contains', etc public getParamTypestring $DisplayCondition->getParamType ( ); Return the type of parameter for UI display Only two types are supported - 'text' or 'dropdown' public getParamValuesarray $DisplayCondition->getParamValues ( ); Return the available values for dropdowns public matchbool $DisplayCondition->match ( array $env , string $op , string $val ); Does a given condition match? |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|