SproutCMS

This is the code documentation for the SproutCMS project

class DisplayConditionString

Display condition for integers

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends DisplayConditionString {
    
    /**
    * Return the list of operators for the condition value
    * Common values would be 'equals', 'not equals', 'less than', 'contains', etc
    **/
    public function getOperators () {
        // Method code goes here
    }
    
    /**
    * Return the type of parameter for UI display
    * Only two types are supported - 'text' or 'dropdown'
    **/
    public function getParamType () {
        // Method code goes here
    }
    
    /**
    * Return the current value of the variable
    * This is compared against the params returned by {@see DisplayCondition::getParamValues}
    **/
    protected function getCurrentValue (array $env) {
        // Method code goes here
    }
    
    /**
    * Does a given condition match?
    * 
    * Calls {@see DisplayConditionEnum::getCurrentValue} to get the current value
    * And then does the comparison against $val based on $op
    **/
    public function match (array $env, string $op, string $val) {
        // Method code goes here
    }
    
}
?>