/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173)
2161 if ($argsPassed < $minArgs) { 2162 $this->RDP_AddError(sprintf(gT("Function must have at least %s argument|Function must have at least %s arguments", $minArgs), $minArgs), $funcNameToken); 2163 return false; 2164 } 2165 if (!$this->RDP_onlyparse) { 2166 switch ($funcName) { 2167 case 'sprintf': 2168 /* function with any number of params */ 2169 $result = call_user_func_array('sprintf', $params); 2170 break; 2171 default: 2172 /* function with array as param*/ 2173 $result = call_user_func($funcName, $params); 2174 break; 2175 } 2176 } 2177 // Call function with the params passed 2178 } elseif (in_array($argsPassed, $numArgsAllowed)) { 2179 switch ($argsPassed) { 2180 case 0: 2181 if (!$this->RDP_onlyparse) { 2182 $result = call_user_func($funcName); 2183 } 2184 break; 2185 case 1:
#0 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173): array_sum(array("", "", "")) 2168 /* function with any number of params */ 2169 $result = call_user_func_array('sprintf', $params); 2170 break; 2171 default: 2172 /* function with array as param*/ 2173 $result = call_user_func($funcName, $params); 2174 break; 2175 } 2176 } 2177 // Call function with the params passed 2178 } elseif (in_array($argsPassed, $numArgsAllowed)) { |
#1 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_RunFunction(array("sum", 253, "WORD"), array("", "", "")) 876 } 877 } 878 } 879 if ($token3[2] == 'RP') { 880 ++$this->RDP_pos; // consume the token so can process next clause 881 return $this->RDP_RunFunction($funcNameToken, $params); 882 } else { 883 if ($this->RDP_EvaluateExpression()) { 884 $value = $this->RDP_StackPop(); 885 if (is_null($value)) { 886 return false; |
#2 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(689): ExpressionManager->RDP_EvaluateFunction() 684 return true; 685 // NB: No break needed 686 case 'WORD': 687 case 'SGQA': 688 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') { 689 return $this->RDP_EvaluateFunction(); 690 } else { 691 if ($this->RDP_isValidVariable($token[0])) { 692 $this->varsUsed[] = $token[0]; // add this variable to list of those used in this equation 693 if (preg_match("/\.(" . $this->getRegexpStaticValidAttributes() . ")$/", (string) $token[0])) { 694 $relStatus = 1; // static, so always relevant |
#3 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1026): ExpressionManager->RDP_EvaluateConstantVarOrFunction() 1021 $this->RDP_AddError(self::gT("Expected right parentheses"), $token); 1022 return false; 1023 } 1024 } else { 1025 --$this->RDP_pos; 1026 return $this->RDP_EvaluateConstantVarOrFunction(); 1027 } 1028 } 1029 1030 /** 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) |
#4 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#5 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#6 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#7 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#8 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#9 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(904): ExpressionManager->RDP_EvaluateEqualityExpression() 899 * @return boolean - true if success, false if any error occurred 900 */ 901 902 private function RDP_EvaluateLogicalAndExpression() 903 { 904 if (!$this->RDP_EvaluateEqualityExpression()) { 905 return false; 906 } 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { |
#10 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#11 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#12 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#13 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1014): ExpressionManager->RDP_EvaluateExpressions() 1009 $this->RDP_AddError(self::gT("Poorly terminated expression - expected a constant or variable"), null); 1010 return false; 1011 } 1012 $token = $this->RDP_tokens[++$this->RDP_pos]; 1013 if ($token[2] == 'LP') { 1014 if (!$this->RDP_EvaluateExpressions()) { 1015 return false; 1016 } 1017 $token = $this->RDP_tokens[$this->RDP_pos]; 1018 if ($token[2] == 'RP') { 1019 return true; |
#14 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#15 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#16 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#17 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#18 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#19 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(904): ExpressionManager->RDP_EvaluateEqualityExpression() 899 * @return boolean - true if success, false if any error occurred 900 */ 901 902 private function RDP_EvaluateLogicalAndExpression() 903 { 904 if (!$this->RDP_EvaluateEqualityExpression()) { 905 return false; 906 } 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { |
#20 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#21 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#22 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#23 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1014): ExpressionManager->RDP_EvaluateExpressions() 1009 $this->RDP_AddError(self::gT("Poorly terminated expression - expected a constant or variable"), null); 1010 return false; 1011 } 1012 $token = $this->RDP_tokens[++$this->RDP_pos]; 1013 if ($token[2] == 'LP') { 1014 if (!$this->RDP_EvaluateExpressions()) { 1015 return false; 1016 } 1017 $token = $this->RDP_tokens[$this->RDP_pos]; 1018 if ($token[2] == 'RP') { 1019 return true; |
#24 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#25 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#26 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#27 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#28 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#29 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(912): ExpressionManager->RDP_EvaluateEqualityExpression() 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { 910 case '&&': 911 case 'and': 912 if ($this->RDP_EvaluateEqualityExpression()) { 913 if (!$this->RDP_EvaluateBinary($token)) { 914 return false; 915 } 916 // else continue 917 } else { |
#30 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#31 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#32 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#33 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(608): ExpressionManager->RDP_EvaluateExpressions() 603 $this->varsUsed = array(); 604 $this->jsExpression = null; 605 606 if ($this->HasSyntaxErrors()) { 607 return false; 608 } elseif ($this->RDP_EvaluateExpressions()) { 609 if ($this->RDP_pos < $this->RDP_count) { 610 $this->RDP_AddError(self::gT("Extra tokens found"), $this->RDP_tokens[$this->RDP_pos]); 611 return false; 612 } 613 $this->RDP_result = $this->RDP_StackPop(); |
#34 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1906): ExpressionManager->RDP_Evaluate("(( is_numeric(844887X59X1002SQ001.NAOK) || is_empty(844887X59X10...") 1901 { 1902 $this->groupSeq = $groupSeq; 1903 $this->questionSeq = $questionSeq; 1904 1905 $expr = $this->ExpandThisVar($expr); 1906 $status = $this->RDP_Evaluate($expr); 1907 if (!$status) { 1908 return false; // if there are errors in the expression, hide it? 1909 } 1910 $result = $this->GetResult(); 1911 if (is_null($result)) { |
#35 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(6417): ExpressionManager->ProcessBooleanExpression("(( is_numeric(844887X59X1002SQ001.NAOK) || is_empty(844887X59X10...", 1, 14) 6412 6413 // do this even is starts irrelevant, else will never show this information. 6414 if (!$qhidden) { 6415 $validationEqns = $LEM->qid2validationEqn[$qid]['eqn']; 6416 $validationEqn = implode(' and ', $validationEqns); 6417 $qvalid = $LEM->em->ProcessBooleanExpression($validationEqn, $qInfo['gseq'], $qInfo['qseq']); 6418 $hasErrors = $LEM->em->HasErrors(); 6419 6420 if (!$hasErrors) { 6421 $validationJS = $LEM->em->GetJavaScriptEquivalentOfExpression(); 6422 } |
#36 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5696): LimeExpressionManager->_ValidateQuestion(14, true) 5691 5692 ///////////////////////////////////////////////////////// 5693 // CHECK EACH QUESTION, AND SET GROUP-LEVEL PROPERTIES // 5694 ///////////////////////////////////////////////////////// 5695 for ($i = $groupSeqInfo['qstart']; $i <= $groupSeqInfo['qend']; ++$i) { 5696 $qStatus = $LEM->_ValidateQuestion($i, $force); 5697 $updatedValues = array_merge($updatedValues, $qStatus['updatedValues']); 5698 5699 if ($gRelInfo['result'] == true && $qStatus['relevant'] == true) { 5700 $grel = $gRelInfo['result']; // true; // at least one question relevant 5701 } |
#37 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5421): LimeExpressionManager->_ValidateGroup(1, true) 5416 'invalidSQs' => (isset($result['invalidSQs']) ? $result['invalidSQs'] : ''), 5417 ]; 5418 return $LEM->lastMoveResult; 5419 } 5420 5421 $result = $LEM->_ValidateGroup($LEM->currentGroupSeq, $force); 5422 if (is_null($result)) { 5423 return null; // invalid group - either bad number, or no questions within it 5424 } 5425 $message .= $result['message']; 5426 $updatedValues = array_merge($updatedValues, $result['updatedValues']); |
#38 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(1002): LimeExpressionManager::JumpTo(3, false, true, true) 0997 if ($this->sMove > 0 && (($this->sMove <= $_SESSION[$this->LEMsessid]['step']) || (isset($_SESSION[$this->LEMsessid]['maxstep']) && $this->sMove <= $_SESSION[$this->LEMsessid]['maxstep']))) { 0998 $this->aMoveResult = LimeExpressionManager::JumpTo($this->sMove, false); 0999 } 1000 } elseif (isNumericInt($this->sMove) && $this->aSurveyInfo['questionindex'] == 2) { 1001 $this->sMove = (int) $this->sMove; 1002 $this->aMoveResult = LimeExpressionManager::JumpTo($this->sMove, false, true, true); 1003 } 1004 1005 if (!$this->aMoveResult && !($this->sSurveyMode != 'survey' && $_SESSION[$this->LEMsessid]['step'] == 0)) { 1006 // Just in case not set via any other means, but don't do this if it is the welcome page 1007 /* GetLastMoveResult reset substitutionNum in EM core if param is true, this break in all in one mode (see #13725) */ |
#39 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(663): SurveyRuntimeHelper->setMoveResult() 658 $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM 659 $this->initTotalAndMaxSteps(); 660 $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page 661 if ($this->sMove != 'clearcancel' && $this->sMove != 'confirmquota') { 662 $this->checkPrevStep(); // Check if prev step is set, else set it 663 $this->setMoveResult(); 664 $this->checkClearCancel(); 665 $this->setPrevStep(); 666 $this->checkIfFinished(); 667 $this->setStep(); 668 |
#40 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(207): SurveyRuntimeHelper->initMove() 202 // 1: We check if token and/or captcha form shouls be shown 203 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 204 $this->showTokenOrCaptchaFormsIfNeeded(); 205 } 206 if (!$this->previewgrp && !$this->previewquestion) { 207 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 208 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 209 if (EmCacheHelper::useCache()) { 210 $this->aSurveyInfo['emcache'] = true; 211 } 212 $this->checkQuotas(); // check quotas (then the process will stop here) |
#41 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/survey/SurveyIndex.php(662): SurveyRuntimeHelper->run(844887,
array("surveyid" => 844887, "thissurvey" => array("sid" =>
844887, "owner_id" => 1, "gsid" => 1, "admin" =>
"Amministratore OpenSurvey.it", ...), "thisstep" => 1, "tokensexist"
=> 0, ...)) 657 unset($redata); 658 $redata = compact(array_keys(get_defined_vars())); 659 Yii::import('application.helpers.SurveyRuntimeHelper'); 660 $tmp = new SurveyRuntimeHelper(); 661 // try { 662 $tmp->run($surveyid, $redata); 663 // } catch (WrongTemplateVersionException $ex) { 664 // echo $ex->getMessage(); 665 // } 666 } 667 |
#42 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
#43 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#44 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "844887")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#45 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(SurveyIndex) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#46 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(SurveyIndex, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#47 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#48 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#49 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#50 |
+
–
/media/shnoulle/data/webdev/noplugin/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173)
2161 if ($argsPassed < $minArgs) { 2162 $this->RDP_AddError(sprintf(gT("Function must have at least %s argument|Function must have at least %s arguments", $minArgs), $minArgs), $funcNameToken); 2163 return false; 2164 } 2165 if (!$this->RDP_onlyparse) { 2166 switch ($funcName) { 2167 case 'sprintf': 2168 /* function with any number of params */ 2169 $result = call_user_func_array('sprintf', $params); 2170 break; 2171 default: 2172 /* function with array as param*/ 2173 $result = call_user_func($funcName, $params); 2174 break; 2175 } 2176 } 2177 // Call function with the params passed 2178 } elseif (in_array($argsPassed, $numArgsAllowed)) { 2179 switch ($argsPassed) { 2180 case 0: 2181 if (!$this->RDP_onlyparse) { 2182 $result = call_user_func($funcName); 2183 } 2184 break; 2185 case 1:
#0 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173): array_sum(array("", "", "")) 2168 /* function with any number of params */ 2169 $result = call_user_func_array('sprintf', $params); 2170 break; 2171 default: 2172 /* function with array as param*/ 2173 $result = call_user_func($funcName, $params); 2174 break; 2175 } 2176 } 2177 // Call function with the params passed 2178 } elseif (in_array($argsPassed, $numArgsAllowed)) { |
#1 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_RunFunction(array("sum", 253, "WORD"), array("", "", "")) 876 } 877 } 878 } 879 if ($token3[2] == 'RP') { 880 ++$this->RDP_pos; // consume the token so can process next clause 881 return $this->RDP_RunFunction($funcNameToken, $params); 882 } else { 883 if ($this->RDP_EvaluateExpression()) { 884 $value = $this->RDP_StackPop(); 885 if (is_null($value)) { 886 return false; |
#2 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(689): ExpressionManager->RDP_EvaluateFunction() 684 return true; 685 // NB: No break needed 686 case 'WORD': 687 case 'SGQA': 688 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') { 689 return $this->RDP_EvaluateFunction(); 690 } else { 691 if ($this->RDP_isValidVariable($token[0])) { 692 $this->varsUsed[] = $token[0]; // add this variable to list of those used in this equation 693 if (preg_match("/\.(" . $this->getRegexpStaticValidAttributes() . ")$/", (string) $token[0])) { 694 $relStatus = 1; // static, so always relevant |
#3 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1026): ExpressionManager->RDP_EvaluateConstantVarOrFunction() 1021 $this->RDP_AddError(self::gT("Expected right parentheses"), $token); 1022 return false; 1023 } 1024 } else { 1025 --$this->RDP_pos; 1026 return $this->RDP_EvaluateConstantVarOrFunction(); 1027 } 1028 } 1029 1030 /** 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) |
#4 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#5 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#6 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#7 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#8 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#9 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(904): ExpressionManager->RDP_EvaluateEqualityExpression() 899 * @return boolean - true if success, false if any error occurred 900 */ 901 902 private function RDP_EvaluateLogicalAndExpression() 903 { 904 if (!$this->RDP_EvaluateEqualityExpression()) { 905 return false; 906 } 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { |
#10 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#11 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#12 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#13 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1014): ExpressionManager->RDP_EvaluateExpressions() 1009 $this->RDP_AddError(self::gT("Poorly terminated expression - expected a constant or variable"), null); 1010 return false; 1011 } 1012 $token = $this->RDP_tokens[++$this->RDP_pos]; 1013 if ($token[2] == 'LP') { 1014 if (!$this->RDP_EvaluateExpressions()) { 1015 return false; 1016 } 1017 $token = $this->RDP_tokens[$this->RDP_pos]; 1018 if ($token[2] == 'RP') { 1019 return true; |
#14 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#15 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#16 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#17 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#18 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#19 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(904): ExpressionManager->RDP_EvaluateEqualityExpression() 899 * @return boolean - true if success, false if any error occurred 900 */ 901 902 private function RDP_EvaluateLogicalAndExpression() 903 { 904 if (!$this->RDP_EvaluateEqualityExpression()) { 905 return false; 906 } 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { |
#20 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#21 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#22 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#23 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1014): ExpressionManager->RDP_EvaluateExpressions() 1009 $this->RDP_AddError(self::gT("Poorly terminated expression - expected a constant or variable"), null); 1010 return false; 1011 } 1012 $token = $this->RDP_tokens[++$this->RDP_pos]; 1013 if ($token[2] == 'LP') { 1014 if (!$this->RDP_EvaluateExpressions()) { 1015 return false; 1016 } 1017 $token = $this->RDP_tokens[$this->RDP_pos]; 1018 if ($token[2] == 'RP') { 1019 return true; |
#24 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#25 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#26 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#27 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#28 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#29 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(912): ExpressionManager->RDP_EvaluateEqualityExpression() 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { 910 case '&&': 911 case 'and': 912 if ($this->RDP_EvaluateEqualityExpression()) { 913 if (!$this->RDP_EvaluateBinary($token)) { 914 return false; 915 } 916 // else continue 917 } else { |
#30 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#31 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#32 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#33 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(608): ExpressionManager->RDP_EvaluateExpressions() 603 $this->varsUsed = array(); 604 $this->jsExpression = null; 605 606 if ($this->HasSyntaxErrors()) { 607 return false; 608 } elseif ($this->RDP_EvaluateExpressions()) { 609 if ($this->RDP_pos < $this->RDP_count) { 610 $this->RDP_AddError(self::gT("Extra tokens found"), $this->RDP_tokens[$this->RDP_pos]); 611 return false; 612 } 613 $this->RDP_result = $this->RDP_StackPop(); |
#34 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1906): ExpressionManager->RDP_Evaluate("(( is_numeric(844887X59X1002SQ001.NAOK) || is_empty(844887X59X10...") 1901 { 1902 $this->groupSeq = $groupSeq; 1903 $this->questionSeq = $questionSeq; 1904 1905 $expr = $this->ExpandThisVar($expr); 1906 $status = $this->RDP_Evaluate($expr); 1907 if (!$status) { 1908 return false; // if there are errors in the expression, hide it? 1909 } 1910 $result = $this->GetResult(); 1911 if (is_null($result)) { |
#35 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(6417): ExpressionManager->ProcessBooleanExpression("(( is_numeric(844887X59X1002SQ001.NAOK) || is_empty(844887X59X10...", 1, 14) 6412 6413 // do this even is starts irrelevant, else will never show this information. 6414 if (!$qhidden) { 6415 $validationEqns = $LEM->qid2validationEqn[$qid]['eqn']; 6416 $validationEqn = implode(' and ', $validationEqns); 6417 $qvalid = $LEM->em->ProcessBooleanExpression($validationEqn, $qInfo['gseq'], $qInfo['qseq']); 6418 $hasErrors = $LEM->em->HasErrors(); 6419 6420 if (!$hasErrors) { 6421 $validationJS = $LEM->em->GetJavaScriptEquivalentOfExpression(); 6422 } |
#36 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5696): LimeExpressionManager->_ValidateQuestion(14, true) 5691 5692 ///////////////////////////////////////////////////////// 5693 // CHECK EACH QUESTION, AND SET GROUP-LEVEL PROPERTIES // 5694 ///////////////////////////////////////////////////////// 5695 for ($i = $groupSeqInfo['qstart']; $i <= $groupSeqInfo['qend']; ++$i) { 5696 $qStatus = $LEM->_ValidateQuestion($i, $force); 5697 $updatedValues = array_merge($updatedValues, $qStatus['updatedValues']); 5698 5699 if ($gRelInfo['result'] == true && $qStatus['relevant'] == true) { 5700 $grel = $gRelInfo['result']; // true; // at least one question relevant 5701 } |
#37 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5421): LimeExpressionManager->_ValidateGroup(1, true) 5416 'invalidSQs' => (isset($result['invalidSQs']) ? $result['invalidSQs'] : ''), 5417 ]; 5418 return $LEM->lastMoveResult; 5419 } 5420 5421 $result = $LEM->_ValidateGroup($LEM->currentGroupSeq, $force); 5422 if (is_null($result)) { 5423 return null; // invalid group - either bad number, or no questions within it 5424 } 5425 $message .= $result['message']; 5426 $updatedValues = array_merge($updatedValues, $result['updatedValues']); |
#38 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(1002): LimeExpressionManager::JumpTo(3, false, true, true) 0997 if ($this->sMove > 0 && (($this->sMove <= $_SESSION[$this->LEMsessid]['step']) || (isset($_SESSION[$this->LEMsessid]['maxstep']) && $this->sMove <= $_SESSION[$this->LEMsessid]['maxstep']))) { 0998 $this->aMoveResult = LimeExpressionManager::JumpTo($this->sMove, false); 0999 } 1000 } elseif (isNumericInt($this->sMove) && $this->aSurveyInfo['questionindex'] == 2) { 1001 $this->sMove = (int) $this->sMove; 1002 $this->aMoveResult = LimeExpressionManager::JumpTo($this->sMove, false, true, true); 1003 } 1004 1005 if (!$this->aMoveResult && !($this->sSurveyMode != 'survey' && $_SESSION[$this->LEMsessid]['step'] == 0)) { 1006 // Just in case not set via any other means, but don't do this if it is the welcome page 1007 /* GetLastMoveResult reset substitutionNum in EM core if param is true, this break in all in one mode (see #13725) */ |
#39 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(663): SurveyRuntimeHelper->setMoveResult() 658 $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM 659 $this->initTotalAndMaxSteps(); 660 $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page 661 if ($this->sMove != 'clearcancel' && $this->sMove != 'confirmquota') { 662 $this->checkPrevStep(); // Check if prev step is set, else set it 663 $this->setMoveResult(); 664 $this->checkClearCancel(); 665 $this->setPrevStep(); 666 $this->checkIfFinished(); 667 $this->setStep(); 668 |
#40 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(207): SurveyRuntimeHelper->initMove() 202 // 1: We check if token and/or captcha form shouls be shown 203 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 204 $this->showTokenOrCaptchaFormsIfNeeded(); 205 } 206 if (!$this->previewgrp && !$this->previewquestion) { 207 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 208 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 209 if (EmCacheHelper::useCache()) { 210 $this->aSurveyInfo['emcache'] = true; 211 } 212 $this->checkQuotas(); // check quotas (then the process will stop here) |
#41 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/survey/SurveyIndex.php(662): SurveyRuntimeHelper->run(844887,
array("surveyid" => 844887, "thissurvey" => array("sid" =>
844887, "owner_id" => 1, "gsid" => 1, "admin" =>
"Amministratore OpenSurvey.it", ...), "thisstep" => 1, "tokensexist"
=> 0, ...)) 657 unset($redata); 658 $redata = compact(array_keys(get_defined_vars())); 659 Yii::import('application.helpers.SurveyRuntimeHelper'); 660 $tmp = new SurveyRuntimeHelper(); 661 // try { 662 $tmp->run($surveyid, $redata); 663 // } catch (WrongTemplateVersionException $ex) { 664 // echo $ex->getMessage(); 665 // } 666 } 667 |
#42 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
#43 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#44 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "844887")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#45 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(SurveyIndex) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#46 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(SurveyIndex, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#47 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#48 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#49 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#50 |
+
–
/media/shnoulle/data/webdev/noplugin/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173)
2161 if ($argsPassed < $minArgs) { 2162 $this->RDP_AddError(sprintf(gT("Function must have at least %s argument|Function must have at least %s arguments", $minArgs), $minArgs), $funcNameToken); 2163 return false; 2164 } 2165 if (!$this->RDP_onlyparse) { 2166 switch ($funcName) { 2167 case 'sprintf': 2168 /* function with any number of params */ 2169 $result = call_user_func_array('sprintf', $params); 2170 break; 2171 default: 2172 /* function with array as param*/ 2173 $result = call_user_func($funcName, $params); 2174 break; 2175 } 2176 } 2177 // Call function with the params passed 2178 } elseif (in_array($argsPassed, $numArgsAllowed)) { 2179 switch ($argsPassed) { 2180 case 0: 2181 if (!$this->RDP_onlyparse) { 2182 $result = call_user_func($funcName); 2183 } 2184 break; 2185 case 1:
#0 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(2173): array_sum(array("", "", "")) 2168 /* function with any number of params */ 2169 $result = call_user_func_array('sprintf', $params); 2170 break; 2171 default: 2172 /* function with array as param*/ 2173 $result = call_user_func($funcName, $params); 2174 break; 2175 } 2176 } 2177 // Call function with the params passed 2178 } elseif (in_array($argsPassed, $numArgsAllowed)) { |
#1 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(881): ExpressionManager->RDP_RunFunction(array("sum", 253, "WORD"), array("", "", "")) 876 } 877 } 878 } 879 if ($token3[2] == 'RP') { 880 ++$this->RDP_pos; // consume the token so can process next clause 881 return $this->RDP_RunFunction($funcNameToken, $params); 882 } else { 883 if ($this->RDP_EvaluateExpression()) { 884 $value = $this->RDP_StackPop(); 885 if (is_null($value)) { 886 return false; |
#2 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(689): ExpressionManager->RDP_EvaluateFunction() 684 return true; 685 // NB: No break needed 686 case 'WORD': 687 case 'SGQA': 688 if (($this->RDP_pos + 1) < $this->RDP_count and $this->RDP_tokens[($this->RDP_pos + 1)][2] == 'LP') { 689 return $this->RDP_EvaluateFunction(); 690 } else { 691 if ($this->RDP_isValidVariable($token[0])) { 692 $this->varsUsed[] = $token[0]; // add this variable to list of those used in this equation 693 if (preg_match("/\.(" . $this->getRegexpStaticValidAttributes() . ")$/", (string) $token[0])) { 694 $relStatus = 1; // static, so always relevant |
#3 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1026): ExpressionManager->RDP_EvaluateConstantVarOrFunction() 1021 $this->RDP_AddError(self::gT("Expected right parentheses"), $token); 1022 return false; 1023 } 1024 } else { 1025 --$this->RDP_pos; 1026 return $this->RDP_EvaluateConstantVarOrFunction(); 1027 } 1028 } 1029 1030 /** 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) |
#4 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#5 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#6 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#7 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#8 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#9 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(904): ExpressionManager->RDP_EvaluateEqualityExpression() 899 * @return boolean - true if success, false if any error occurred 900 */ 901 902 private function RDP_EvaluateLogicalAndExpression() 903 { 904 if (!$this->RDP_EvaluateEqualityExpression()) { 905 return false; 906 } 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { |
#10 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#11 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#12 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#13 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1014): ExpressionManager->RDP_EvaluateExpressions() 1009 $this->RDP_AddError(self::gT("Poorly terminated expression - expected a constant or variable"), null); 1010 return false; 1011 } 1012 $token = $this->RDP_tokens[++$this->RDP_pos]; 1013 if ($token[2] == 'LP') { 1014 if (!$this->RDP_EvaluateExpressions()) { 1015 return false; 1016 } 1017 $token = $this->RDP_tokens[$this->RDP_pos]; 1018 if ($token[2] == 'RP') { 1019 return true; |
#14 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#15 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#16 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#17 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#18 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#19 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(904): ExpressionManager->RDP_EvaluateEqualityExpression() 899 * @return boolean - true if success, false if any error occurred 900 */ 901 902 private function RDP_EvaluateLogicalAndExpression() 903 { 904 if (!$this->RDP_EvaluateEqualityExpression()) { 905 return false; 906 } 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { |
#20 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#21 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#22 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#23 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1014): ExpressionManager->RDP_EvaluateExpressions() 1009 $this->RDP_AddError(self::gT("Poorly terminated expression - expected a constant or variable"), null); 1010 return false; 1011 } 1012 $token = $this->RDP_tokens[++$this->RDP_pos]; 1013 if ($token[2] == 'LP') { 1014 if (!$this->RDP_EvaluateExpressions()) { 1015 return false; 1016 } 1017 $token = $this->RDP_tokens[$this->RDP_pos]; 1018 if ($token[2] == 'RP') { 1019 return true; |
#24 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1096): ExpressionManager->RDP_EvaluatePrimaryExpression() 1091 --$this->RDP_pos; 1092 return $this->RDP_EvaluatePrimaryExpression(); 1093 } 1094 } else { 1095 --$this->RDP_pos; 1096 return $this->RDP_EvaluatePrimaryExpression(); 1097 } 1098 } 1099 1100 /** 1101 * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions |
#25 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(970): ExpressionManager->RDP_EvaluateUnaryExpression() 965 * @return boolean - true if success, false if any error occurred 966 */ 967 968 private function RDP_EvaluateMultiplicativeExpression() 969 { 970 if (!$this->RDP_EvaluateUnaryExpression()) { 971 return false; 972 } 973 while (($this->RDP_pos + 1) < $this->RDP_count) { 974 $token = $this->RDP_tokens[++$this->RDP_pos]; 975 if ($token[2] == 'BINARYOP') { |
#26 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(637): ExpressionManager->RDP_EvaluateMultiplicativeExpression() 632 * Process "a op b" where op in (+,-,concatenate) 633 * @return boolean - true if success, false if any error occurred 634 */ 635 private function RDP_EvaluateAdditiveExpression() 636 { 637 if (!$this->RDP_EvaluateMultiplicativeExpression()) { 638 return false; 639 } 640 while (($this->RDP_pos + 1) < $this->RDP_count) { 641 $token = $this->RDP_tokens[++$this->RDP_pos]; 642 if ($token[2] == 'BINARYOP') { |
#27 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1036): ExpressionManager->RDP_EvaluateAdditiveExpression() 1031 * Process "a op b" where op in (lt, gt, le, ge, <, >, <=, >=) 1032 * @return boolean - true if success, false if any error occurred 1033 */ 1034 private function RDP_EvaluateRelationExpression() 1035 { 1036 if (!$this->RDP_EvaluateAdditiveExpression()) { 1037 return false; 1038 } 1039 while (($this->RDP_pos + 1) < $this->RDP_count) { 1040 $token = $this->RDP_tokens[++$this->RDP_pos]; 1041 switch (strtolower((string) $token[0])) { |
#28 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(729): ExpressionManager->RDP_EvaluateRelationExpression() 724 * Process "a == b", "a eq b", "a != b", "a ne b" 725 * @return boolean - true if success, false if any error occurred 726 */ 727 private function RDP_EvaluateEqualityExpression() 728 { 729 if (!$this->RDP_EvaluateRelationExpression()) { 730 return false; 731 } 732 while (($this->RDP_pos + 1) < $this->RDP_count) { 733 $token = $this->RDP_tokens[++$this->RDP_pos]; 734 switch (strtolower((string) $token[0])) { |
#29 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(912): ExpressionManager->RDP_EvaluateEqualityExpression() 907 while (($this->RDP_pos + 1) < $this->RDP_count) { 908 $token = $this->RDP_tokens[++$this->RDP_pos]; 909 switch (strtolower((string) $token[0])) { 910 case '&&': 911 case 'and': 912 if ($this->RDP_EvaluateEqualityExpression()) { 913 if (!$this->RDP_EvaluateBinary($token)) { 914 return false; 915 } 916 // else continue 917 } else { |
#30 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(935): ExpressionManager->RDP_EvaluateLogicalAndExpression() 930 * Process "a || b" or "a or b" 931 * @return boolean - true if success, false if any error occurred 932 */ 933 private function RDP_EvaluateLogicalOrExpression() 934 { 935 if (!$this->RDP_EvaluateLogicalAndExpression()) { 936 return false; 937 } 938 while (($this->RDP_pos + 1) < $this->RDP_count) { 939 $token = $this->RDP_tokens[++$this->RDP_pos]; 940 switch (strtolower((string) $token[0])) { |
#31 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(795): ExpressionManager->RDP_EvaluateLogicalOrExpression() 790 return false; 791 } 792 } else { 793 // not an assignment expression, so try something else 794 $this->RDP_pos -= 2; 795 return $this->RDP_EvaluateLogicalOrExpression(); 796 } 797 } else { 798 return $this->RDP_EvaluateLogicalOrExpression(); 799 } 800 } |
#32 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(809): ExpressionManager->RDP_EvaluateExpression() 804 * @return boolean - true if success, false if any error occurred 805 */ 806 807 private function RDP_EvaluateExpressions() 808 { 809 $evalStatus = $this->RDP_EvaluateExpression(); 810 if (!$evalStatus) { 811 return false; 812 } 813 while (++$this->RDP_pos < $this->RDP_count) { 814 $token = $this->RDP_tokens[$this->RDP_pos]; |
#33 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(608): ExpressionManager->RDP_EvaluateExpressions() 603 $this->varsUsed = array(); 604 $this->jsExpression = null; 605 606 if ($this->HasSyntaxErrors()) { 607 return false; 608 } elseif ($this->RDP_EvaluateExpressions()) { 609 if ($this->RDP_pos < $this->RDP_count) { 610 $this->RDP_AddError(self::gT("Extra tokens found"), $this->RDP_tokens[$this->RDP_pos]); 611 return false; 612 } 613 $this->RDP_result = $this->RDP_StackPop(); |
#34 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_core_helper.php(1906): ExpressionManager->RDP_Evaluate("(( is_numeric(844887X59X1002SQ001.NAOK) || is_empty(844887X59X10...") 1901 { 1902 $this->groupSeq = $groupSeq; 1903 $this->questionSeq = $questionSeq; 1904 1905 $expr = $this->ExpandThisVar($expr); 1906 $status = $this->RDP_Evaluate($expr); 1907 if (!$status) { 1908 return false; // if there are errors in the expression, hide it? 1909 } 1910 $result = $this->GetResult(); 1911 if (is_null($result)) { |
#35 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(6417): ExpressionManager->ProcessBooleanExpression("(( is_numeric(844887X59X1002SQ001.NAOK) || is_empty(844887X59X10...", 1, 14) 6412 6413 // do this even is starts irrelevant, else will never show this information. 6414 if (!$qhidden) { 6415 $validationEqns = $LEM->qid2validationEqn[$qid]['eqn']; 6416 $validationEqn = implode(' and ', $validationEqns); 6417 $qvalid = $LEM->em->ProcessBooleanExpression($validationEqn, $qInfo['gseq'], $qInfo['qseq']); 6418 $hasErrors = $LEM->em->HasErrors(); 6419 6420 if (!$hasErrors) { 6421 $validationJS = $LEM->em->GetJavaScriptEquivalentOfExpression(); 6422 } |
#36 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5696): LimeExpressionManager->_ValidateQuestion(14, true) 5691 5692 ///////////////////////////////////////////////////////// 5693 // CHECK EACH QUESTION, AND SET GROUP-LEVEL PROPERTIES // 5694 ///////////////////////////////////////////////////////// 5695 for ($i = $groupSeqInfo['qstart']; $i <= $groupSeqInfo['qend']; ++$i) { 5696 $qStatus = $LEM->_ValidateQuestion($i, $force); 5697 $updatedValues = array_merge($updatedValues, $qStatus['updatedValues']); 5698 5699 if ($gRelInfo['result'] == true && $qStatus['relevant'] == true) { 5700 $grel = $gRelInfo['result']; // true; // at least one question relevant 5701 } |
#37 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5421): LimeExpressionManager->_ValidateGroup(1, true) 5416 'invalidSQs' => (isset($result['invalidSQs']) ? $result['invalidSQs'] : ''), 5417 ]; 5418 return $LEM->lastMoveResult; 5419 } 5420 5421 $result = $LEM->_ValidateGroup($LEM->currentGroupSeq, $force); 5422 if (is_null($result)) { 5423 return null; // invalid group - either bad number, or no questions within it 5424 } 5425 $message .= $result['message']; 5426 $updatedValues = array_merge($updatedValues, $result['updatedValues']); |
#38 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(1002): LimeExpressionManager::JumpTo(3, false, true, true) 0997 if ($this->sMove > 0 && (($this->sMove <= $_SESSION[$this->LEMsessid]['step']) || (isset($_SESSION[$this->LEMsessid]['maxstep']) && $this->sMove <= $_SESSION[$this->LEMsessid]['maxstep']))) { 0998 $this->aMoveResult = LimeExpressionManager::JumpTo($this->sMove, false); 0999 } 1000 } elseif (isNumericInt($this->sMove) && $this->aSurveyInfo['questionindex'] == 2) { 1001 $this->sMove = (int) $this->sMove; 1002 $this->aMoveResult = LimeExpressionManager::JumpTo($this->sMove, false, true, true); 1003 } 1004 1005 if (!$this->aMoveResult && !($this->sSurveyMode != 'survey' && $_SESSION[$this->LEMsessid]['step'] == 0)) { 1006 // Just in case not set via any other means, but don't do this if it is the welcome page 1007 /* GetLastMoveResult reset substitutionNum in EM core if param is true, this break in all in one mode (see #13725) */ |
#39 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(663): SurveyRuntimeHelper->setMoveResult() 658 $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM 659 $this->initTotalAndMaxSteps(); 660 $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page 661 if ($this->sMove != 'clearcancel' && $this->sMove != 'confirmquota') { 662 $this->checkPrevStep(); // Check if prev step is set, else set it 663 $this->setMoveResult(); 664 $this->checkClearCancel(); 665 $this->setPrevStep(); 666 $this->checkIfFinished(); 667 $this->setStep(); 668 |
#40 |
+
–
/media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(207): SurveyRuntimeHelper->initMove() 202 // 1: We check if token and/or captcha form shouls be shown 203 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 204 $this->showTokenOrCaptchaFormsIfNeeded(); 205 } 206 if (!$this->previewgrp && !$this->previewquestion) { 207 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 208 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 209 if (EmCacheHelper::useCache()) { 210 $this->aSurveyInfo['emcache'] = true; 211 } 212 $this->checkQuotas(); // check quotas (then the process will stop here) |
#41 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/survey/SurveyIndex.php(662): SurveyRuntimeHelper->run(844887,
array("surveyid" => 844887, "thissurvey" => array("sid" =>
844887, "owner_id" => 1, "gsid" => 1, "admin" =>
"Amministratore OpenSurvey.it", ...), "thisstep" => 1, "tokensexist"
=> 0, ...)) 657 unset($redata); 658 $redata = compact(array_keys(get_defined_vars())); 659 Yii::import('application.helpers.SurveyRuntimeHelper'); 660 $tmp = new SurveyRuntimeHelper(); 661 // try { 662 $tmp->run($surveyid, $redata); 663 // } catch (WrongTemplateVersionException $ex) { 664 // echo $ex->getMessage(); 665 // } 666 } 667 |
#42 |
+
–
/media/shnoulle/data/webdev/noplugin/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
#43 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#44 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "844887")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#45 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(SurveyIndex) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#46 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(SurveyIndex, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#47 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#48 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#49 |
+
–
/media/shnoulle/data/webdev/noplugin/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#50 |
+
–
/media/shnoulle/data/webdev/noplugin/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |