/var/www/vhosts/ridie.org/protected/components/study/StudyWordDocumentBuilder.php(284)
272 } 273 elseif ($abstractInputType == Study::AbstractInputTypeRepeatedDescribedFileUploadOrLink) 274 { 275 foreach ($study->$relation as $relatedModelInstance) 276 { 277 if($relatedModelInstance->originalFileName != null) 278 { 279 $value = $relatedModelInstance->description . ": " . $relatedModelInstance->originalFileName; 280 $section->addText(self::convertSmartQuotes($value) , $fontStyle, $paragraphStyle); 281 } 282 else 283 { 284 $value .= $relatedModelInstance->description . ": " . $relatedModelInstance->link; 285 $section->addText(self::convertSmartQuotes($value) , $fontStyle, $paragraphStyle); 286 } 287 } 288 } 289 else 290 { 291 throw new Exception("For attribute '$attributeName', '$abstractInputType' is an unknown field type!"); 292 } 293 294 } 295 296 }
#0 |
+
–
/var/www/vhosts/ridie.org/protected/components/study/StudyWordDocumentBuilder.php(182): StudyWordDocumentBuilder::writeFieldValue(Study, "studyStudymaterials", array("RelatedModel" => "StudyStudymaterial", "Relation" => "studyStudymaterials", "Label" => "Upload Study Materials", "Description" => "It is helpful for other researchers to be able to see survey ins...", ...), PHPWord_Section, ...) 177 if($description != '') 178 { $section->addText($description, $fieldDescriptionFontStyle, $fieldDescriptionParagraphStyle); } 179 180 if($study != null) 181 { 182 self::writeFieldValue($study, $attributeName, $attributeMapItem, $section, $fieldValueFontStyle, $fieldValueParagraphStyle); 183 184 self::writeChangeHistory($study, $attributeName, $section, $changeHistoryFontStyle, $changeHistoryParagraphStyle, $changeHistoryTableStyle, $changeHistoryDateCellSize, $changeHistoryValueCellSize); 185 } 186 187 $section->addText('', $fieldSpacingFontStyle, $fieldSpacingParagraphStyle); |
#1 |
+
–
/var/www/vhosts/ridie.org/protected/components/study/StudyMaterialsArchiveBuilder.php(49): StudyWordDocumentBuilder::buildWordDocument("/tmp/Study_66065c2001f768.56221101.docx", Study, false, false, ...) 44 { 45 $showPrivate = StudyRegistrationPhaseLogic::isStudyStoppedOrCompleted($study); 46 $showHidden = false; 47 $respectPerFieldVisibilitySettings = !StudyRegistrationPhaseLogic::isStudyStoppedOrCompleted($study); 48 49 StudyWordDocumentBuilder::buildWordDocument($studyFileTempPath, $study, $showPrivate, $showHidden, $respectPerFieldVisibilitySettings); 50 } 51 else if ($downloadVisibility === CommonConstants::StudyAttachmentVisibilityPublicPrivate) 52 { 53 StudyWordDocumentBuilder::buildWordDocument($studyFileTempPath, $study, true, true, false); 54 } |
#2 |
+
–
/var/www/vhosts/ridie.org/protected/controllers/SiteController.php(63): StudyMaterialsArchiveBuilder::buildMultiStudyZipFile(array("457"), "public") 58 foreach($ids as $id) 59 { 60 UserPermissionsAndWorkflowLogicHelper::assertStudyIsDownloadableByPublic($id); 61 } 62 63 $zipFileInfo = StudyMaterialsArchiveBuilder::buildMultiStudyZipFile($ids, CommonConstants::StudyAttachmentVisibilityPublic); 64 $zipFileName = $zipFileInfo['name']; 65 $zipFilePath = $zipFileInfo['path']; 66 67 $content = file_get_contents($zipFilePath); 68 @unlink($zipFilePath); |
#3 |
+
–
/var/www/vhosts/ridie.org/protected/controllers/SiteController.php(46): SiteController->actionDownloadStudies("457") 41 Yii::app()->getRequest()->sendFile(CommonConstants::StudyRegistrationFieldsExampleTitle . '.docx', $studyFileContents); 42 } 43 44 public function actionDownloadStudy($id) 45 { 46 $this->actionDownloadStudies($id); 47 } 48 49 50 public function actionDownloadStudies($idList) 51 { |
#4 |
unknown(0): SiteController->actionDownloadStudy("457")
|
#5 |
+
–
/var/www/vhosts/yii/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(SiteController, array("457")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#6 |
+
–
/var/www/vhosts/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(SiteController, ReflectionMethod, array("r" => "site/downloadStudy", "id" => "457")) 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 else 49 return $controller->$methodName(); 50 } 51 52 } |
#7 |
+
–
/var/www/vhosts/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "site/downloadStudy", "id" => "457")) 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; |
#8 |
+
–
/var/www/vhosts/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 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(); |
#9 |
+
–
/var/www/vhosts/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, 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); |
#10 |
+
–
/var/www/vhosts/yii/framework/web/CWebApplication.php(282): CController->run("downloadStudy") 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))); |
#11 |
+
–
/var/www/vhosts/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/downloadStudy") 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. |
#12 |
+
–
/var/www/vhosts/yii/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
#13 |
+
–
/var/www/vhosts/ridie.org/index.php(13): CApplication->run() 08 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |