/media/shnoulle/data/webdev/master/application/helpers/expressions/em_core_helper.php(2308)
2296 * This version properly handles nested curly braces and curly braces within strings within curly braces - both of which are needed to better support JavaScript 2297 * Users still need to add a space or carriage return after opening braces (and ideally before closing braces too) to avoid having them treated as expressions. 2298 * @param string $src 2299 * @return array 2300 */ 2301 public function asSplitStringOnExpressions($src) 2302 { 2303 // Empty string, return an array 2304 if ($src === "") { 2305 return array(); 2306 } 2307 // No replacement to do, preg_split get more time than strpos 2308 if (strpos($src, "{") === false || $src === "{" || $src === "}") { 2309 return array ( 2310 0 => array ($src,0,'STRING') 2311 ); 2312 }; 2313 2314 // Seems to need split and replacement 2315 $parts = preg_split($this->RDP_ExpressionRegex, $src, -1, (PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE)); 2316 2317 $count = count($parts); 2318 $tokens = array(); 2319 $inSQString = false; 2320 $inDQString = false;
#0 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/expressions/em_core_helper.php(2308): strpos(null, "{") 2303 // Empty string, return an array 2304 if ($src === "") { 2305 return array(); 2306 } 2307 // No replacement to do, preg_split get more time than strpos 2308 if (strpos($src, "{") === false || $src === "{" || $src === "}") { 2309 return array ( 2310 0 => array ($src,0,'STRING') 2311 ); 2312 }; 2313 |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/expressions/em_core_helper.php(2003): ExpressionManager->asSplitStringOnExpressions(null) 1998 * @return string 1999 */ 2000 public function sProcessStringContainingExpressionsHelper($src, $questionNum, $staticReplacement = false) 2001 { 2002 // tokenize string by the {} pattern, properly dealing with strings in quotations, and escaped curly brace values 2003 $stringParts = $this->asSplitStringOnExpressions($src); 2004 $resolvedParts = array(); 2005 $prettyPrintParts = array(); 2006 $this->ResetErrorsAndWarnings(); 2007 foreach ($stringParts as $stringPart) { 2008 if ($stringPart[2] == 'STRING') { |
#2 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/expressions/em_core_helper.php(1974): ExpressionManager->sProcessStringContainingExpressionsHelper(null, 0, false) 1969 1970 $prettyPrintIterationDone = false; 1971 for ($i = 1; $i <= $numRecursionLevels; ++$i) { 1972 // TODO - Since want to use <span> for dynamic substitution, what if there are recursive substititons? 1973 $prevResult = $result; 1974 $result = $this->sProcessStringContainingExpressionsHelper($result, $questionNum, $staticReplacement); 1975 if ($result === $prevResult) { 1976 // No update during process : can exit of iteration 1977 if (!$prettyPrintIterationDone) { 1978 $prettyPrint = $this->prettyPrintSource; 1979 } |
#3 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/expressions/em_manager_helper.php(4158): ExpressionManager->sProcessStringContainingExpressions(null, 0, 3, 1, ...) 4153 $questionSeq = isset($LEM->questionId2questionSeq[$questionNum]) ? $LEM->questionId2questionSeq[$questionNum] : -1; 4154 $groupSeq = isset($LEM->questionId2groupSeq[$questionNum]) ? $LEM->questionId2groupSeq[$questionNum] : -1; 4155 } 4156 $stringToParse = $string; // decode called later htmlspecialchars_decode($string,ENT_QUOTES); 4157 $qnum = is_null($questionNum) ? 0 : $questionNum; 4158 $result = $LEM->em->sProcessStringContainingExpressions($stringToParse, $qnum, $numRecursionLevels, $whichPrettyPrintIteration, $groupSeq, $questionSeq, $staticReplacement); 4159 4160 if ($timeit) { 4161 $LEM->runtimeTimings[] = [__METHOD__, (microtime(true) - $now)]; 4162 } 4163 |
#4 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(1808): LimeExpressionManager::ProcessString(null, null, null, 3, ...) 1803 } 1804 $this->gid = $this->aStepInfo['gid']; 1805 $this->groupname = $this->aStepInfo['gname']; 1806 $this->groupdescription = $this->aStepInfo['gtext']; 1807 $this->groupname = LimeExpressionManager::ProcessString($this->groupname, null, null, 3, 1, false, true, false); 1808 $this->groupdescription = LimeExpressionManager::ProcessString($this->groupdescription, null, null, 3, 1, false, true, false); 1809 } 1810 } 1811 } 1812 1813 private function fixMaxStep() |
#5 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/SurveyRuntimeHelper.php(220): SurveyRuntimeHelper->setGroup() 215 $this->setNotAnsweredAndNotValidated(); 216 } else { 217 $this->setPreview(); 218 } 219 $this->moveSubmitIfNeeded(); 220 $this->setGroup(); 221 $this->fixMaxStep(); 222 223 //****************************************************************************************************** 224 //PRESENT SURVEY 225 //****************************************************************************************************** |
#6 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/survey/SurveyIndex.php(641): SurveyRuntimeHelper->run(624376,
array("surveyid" => 624376, "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "tokenencryptionoptions" => "",
"template" => "vanilla", ...), "thisstep" => 0, "tokensexist"
=> 0, ...)) 636 unset($redata); 637 $redata = compact(array_keys(get_defined_vars())); 638 Yii::import('application.helpers.SurveyRuntimeHelper'); 639 $tmp = new SurveyRuntimeHelper(); 640 // try { 641 $tmp->run($surveyid, $redata); 642 // } catch (WrongTemplateVersionException $ex) { 643 // echo $ex->getMessage(); 644 // } 645 } 646 |
#7 |
+
–
/media/shnoulle/data/webdev/master/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! |
#8 |
+
–
/media/shnoulle/data/webdev/master/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. |
#9 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "624376")) 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; |
#10 |
+
–
/media/shnoulle/data/webdev/master/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(); |
#11 |
+
–
/media/shnoulle/data/webdev/master/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); |
#12 |
+
–
/media/shnoulle/data/webdev/master/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))); |
#13 |
+
–
/media/shnoulle/data/webdev/master/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. |
#14 |
+
–
/media/shnoulle/data/webdev/master/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 /** |
#15 |
+
–
/media/shnoulle/data/webdev/master/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 */ |