Display condition for integers
This is the code documentation for the SproutCMS project
Search documentation |
class DisplayConditionStringDisplay 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
}
}
?>
|
| 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 |
|