/home/b2bos/public_html/protected/components/WebApplication.php(22)
10 11 /** 12 * Inits the webapplication 13 * 14 * Also start interceptor to add event support 15 */ 16 protected function init() 17 { 18 19 parent::init(); 20 21 $this->interceptor->start(); 22 $this->moduleManager->start(); 23 24 $this->interceptor->intercept($this); 25 26 if ($this->hasEventHandler('onInit')) 27 $this->onInit(new CEvent($this)); 28 } 29 30 /** 31 * This event is raised after the init is executed. 32 * @param CEvent $event the event parameter 33 */ 34 public function onInit($event)
#0 |
+
–
/home/b2bos/public_html/protected/vendors/yii/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(ModuleEnabled) 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 |
+
–
/home/b2bos/public_html/protected/vendors/yii/db/ar/CActiveRecord.php(661): CActiveRecord->getMetaData() 656 * Returns the metadata of the table that this AR belongs to 657 * @return CDbTableSchema the metadata of the table that this AR belongs to 658 */ 659 public function getTableSchema() 660 { 661 return $this->getMetaData()->tableSchema; 662 } 663 664 /** 665 * Returns the command builder used by this AR. 666 * @return CDbCommandBuilder the command builder used by this AR |
#2 |
+
–
/home/b2bos/public_html/protected/vendors/yii/db/ar/CActiveRecord.php(1355): CActiveRecord->getTableSchema() 1350 1351 if(empty($criteria->with)) 1352 { 1353 if(!$all) 1354 $criteria->limit=1; 1355 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1356 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1357 } 1358 else 1359 { 1360 $finder=$this->getActiveFinder($criteria->with); |
#3 |
+
–
/home/b2bos/public_html/protected/vendors/yii/db/ar/CActiveRecord.php(1475): CActiveRecord->query(CDbCriteria, true) 1470 */ 1471 public function findAll($condition='',$params=array()) 1472 { 1473 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1474 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1475 return $this->query($criteria,true); 1476 } 1477 1478 /** 1479 * Finds a single active record with the specified primary key. 1480 * See {@link find()} for detailed explanation about $condition and $params. |
#4 |
+
–
/home/b2bos/public_html/protected/components/ModuleManager.php(45): CActiveRecord->findAll() 40 $cacheId = "enabledModules"; 41 $cacheValue = Yii::app()->cache->get($cacheId); 42 43 if ($cacheValue === false || !is_array($cacheValue)) { 44 45 foreach (ModuleEnabled::model()->findAll() as $em) { 46 $this->enabledModules[] = $em->module_id; 47 } 48 49 Yii::app()->cache->set($cacheId, $this->enabledModules, HSetting::Get('expireTime', 'cache')); 50 } else { |
#5 |
+
–
/home/b2bos/public_html/protected/vendors/yii/base/CModule.php(394): ModuleManager->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 |
#6 |
+
–
/home/b2bos/public_html/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 /** |
#7 |
+
–
/home/b2bos/public_html/protected/components/WebApplication.php(22): CModule->__get("moduleManager") 17 { 18 19 parent::init(); 20 21 $this->interceptor->start(); 22 $this->moduleManager->start(); 23 24 $this->interceptor->intercept($this); 25 26 if ($this->hasEventHandler('onInit')) 27 $this->onInit(new CEvent($this)); |
#8 |
+
–
/home/b2bos/public_html/protected/vendors/yii/base/CApplication.php(169): WebApplication->init() 164 165 $this->configure($config); 166 $this->attachBehaviors($this->behaviors); 167 $this->preloadComponents(); 168 169 $this->init(); 170 } 171 172 173 /** 174 * Runs the application. |
#9 |
+
–
/home/b2bos/public_html/protected/vendors/yii/YiiBase.php(125): CApplication->__construct(array("name" => "b2bos.md", "preload" => array("log", "input"), "components" => array("db" => array("connectionString" => "mysql:host=localhost;dbname=bkbosa_b2bos_in_new", "emulatePrepare" => true, "charset" => "utf8", "enableProfiling" => true, ...), "urlManager" => array("urlFormat" => "path", "showScriptName" => false, "rules" => array(0 => array("class" => "application.components.LangUrlRule"), "/" => "//", "<controller:\w+>/<id:\d+>" => "<controller>/view", "<controller:\w+>/<action:\w+>/<id:\d+>" => "<controller>/<action>", ...)), "moduleManager" => array("class" => "application.components.ModuleManager"), "messages" => array("class" => "application.components.HPhpMessageSource"), ...), "modules" => array(), ...)) 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. |
#10 |
+
–
/home/b2bos/public_html/index.php(32): YiiBase::createApplication("WebApplication", "/home/b2bos/public_html/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); |