/home/ua2/makesocial.net/www/demo/protected/components/WebApplication.php(42)
30 31 /** 32 * Inits the webapplication 33 * 34 * Also start interceptor to add event support 35 */ 36 protected function init() 37 { 38 39 parent::init(); 40 41 $this->interceptor->start(); 42 $this->moduleManager->start(); 43 44 $this->interceptor->intercept($this); 45 46 if ($this->hasEventHandler('onInit')) 47 $this->onInit(new CEvent($this)); 48 } 49 50 /** 51 * This event is raised after the init is executed. 52 * @param CEvent $event the event parameter 53 */ 54 public function onInit($event)
#0 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/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 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/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 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/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 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/base/CApplication.php(450): CModule->getComponent("db") 445 * Returns the database connection component. 446 * @return CDbConnection the database connection 447 */ 448 public function getDb() 449 { 450 return $this->getComponent('db'); 451 } 452 453 /** 454 * Returns the error handler component. 455 * @return CErrorHandler the error handler application component. |
#4 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/db/ar/CActiveRecord.php(634): CApplication->getDb() 629 { 630 if(self::$db!==null) 631 return self::$db; 632 else 633 { 634 self::$db=Yii::app()->getDb(); 635 if(self::$db instanceof CDbConnection) 636 return self::$db; 637 else 638 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 639 } |
#5 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/db/ar/CActiveRecord.php(667): CActiveRecord->getDbConnection() 662 * Returns the command builder used by this AR. 663 * @return CDbCommandBuilder the command builder used by this AR 664 */ 665 public function getCommandBuilder() 666 { 667 return $this->getDbConnection()->getSchema()->getCommandBuilder(); 668 } 669 670 /** 671 * Checks whether this AR has the named attribute 672 * @param string $name attribute name |
#6 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/db/ar/CActiveRecord.php(1469): CActiveRecord->getCommandBuilder() 1464 * @return CActiveRecord[] list of active records satisfying the specified condition. An empty array is returned if none is found. 1465 */ 1466 public function findAll($condition='',$params=array()) 1467 { 1468 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1469 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1470 return $this->query($criteria,true); 1471 } 1472 1473 /** 1474 * Finds a single active record with the specified primary key. |
#7 |
+
–
/home/ua2/makesocial.net/www/demo/protected/components/ModuleManager.php(64): CActiveRecord->findAll() 59 $cacheId = "enabledModules"; 60 $cacheValue = Yii::app()->cache->get($cacheId); 61 62 if ($cacheValue === false || !is_array($cacheValue)) { 63 64 foreach (ModuleEnabled::model()->findAll() as $em) { 65 $this->enabledModules[] = $em->module_id; 66 } 67 68 Yii::app()->cache->set($cacheId, $this->enabledModules, HSetting::Get('expireTime', 'cache')); 69 } else { |
#8 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/base/CModule.php(387): ModuleManager->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 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/base/CModule.php(103): CModule->getComponent("moduleManager") 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 /** |
#10 |
+
–
/home/ua2/makesocial.net/www/demo/protected/components/WebApplication.php(42): CModule->__get("moduleManager") 37 { 38 39 parent::init(); 40 41 $this->interceptor->start(); 42 $this->moduleManager->start(); 43 44 $this->interceptor->intercept($this); 45 46 if ($this->hasEventHandler('onInit')) 47 $this->onInit(new CEvent($this)); |
#11 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/base/CApplication.php(165): WebApplication->init() 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 169 /** 170 * Runs the application. |
#12 |
+
–
/home/ua2/makesocial.net/www/demo/protected/vendors/yii/YiiBase.php(125): CApplication->__construct("/home/ua2/makesocial.net/www/demo/protected/config/main.php") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#13 |
+
–
/home/ua2/makesocial.net/www/demo/index.php(32): YiiBase::createApplication("WebApplication", "/home/ua2/makesocial.net/www/demo/protected/config/main.php") 27 ini_set('error_reporting', E_ALL); 28 29 require_once($yii); 30 require_once($appClass); 31 32 $app = Yii::createApplication('WebApplication', $config); 33 34 Yii::import('application.vendors.*'); 35 EZendAutoloader::$prefixes = array('Zend', 'Custom'); 36 Yii::import("ext.yiiext.components.zendAutoloader.EZendAutoloader", true); 37 Yii::registerAutoloader(array("EZendAutoloader", "loadClass"), true); |