SproutCMS

This is the code documentation for the SproutCMS project

function checkDisplayConditions()

Check whether the widget is allowed to be displayed

Usage

bool Widgets::checkDisplayConditions ( array $env , array $conditions );

Arguments

  1. array $env
    Calling environment, e.g. page id
  2. array $conditions
    Conditions to check; each condition would be an array witj 'field', 'op', 'val' keys

Return value

  • bool
    True if conditions match and display is allowed, false otherwise