Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
[php]public static function criteriaPage($rule, array $data, array $params, array $containerData, &$returnValue) { switch ($rule) { case 'p_field': if ($params['p'] == $data['p_value']) { $returnValue = true; } break; case 'c_check': if ($user['c'] == $data['c']) { $returnValue = true; } break; } }[/php]should be probably[php]public static function criteriaPage($rule, array $data, array $params, array $containerData, &$returnValue) { switch ($rule) { case 'p_field': if ($params['p'] == $data['p_value']) { $returnValue = true; } break; case 'c_check': if ($params['c'] == $data['c']) { $returnValue = true; } break; } }[/php]
[php]
public static function criteriaPage($rule, array $data, array $params, array $containerData, &$returnValue) { switch ($rule) { case 'p_field': if ($params['p'] == $data['p_value']) { $returnValue = true; } break; case 'c_check': if ($user['c'] == $data['c']) { $returnValue = true; } break; } }[/php]
should be probably
public static function criteriaPage($rule, array $data, array $params, array $containerData, &$returnValue) { switch ($rule) { case 'p_field': if ($params['p'] == $data['p_value']) { $returnValue = true; } break; case 'c_check': if ($params['c'] == $data['c']) { $returnValue = true; } break; } }[/php]
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences