SproutCMS

This is the code documentation for the SproutCMS project

class BrowserVersion

Display condition for browser version - 3, 4, 5, etc
Test is integerised, so therefore only checks the major number
Only makes sense when a conditon for the browser itself is also selected

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-16
**/
class NewClassName extends BrowserVersion {
    
    /**
    * 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
    }
    
}
?>