/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/protected/components/Settings.php(35)
23 return $instance; 24 } 25 26 protected function __construct() { } 27 28 private $_settings; 29 30 /** 31 * Initiates the settings 32 * @return array 33 */ 34 public function init(){ 35 $cmd = Yii::app()->db->createCommand(); 36 $result = $cmd->select("*")->from("settings")->queryAll(); 37 if (count($result) > 0) { 38 foreach ($result as $r) { 39 $this->_settings[$r["opt_class"]][$r["opt_key"]] = $r["opt_value"]; 40 } 41 } 42 return $this->_settings; 43 } 44 45 /** 46 * Returns the value of setting key. Returns false if not found 47 * @param string $key
#0 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/db/CDbConnection.php(347): CDbConnection->open() 342 public function setActive($value) 343 { 344 if($value!=$this->_active) 345 { 346 if($value) 347 $this->open(); 348 else 349 $this->close(); 350 } 351 } 352 |
#1 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/db/CDbConnection.php(325): CDbConnection->setActive() 320 */ 321 public function init() 322 { 323 parent::init(); 324 if($this->autoConnect) 325 $this->setActive(true); 326 } 327 328 /** 329 * Returns whether the DB connection is established. 330 * @return boolean whether the DB connection is established |
#2 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/base/CModule.php(394): CDbConnection->init() 389 if(!isset($config['enabled']) || $config['enabled']) 390 { 391 Yii::trace("Loading \"$id\" application component",'system.CModule'); 392 unset($config['enabled']); 393 $component=Yii::createComponent($config); 394 $component->init(); 395 return $this->_components[$id]=$component; 396 } 397 } 398 } 399 |
#3 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/base/CModule.php(103): CModule->getComponent() 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 /** |
#4 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/protected/components/Settings.php(35): CModule->__get() 30 /** 31 * Initiates the settings 32 * @return array 33 */ 34 public function init(){ 35 $cmd = Yii::app()->db->createCommand(); 36 $result = $cmd->select("*")->from("settings")->queryAll(); 37 if (count($result) > 0) { 38 foreach ($result as $r) { 39 $this->_settings[$r["opt_class"]][$r["opt_key"]] = $r["opt_value"]; 40 } |
#5 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/protected/components/Settings.php(21): Settings->init() 16 */ 17 public static function i(){ 18 static $instance = null; 19 if (null === $instance) { 20 $instance = new static(); 21 $instance->init(); 22 } 23 return $instance; 24 } 25 26 protected function __construct() { } |
#6 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/protected/components/abstracts/AbstractAdminSettingsForm.php(198): Settings::i() 193 */ 194 public static function i(){ 195 static $instance = null; 196 if (null === $instance) { 197 $instance = new static(); 198 $data = Settings::i()->getByClass(get_called_class()); 199 if (!is_null($data)) { 200 $instance->attributes = $data; 201 } 202 } 203 return $instance; |
#7 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/protected/components/ModuleLoader.php(53): AbstractAdminSettingsForm::i() 48 /** 49 * Loads all the modules 50 * @param boolean $refresh 51 */ 52 public static function loadModules($refresh=false){ 53 date_default_timezone_set(BasicSettings::i()->timezone); 54 if(!Yii::app()->user->isGuest){ 55 $model = User::model()->find("user_id = :user_id AND user_status = 'active'",array(":user_id"=>Yii::app()->user->Id)); 56 if(is_null($model)){ 57 Yii::app()->user->logout(); 58 Yii::app()->user->returnUrl = Yii::app()->request->getRequestUri(); |
#8 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/base/CComponent.php(559): ModuleLoader::loadModules() 554 if(is_array($handler)) 555 { 556 // an array: 0 - object, 1 - method name 557 list($object,$method)=$handler; 558 if(is_string($object)) // static method call 559 call_user_func($handler,$event); 560 elseif(method_exists($object,$method)) 561 $object->$method($event); 562 else 563 throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".', 564 array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1]))); |
#9 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/base/CApplication.php(212): CComponent->raiseEvent() 207 * Raised right BEFORE the application processes the request. 208 * @param CEvent $event the event parameter 209 */ 210 public function onBeginRequest($event) 211 { 212 $this->raiseEvent('onBeginRequest',$event); 213 } 214 215 /** 216 * Raised right AFTER the application processes the request. 217 * @param CEvent $event the event parameter |
#10 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/framework/base/CApplication.php(183): CApplication->onBeginRequest() 178 * Remember to call the parent implementation so that static application components are loaded. 179 */ 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 } |
#11 |
+
–
/var/www/vhosts/aseemamag.com/epaper.hosadigantha.com/index.php(22): CApplication->run() 17 defined('YII_DEBUG') or define('YII_DEBUG',true); 18 // specify how many levels of call stack should be shown in each log message 19 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 20 21 require_once($yii); 22 Yii::createWebApplication($config)->run(); 23 |