/var/www/html/survey/framework/db/ar/CActiveRecord.php(2387)
2375 2376 /** 2377 * Constructor. 2378 * @param CActiveRecord $model the model instance 2379 * @throws CDbException if specified table for active record class cannot be found in the database 2380 */ 2381 public function __construct($model) 2382 { 2383 $this->_modelClassName=get_class($model); 2384 2385 $tableName=$model->tableName(); 2386 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2387 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2388 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2389 2390 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2391 { 2392 $table->primaryKey=$modelPk; 2393 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2394 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2395 elseif(is_array($table->primaryKey)) 2396 { 2397 foreach($table->primaryKey as $name) 2398 { 2399 if(isset($table->columns[$name]))
| #0 |
+
–
/var/www/html/survey/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(UniqueNotification) 406 { 407 $className=get_class($this); 408 if(!array_key_exists($className,self::$_md)) 409 { 410 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 411 self::$_md[$className]=new CActiveRecordMetaData($this); 412 } 413 return self::$_md[$className]; 414 } 415 416 /** |
| #1 |
+
–
/var/www/html/survey/framework/db/ar/CActiveRecord.php(79): CActiveRecord->getMetaData() 74 if($scenario===null) // internally used by populateRecord() and model() 75 return; 76 77 $this->setScenario($scenario); 78 $this->setIsNewRecord(true); 79 $this->_attributes=$this->getMetaData()->attributeDefaults; 80 81 $this->init(); 82 83 $this->attachBehaviors($this->behaviors()); 84 $this->afterConstruct(); |
| #2 |
+
–
/var/www/html/survey/application/models/Notification.php(40): CActiveRecord->__construct() 35 return; 36 } 37 else 38 { 39 // Why not Zoidberg? (\/) (°,,,°) (\/) 40 parent::__construct(); 41 } 42 43 $options = $this->checkShortcuts($options); 44 45 $this->checkMandatoryFields($options, array( |
| #3 |
+
–
/var/www/html/survey/application/models/UniqueNotification.php(31): Notification->__construct(array("title"
=> "New update available (Current version: 170124)", "markAsNew"
=> false, "message" => "Ein Sicherheitsupdate steht zur
Verfügung.<a href=/survey/index...", "user_id" => "1")) 26 * As parent constructor but with markAsUndread 27 * @return UniqueNotification 28 */ 29 public function __construct($options = null) 30 { 31 parent::__construct($options); 32 33 if (isset($options['markAsNew'])) 34 { 35 $this->markAsNew = $options['markAsNew']; 36 } |
| #4 |
+
–
/var/www/html/survey/application/models/UniqueNotification.php(97): UniqueNotification->__construct(array("title"
=> "New update available (Current version: 170124)", "markAsNew"
=> false, "message" => "Ein Sicherheitsupdate steht zur
Verfügung.<a href=/survey/index...", "user_id" => "1")) 092 $users = User::model()->findAll(); 093 } 094 095 foreach ($users as $user) { 096 $options['user_id'] = $user->uid; 097 $not = new UniqueNotification($options); 098 $not->save(); 099 } 100 } 101 } |
| #5 |
+
–
/var/www/html/survey/application/core/Survey_Common_Action.php(415): UniqueNotification::broadcast(array("title"
=> "New update available (Current version: 170124)", "markAsNew"
=> false, "message" => "Ein Sicherheitsupdate steht zur
Verfügung.<a href=/survey/index..."), array(User, User, User, User))
410 { 411 UniqueNotification::broadcast(array( 412 'title' => gT('New update available')." (".gT("Current version: ").$currentVersion.")", 413 'markAsNew' => false, 414 'message' => gT('A security update is available.')."<a href=".$urlUpdate.">".gT('Click here to use ComfortUpdate.')."</a>" 415 ), $superadmins); 416 } 417 } 418 } 419 } 420 |
| #6 |
+
–
/var/www/html/survey/application/core/Survey_Common_Action.php(290): Survey_Common_Action->_updatenotification() 285 } 286 else 287 { 288 /// 289 $this->_fullpagebar($aData); 290 $this->_updatenotification(); 291 $this->_notifications(); 292 //// TODO : Move this div inside each correct view ASAP ! 293 echo ' 294 <!-- Full page, started in Survey_Common_Action::render_wrapped_template() --> 295 <div class="container-fluid full-page-wrapper" id="in_survey_common_action"> |
| #7 |
+
–
/var/www/html/survey/application/controllers/admin/databaseupdate.php(49): Survey_Common_Action->_renderWrappedTemplate("update", array("output" => "<div class="jumbotron message-box">
<h2 class="">Datenbank a..."), array("display" => array("header" => true), "updatedbaction" => true)) 44 $aViewUrls['output'] = CheckForDBUpgrades(); 45 } 46 47 $aData['updatedbaction'] = true; 48 49 $this->_renderWrappedTemplate('update', $aViewUrls, $aData); 50 51 //$aData = array_merge($aData, $aViewUrls); 52 //Yii::app()->getController()->renderPartial('databaseupdate/db', $aData); 53 } 54 } |
| #8 |
unknown(0): databaseupdate->db(null)
|
| #9 |
+
–
/var/www/html/survey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(databaseupdate, array(null)) 104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
| #10 |
+
–
/var/www/html/survey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(databaseupdate, ReflectionMethod, array("sa" => "db")) 096 $oMethod = new ReflectionMethod($this, $sDefault); 097 } 098 099 // We're all good to go, let's execute it 100 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 101 return parent::runWithParamsInternal($this, $oMethod, $params); 102 } 103 104 /** 105 * Some functions have different parameters, which are just an alias of the 106 * usual parameters we're getting in the url. This function just populates |
| #11 |
+
–
/var/www/html/survey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array("sa" => "db")) 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; |
| #12 |
+
–
/var/www/html/survey/framework/web/CController.php(286): CController->runAction(databaseupdate) 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(); |
| #13 |
+
–
/var/www/html/survey/framework/web/CController.php(265): CController->runActionWithFilters(databaseupdate, 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); |
| #14 |
+
–
/var/www/html/survey/application/controllers/AdminController.php(177): CController->run("databaseupdate") 172 $this->redirect(array('/admin/authentication/sa/login')); 173 } 174 175 } 176 177 return parent::run($action); 178 } 179 180 /** 181 * Routes all the actions to their respective places 182 * |
| #15 |
+
–
/var/www/html/survey/framework/web/CWebApplication.php(282): AdminController->run("databaseupdate") 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))); |
| #16 |
+
–
/var/www/html/survey/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/databaseupdate/sa/db") 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. |
| #17 |
+
–
/var/www/html/survey/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 /** |
| #18 |
+
–
/var/www/html/survey/index.php(214): CApplication->run() 209 die (sprintf('%s should be writable by the webserver (766 or 776).', $sDefaultRuntimePath)); 210 } 211 } 212 213 Yii::$enableIncludePath = false; 214 Yii::createApplication('LSYii_Application', $config)->run(); 215 216 /* End of file index.php */ 217 /* Location: ./index.php */ |