/media/shnoulle/data/webdev/master/application/helpers/common_helper.php(4559)
4547 $ans = str_replace(array('{', '}'), array('{ ', ' }'), $ans); 4548 return $ans; 4549 } 4550 4551 /** 4552 * Decode a json string, sometimes needs stripslashes 4553 * 4554 * @param string $jsonString 4555 * @return mixed 4556 */ 4557 function json_decode_ls($jsonString) 4558 { 4559 $decoded = json_decode($jsonString, true); 4560 4561 if (is_null($decoded) && !empty($jsonString)) { 4562 // probably we need stipslahes 4563 $decoded = json_decode(stripslashes($jsonString), true); 4564 } 4565 4566 return $decoded; 4567 } 4568 4569 /** 4570 * Return accepted codingsArray for importing files 4571 *
| #0 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/common_helper.php(4559): json_decode(null, true) 4554 * @param string $jsonString 4555 * @return mixed 4556 */ 4557 function json_decode_ls($jsonString) 4558 { 4559 $decoded = json_decode($jsonString, true); 4560 4561 if (is_null($decoded) && !empty($jsonString)) { 4562 // probably we need stipslahes 4563 $decoded = json_decode(stripslashes($jsonString), true); 4564 } |
| #1 |
+
–
/media/shnoulle/data/webdev/master/application/models/SurveyDynamic.php(408): json_decode_ls(null) 403 404 // Upload question 405 if ($oFieldMap->type == Question::QT_VERTICAL_FILE_UPLOAD && strpos((string) $oFieldMap->fieldname, 'filecount') === false) { 406 $sSurveyEntry = "<table class='table table-condensed upload-question'>"; 407 $aQuestionAttributes = QuestionAttribute::model()->getQuestionAttributes($oFieldMap->qid); 408 $aFilesInfo = json_decode_ls($this->$colName); 409 if (!empty($aFilesInfo)) { 410 foreach ($aFilesInfo as $iFileIndex => $fileInfo) { 411 if (empty($fileInfo)) { 412 continue; 413 } |
| #2 |
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/base/CComponent.php(612) : eval()'d code(1): SurveyDynamic->getExtendedData("416742X277X2679", "en", "eyJmaWVsZG5hbWUiOiI0MTY3NDJYMjc3WDI2NzkiLCJ0eXBlIjoifCIsInNpZCI6...")
|
| #3 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/base/CComponent.php(612): eval() 607 if(is_string($_expression_)) 608 { 609 extract($_data_); 610 try 611 { 612 return eval('return ' . $_expression_ . ';'); 613 } 614 catch (ParseError $e) 615 { 616 return false; 617 } |
| #4 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CDataColumn.php(148): CComponent->evaluateExpression("$data->getExtendedData("416742X277X2679", "en", "eyJmaWVsZG5hbWU...", array("data" => SurveyDynamic, "row" => 0)) 143 */ 144 public function getDataCellContent($row) 145 { 146 $data=$this->grid->dataProvider->data[$row]; 147 if($this->value!==null) 148 $value=$this->evaluateExpression($this->value,array('data'=>$data,'row'=>$row)); 149 elseif($this->name!==null) 150 $value=CHtml::value($data,$this->name); 151 return $value===null ? $this->grid->nullDisplay : $this->grid->getFormatter()->format($value,$this->type); 152 } 153 } |
| #5 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CGridColumn.php(237): CDataColumn->getDataCellContent(0) 232 * @param mixed $data the data associated with the row 233 * @deprecated since 1.1.16. Use {@link getDataCellContent()} instead. 234 */ 235 protected function renderDataCellContent($row,$data) 236 { 237 echo $this->getDataCellContent($row); 238 } 239 240 /** 241 * Returns the filter cell content. 242 * The default implementation simply returns an empty column. |
| #6 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CGridColumn.php(160): CGridColumn->renderDataCellContent(0, SurveyDynamic) 155 else 156 $options['class']=$class; 157 } 158 } 159 echo CHtml::openTag('td',$options); 160 $this->renderDataCellContent($row,$data); 161 echo '</td>'; 162 } 163 164 /** 165 * Renders the footer cell. |
| #7 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CGridView.php(655): CGridColumn->renderDataCell(0) 650 * @param integer $row 651 * @since 1.1.16 652 */ 653 protected function renderDataCell($column, $row) 654 { 655 $column->renderDataCell($row); 656 } 657 658 /** 659 * @return boolean whether the table should render a footer. 660 * This is true if any of the {@link columns} has a true {@link CGridColumn::hasFooter} value. |
| #8 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CGridView.php(639): CGridView->renderDataCell(TbDataColumn, 0) 634 $htmlOptions['class']=$class; 635 } 636 637 echo CHtml::openTag('tr', $htmlOptions)."\n"; 638 foreach($this->columns as $column) 639 $this->renderDataCell($column, $row); 640 echo "</tr>\n"; 641 } 642 643 /** 644 * A seam for people extending CGridView to be able to hook onto the data cell rendering process. |
| #9 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CGridView.php(595): CGridView->renderTableRow(0) 590 echo "<tbody>\n"; 591 592 if($n>0) 593 { 594 for($row=0;$row<$n;++$row) 595 $this->renderTableRow($row); 596 } 597 else 598 { 599 echo '<tr><td colspan="'.count($this->columns).'" class="empty">'; 600 $this->renderEmptyText(); |
| #10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/grid/CGridView.php(505): CGridView->renderTableBody() 500 if($this->dataProvider->getItemCount()>0 || $this->showTableOnEmpty) 501 { 502 echo "<table class=\"{$this->itemsCssClass}\">\n"; 503 $this->renderTableHeader(); 504 ob_start(); 505 $this->renderTableBody(); 506 $body=ob_get_clean(); 507 $this->renderTableFooter(); 508 echo $body; // TFOOT must appear before TBODY according to the standard. 509 echo "</table>"; 510 } |
| #11 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/CBaseListView.php(181): CGridView->renderItems() 176 protected function renderSection($matches) 177 { 178 $method='render'.$matches[1]; 179 if(method_exists($this,$method)) 180 { 181 $this->$method(); 182 $html=ob_get_contents(); 183 ob_clean(); 184 return $html; 185 } 186 else |
| #12 |
unknown(0): CBaseListView->renderSection(array("{items}", "items"))
|
| #13 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/CBaseListView.php(164): preg_replace_callback("/{(\w+)}/", array(CLSGridView, "renderSection"), "
<div id="bottom-scroller" class="content-right scrolling-wrappe...") 159 * The rendering results will replace the corresponding placeholders in {@link template}. 160 */ 161 public function renderContent() 162 { 163 ob_start(); 164 echo preg_replace_callback("/{(\w+)}/",array($this,'renderSection'),$this->template); 165 ob_end_flush(); 166 } 167 168 /** 169 * Renders a section. |
| #14 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/zii/widgets/CBaseListView.php(149): CBaseListView->renderContent() 144 { 145 $this->registerClientScript(); 146 147 echo CHtml::openTag($this->tagName,$this->htmlOptions)."\n"; 148 149 $this->renderContent(); 150 $this->renderKeys(); 151 152 echo CHtml::closeTag($this->tagName); 153 } 154 |
| #15 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(182): CBaseListView->run() 177 return ob_get_clean(); 178 } 179 else 180 { 181 $widget=$this->createWidget($className,$properties); 182 $widget->run(); 183 return $widget; 184 } 185 } 186 187 /** |
| #16 |
+
–
/media/shnoulle/data/webdev/master/application/views/responses/partial/responseListTable.php(256): CBaseController->widget("application.extensions.admin.grid.CLSGridView",
array("dataProvider" => LSCActiveDataProvider, "filter" =>
SurveyDynamic, "columns" => array(array("id" => "id", "class"
=> "CCheckBoxColumn", "selectableRows" => "100",
"headerHtmlOptions" => array("class" => "ls-sticky-column"), ...),
array("header" => "id", "name" => "id"), array("header" =>
"seed", "name" => "seed"), array("header" => "lastpage", "name"
=> "lastpage", "type" => "number", "filter" => "<input
class="form-control" type="text" name="SurveyDynamic[last..."), ...),
"id" => "responses-grid", ...)) 251 'headerHtmlOptions' => ['class' => 'ls-sticky-column'], 252 'filterHtmlOptions' => ['class' => 'ls-sticky-column'], 253 'htmlOptions' => ['class' => 'text-center ls-sticky-column'], 254 ]; 255 256 $this->widget( 257 'application.extensions.admin.grid.CLSGridView', 258 [ 259 'dataProvider' => $model->search(), 260 'filter' => $model, 261 'columns' => $aColumns, |
| #17 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/media/shnoulle/data/webdev/master/application/views/responses/p...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
| #18 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/
media/shnoulle/data/webdev/master/application/views/responses/p...",
array("surveyid" => 416742, "dateformatdetails" => array("phpdate"
=> "d.m.Y", "jsdate" => "DD.MM.YYYY", "dateformat" =>
"dd.mm.yyyy"), "model" => SurveyDynamic, "bHaveToken" => false,
...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
| #19 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(872): CBaseController->renderFile("/
media/shnoulle/data/webdev/master/application/views/responses/p...",
array("surveyid" => 416742, "dateformatdetails" => array("phpdate"
=> "d.m.Y", "jsdate" => "DD.MM.YYYY", "dateformat" =>
"dd.mm.yyyy"), "model" => SurveyDynamic, "bHaveToken" => false,
...), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
| #20 |
+
–
/media/shnoulle/data/webdev/master/application/views/responses/browseindex_view.php(37): CController->renderPartial("partial/
responseListTable", array("surveyid" => 416742, "dateformatdetails"
=> array("phpdate" => "d.m.Y", "jsdate" => "DD.MM.YYYY",
"dateformat" => "dd.mm.yyyy"), "model" => SurveyDynamic,
"bHaveToken" => false, ...), true) 32 <li class="nav-item"><a class="nav-link active" href="#allResponses" aria-controls="allResponses" role="tab" data-bs-toggle="tab"><?php eT('All responses'); ?></a></li> 33 <li class="nav-item"><a class="nav-link" href="#notSubmittedResponses" aria-controls="notSubmittedResponses" role="tab" data-bs-toggle="tab"><?php eT('Saved but not submitted responses'); ?></a></li> 34 </ul> 35 <div class="tab-content p-4 h-100"> 36 <div id="allResponses" class="tab-pane show fade active row"> 37 <?php echo $this->renderPartial( 38 'partial/responseListTable', 39 [ 40 'surveyid' => $surveyid, 41 'dateformatdetails' => $dateformatdetails, 42 'model' => $model, |
| #21 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(126): require("/media/shnoulle/data/webdev/master/application/views/responses/b...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
| #22 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/
media/shnoulle/data/webdev/master/application/views/responses/b...",
array("num_completed_answers" => 1, "num_total_answers" => 1,
"surveyid" => 416742, "dateformatdetails" => array("phpdate" =>
"d.m.Y", "jsdate" => "DD.MM.YYYY", "dateformat" => "dd.mm.yyyy"),
...), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
| #23 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(872): CBaseController->renderFile("/
media/shnoulle/data/webdev/master/application/views/responses/b...",
array("num_completed_answers" => 1, "num_total_answers" => 1,
"surveyid" => 416742, "dateformatdetails" => array("phpdate" =>
"d.m.Y", "jsdate" => "DD.MM.YYYY", "dateformat" => "dd.mm.yyyy"),
...), true) 867 */ 868 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 869 { 870 if(($viewFile=$this->getViewFile($view))!==false) 871 { 872 $output=$this->renderFile($viewFile,$data,true); 873 if($processOutput) 874 $output=$this->processOutput($output); 875 if($return) 876 return $output; 877 else |
| #24 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(785): CController->renderPartial("browseindex_view",
array("num_completed_answers" => 1, "num_total_answers" => 1,
"surveyid" => 416742, "dateformatdetails" => array("phpdate" =>
"d.m.Y", "jsdate" => "DD.MM.YYYY", "dateformat" => "dd.mm.yyyy"),
...), true) 780 */ 781 public function render($view,$data=null,$return=false) 782 { 783 if($this->beforeRender($view)) 784 { 785 $output=$this->renderPartial($view,$data,true); 786 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 787 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 788 789 $this->afterRender($view,$output); 790 |
| #25 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/ResponsesController.php(538): CController->render("browseindex_view",
array("num_completed_answers" => 1, "num_total_answers" => 1,
"surveyid" => 416742, "dateformatdetails" => array("phpdate" =>
"d.m.Y", "jsdate" => "DD.MM.YYYY", "dateformat" => "dd.mm.yyyy"),
...)) 533 $aViewUrls[] = 'savedlist_view'; 534 // =================================================== 535 536 $this->aData = $aData; 537 538 $this->render('browseindex_view', [ 539 // summary table data 540 'num_completed_answers' => $aData['num_completed_answers'], 541 'num_total_answers' => $aData['num_total_answers'], 542 // response table data 543 'surveyid' => $aData['surveyid'], |
| #26 |
unknown(0): ResponsesController->actionBrowse(416742, 0)
|
| #27 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(114): ReflectionMethod->invokeArgs(ResponsesController, array("416742", 0)) 109 elseif($param->isDefaultValueAvailable()) 110 $ps[]=$param->getDefaultValue(); 111 else 112 return false; 113 } 114 $method->invokeArgs($object,$ps); 115 return true; 116 } 117 } |
| #28 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ResponsesController, ReflectionMethod, array("r" => "responses/browse", "surveyId" => "416742")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
| #29 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "responses/browse", "surveyId" => "416742")) 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; |
| #30 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
| #31 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
| #32 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("postOnly + delete, deleteSingle, deleteAttachments")) 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); |
| #33 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): CController->run("browse") 140 $this->redirect(array('/admin/authentication/sa/login')); 141 } 142 } 143 } 144 145 parent::run($action); 146 } 147 148 /** 149 * Load and set session vars 150 * |
| #34 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->run("browse") 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))); |
| #35 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("responses/browse") 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. |
| #36 |
+
–
/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 /** |
| #37 |
+
–
/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 */ |