From 9d7e7b8b2a17cf120971d3ea08525c842102d064 Mon Sep 17 00:00:00 2001 From: Alexey Andriyanov Date: Tue, 15 Mar 2011 10:51:42 +0000 Subject: [PATCH] r4336 new function judgeContext introduced. --- wwwroot/inc/functions.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/wwwroot/inc/functions.php b/wwwroot/inc/functions.php index 647a5b5b..20940414 100644 --- a/wwwroot/inc/functions.php +++ b/wwwroot/inc/functions.php @@ -2576,6 +2576,23 @@ function judgeCell ($cell, $expression) ); } +function judgeContext ($expression) +{ + global $pTable, $expl_tags, $impl_tags, $auto_tags; + return eval_expression + ( + $expression, + array_merge + ( + $expl_tags, + $impl_tags, + $auto_tags + ), + $pTable, + TRUE + ); +} + // Tell, if a constraint from config option permits given record. function considerConfiguredConstraint ($cell, $varname) { -- 2.25.1