/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/db/ar/CActiveFinder.php(587)
575 break; 576 } 577 } 578 579 if(!$fkDefined) 580 { 581 $parentCondition=array(); 582 $childCondition=array(); 583 $count=0; 584 $params=array(); 585 foreach($fks as $i=>$fk) 586 { 587 if($i<count($parent->_table->primaryKey)) 588 { 589 $pk=is_array($parent->_table->primaryKey) ? $parent->_table->primaryKey[$i] : $parent->_table->primaryKey; 590 $parentCondition[$pk]=$joinAlias.'.'.$schema->quoteColumnName($fk).'=:ypl'.$count; 591 $params[':ypl'.$count]=$record->$pk; 592 $count++; 593 } 594 else 595 { 596 $j=$i-count($parent->_table->primaryKey); 597 $pk=is_array($this->_table->primaryKey) ? $this->_table->primaryKey[$j] : $this->_table->primaryKey; 598 $childCondition[$pk]=$this->getColumnPrefix().$schema->quoteColumnName($pk).'='.$joinAlias.'.'.$schema->quoteColumnName($fk); 599 }
#0 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/db/ar/CActiveFinder.php(500): CJoinElement->applyLazyCondition(CJoinQuery, Theme) 495 { 496 $query->limit=$child->relation->limit; 497 $query->offset=$child->relation->offset; 498 } 499 500 $child->applyLazyCondition($query,$baseRecord); 501 502 $this->_joined=true; 503 $child->_joined=true; 504 505 $this->_finder->baseLimited=false; |
#1 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/db/ar/CActiveFinder.php(163): CJoinElement->lazyFind(Theme) 158 * This method is internally invoked by {@link CActiveRecord} to support lazy loading. 159 * @param CActiveRecord $baseRecord the base record whose related objects are to be loaded 160 */ 161 public function lazyFind($baseRecord) 162 { 163 $this->_joinTree->lazyFind($baseRecord); 164 if(!empty($this->_joinTree->children)) 165 { 166 foreach($this->_joinTree->children as $child) 167 $child->afterFind(); 168 } |
#2 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(281): CActiveFinder->lazyFind(Theme) 276 else 277 $r=$name; 278 unset($this->_related[$name]); 279 280 $finder=$this->getActiveFinder($r); 281 $finder->lazyFind($this); 282 283 if(!isset($this->_related[$name])) 284 { 285 if($relation instanceof CHasManyRelation) 286 $this->_related[$name]=array(); |
#3 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/db/ar/CActiveRecord.php(143): CActiveRecord->getRelated("journeies") 138 elseif(isset($this->getMetaData()->columns[$name])) 139 return null; 140 elseif(isset($this->_related[$name])) 141 return $this->_related[$name]; 142 elseif(isset($this->getMetaData()->relations[$name])) 143 return $this->getRelated($name); 144 else 145 return parent::__get($name); 146 } 147 148 /** |
#4 |
+
–
/home4/journfp8/public_html/admin/backend/protected/extensions/JI18nActiveRecord.php(39): CActiveRecord->__get("journeies") 34 35 public function __get($name) { 36 if(array_key_exists($name,$this->_i18nAttributes)) 37 return $this->_i18nAttributes[$name]; 38 else 39 return parent::__get($name); 40 } 41 42 public function __set($name,$value) { 43 if(array_key_exists($name,$this->_i18nAttributes)) 44 $this->_i18nAttributes[$name]=$value; |
#5 |
+
–
/home4/journfp8/public_html/protected/controllers/ExploreController.php(443): JI18nActiveRecord->__get("journeies") 438 $criteria->order = 't.sort_order ASC, t.theme_image_id ASC'; 439 $themeImages = ThemeImage::model()->localized()->findAll($criteria); 440 441 442 // Journey 443 $journeyIdList = CHtml::listData($theme->journeies, 'journey_id', 'journey_id'); 444 445 $criteria = new CDbCriteria(); 446 $criteria->addInCondition('t.journey_id', $journeyIdList); 447 $criteria->order = 't.sort_order DESC'; 448 |
#6 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/web/actions/CInlineAction.php(49): ExploreController->actionTheme() 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 } |
#7 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/web/CController.php(308): CInlineAction->runWithParams(array("lang" => "zh_hk", "theme_id" => "21")) 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; |
#8 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/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(); |
#9 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/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); |
#10 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(282): CController->run("theme") 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))); |
#11 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/framework/web/CWebApplication.php(141): CWebApplication->runController("explore/theme") 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. |
#12 |
+
–
/home4/journfp8/public_html/yii-1.1.14.f0fee9/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 /** |
#13 |
+
–
/home4/journfp8/public_html/index.php(16): CApplication->run() 11 ini_set('display_errors', 'On'); 12 error_reporting(E_ALL | E_STRICT); 13 } 14 15 require_once($yii); 16 Yii::createWebApplication($config)->run(); 17 18 ?> |