S:\WebSites\WinPredict\Prod\Site\WebSite\content\protected\components\Api.php(835)
823 824 if (!empty($get_json)) { 825 $result = json_decode($get_json); 826 } 827 828 return $result; 829 } 830 831 // Get Predictors 832 public function getPredictors($filter, $PredictorId = null) { 833 834 $result = ''; 835 if (!Yii::app()->user->id) { 836 $filter['userId'] = 'null'; 837 } else { 838 $filter['userId'] = Yii::app()->user->id; 839 } 840 841 $ParamUrl = ''; 842 if ($filter) { 843 $ParamUrl = $this->setParam($filter); 844 } 845 846 $get_json = $this->rest->get('/api/v1/predictors/' . $PredictorId . $ParamUrl); 847
#0 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\db\CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\db\CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\base\CModule.php(387): CDbConnection->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CDbHttpSession.php(175): CModule->getComponent("db") 170 { 171 if($this->_db!==null) 172 return $this->_db; 173 elseif(($id=$this->connectionID)!==null) 174 { 175 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 176 return $this->_db; 177 else 178 throw new CException(Yii::t('yii','CDbHttpSession.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 179 array('{id}'=>$id))); 180 } |
#4 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CDbHttpSession.php(221): CDbHttpSession->getDbConnection() 216 * @param string $id session ID 217 * @return string the session data 218 */ 219 public function readSession($id) 220 { 221 $db=$this->getDbConnection(); 222 if($db->getDriverName()=='sqlsrv' || $db->getDriverName()=='mssql' || $db->getDriverName()=='dblib') 223 $select='CONVERT(VARCHAR(MAX), data)'; 224 else 225 $select='data'; 226 $data=$db->createCommand() |
#5 |
unknown(0): CDbHttpSession->readSession("kpsucu4gmvh6e1mfsdph6a75o4")
|
#6 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CHttpSession.php(114): session_start() 109 public function open() 110 { 111 if($this->getUseCustomStorage()) 112 @session_set_save_handler(array($this,'openSession'),array($this,'closeSession'),array($this,'readSession'),array($this,'writeSession'),array($this,'destroySession'),array($this,'gcSession')); 113 114 @session_start(); 115 if(YII_DEBUG && session_id()=='') 116 { 117 $message=Yii::t('yii','Failed to start session.'); 118 if(function_exists('error_get_last')) 119 { |
#7 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CHttpSession.php(88): CHttpSession->open() 83 public function init() 84 { 85 parent::init(); 86 87 if($this->autoStart) 88 $this->open(); 89 register_shutdown_function(array($this,'close')); 90 } 91 92 /** 93 * Returns a value indicating whether to use custom session storage. |
#8 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\base\CModule.php(387): CHttpSession->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#9 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CWebApplication.php(201): CModule->getComponent("session") 196 /** 197 * @return CHttpSession the session component 198 */ 199 public function getSession() 200 { 201 return $this->getComponent('session'); 202 } 203 204 /** 205 * @return CWebUser the user session information 206 */ |
#10 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\auth\CWebUser.php(199): CWebApplication->getSession() 194 * performing cookie-based authentication if enabled, and updating the flash variables. 195 */ 196 public function init() 197 { 198 parent::init(); 199 Yii::app()->getSession()->open(); 200 if($this->getIsGuest() && $this->allowAutoLogin) 201 $this->restoreFromCookie(); 202 elseif($this->autoRenewCookie && $this->allowAutoLogin) 203 $this->renewCookie(); 204 if($this->autoUpdateFlash) |
#11 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\content\protected\modules\auth\components\AuthWebUser.php(29): CWebUser->init() 24 /** 25 * Initializes the component. 26 */ 27 public function init() 28 { 29 parent::init(); 30 $this->setIsAdmin(in_array($this->name, $this->admins)); 31 } 32 33 /** 34 * Returns whether the logged in user is an administrator. |
#12 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\base\CModule.php(387): AuthWebUser->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#13 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\base\CModule.php(103): CModule->getComponent("user") 098 * @return mixed the named property value 099 */ 100 public function __get($name) 101 { 102 if($this->hasComponent($name)) 103 return $this->getComponent($name); 104 else 105 return parent::__get($name); 106 } 107 108 /** |
#14 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\content\protected\components\Api.php(835): CModule->__get("user") 830 831 // Get Predictors 832 public function getPredictors($filter, $PredictorId = null) { 833 834 $result = ''; 835 if (!Yii::app()->user->id) { 836 $filter['userId'] = 'null'; 837 } else { 838 $filter['userId'] = Yii::app()->user->id; 839 } 840 |
#15 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\content\protected\controllers\PredictorsController.php(91): Api->getPredictors(null, "12602") 86 87 public function actionView($id) { 88 89 $webApi = new Api(); 90 91 $data = $webApi->getPredictors(null, $id); 92 93 if ($data == null) { 94 $this->redirect('/predictors'); 95 //throw new CHttpException(404, 'The requested page does not exist.'); 96 } |
#16 |
unknown(0): PredictorsController->actionView("12602")
|
#17 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\actions\CAction.php(108): ReflectionMethod->invokeArgs(PredictorsController, array("12602")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#18 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\actions\CInlineAction.php(47): CAction->runWithParamsInternal(PredictorsController, ReflectionMethod, array("id" => "12602")) 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 } |
#19 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CController.php(308): CInlineAction->runWithParams(array("id" => "12602")) 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; |
#20 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\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(); |
#21 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\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); |
#22 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CWebApplication.php(282): CController->run("view") 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))); |
#23 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\web\CWebApplication.php(141): CWebApplication->runController("predictors/view") 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. |
#24 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\framework\base\CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#25 |
+
–
S:\WebSites\WinPredict\Prod\Site\WebSite\content\index.php(53): CApplication->run() 48 // specify how many levels of call stack should be shown in each log message 49 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 50 51 require_once($env->yiiPath); 52 $env->runYiiStatics(); 53 Yii::createWebApplication($env->configWeb)->run(); |