SproutCMS

This is the code documentation for the SproutCMS project

function match()

Does a given condition match?

Calls DisplayConditionEnum::getCurrentValue to get the current value
And then does the comparison against $val based on $op

Usage

bool $DisplayConditionString->match ( array $env , string $op , string $val );

Arguments

  1. array $env
    Environment, such as page id etc
  2. string $op
    string One of the keys from the array returned by DisplayCondition::getOperators
  3. string $val
    string Entered value OR one of the keys from DisplayCondition::getParamValues

Return value

  • bool
    True of condition matches, false if it does not