/mnt/HC_Volume_23321257/focusextranet/public_html/protected/components/Functions.php(2397)
2385 b.cityId, IF( bc.businessId IS NULL, 0, 1 ) as hasContract"; 2386 $condition->alias = "b"; 2387 $condition->join = "LEFT JOIN business_contracts bc ON bc.businessId = b.id "; 2388 $condition->join .= "LEFT JOIN business_publications bp ON bp.id = bc.businessPublicationId "; 2389 $condition->join .= "LEFT JOIN business_publication_types bpt ON bpt.id = bp.businessPublicationTypeId "; 2390 if( $type == BUSINESS_TYPE_PRIMARIE ) 2391 { 2392 $condition->addSearchCondition( "b.name", "primaria", TRUE ); 2393 } 2394 if( $publicationId != 0 ) 2395 { 2396 $condition->addCondition( "bc.businessPublicationId = '".$publicationId."'" ); 2397 $businessPublicationType = CATALOG_PUBLICATION_TYPE; 2398 } 2399 $condition->addCondition( "b.status = 'active'" ); 2400 $condition->addCondition( "b.countyId = '".$countyId."'" ); 2401 $condition->addCondition( "b.businessTypeId IN ( ".$type." )" ); 2402 $condition->addCondition( "( bpt.id = '".$businessPublicationType."' OR bpt.id IS NULL )" ); 2403 $condition->order = "IF( bc.businessId IS NULL, 0, 1 ) DESC, b.name ASC"; 2404 $condition->order = "IF( bc.businessId IS NULL, 0, 1 ) DESC, b.name ASC"; 2405 $condition->distinct = TRUE; 2406 $businessCount = BusinessModel::model()->count( $condition ); 2407 2408 return $businessCount; 2409 }
#0 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/protected/components/Functions.php(1203): countBusinessesForCounty() 1198 $countyList = array(); 1199 if( $counties ) 1200 { 1201 foreach( $counties as $county ) 1202 { 1203 $businessCount = countBusinessesForCounty( $county->id, $type, "" ); 1204 $countyList []= array( 1205 "id" => $county->id, 1206 "countryId" => $county->countryId, 1207 "stateId" => $county->stateId, 1208 "name" => $county->name, |
#1 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_ListController.php(87): getCountyListByCountryId() 82 $attributes = array( 83 "countryId" => $countryId 84 ); 85 86 // getStateListByCountryId( "", $type ); 87 getCountyListByCountryId( "", $type ); 88 89 if( empty( $this->data["stateList"] ) && empty( $this->data["countyList"] ) ) 90 { 91 ( empty( $this->data["stateList"] ) ) 92 ? setMessage( translate( "State_does_not_exists" ), "error" ) |
#2 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/protected/controllers/Front_ListController.php(62): Front_ListController->getCounties() 57 } 58 } 59 60 public function actionBusinessCounties() 61 { 62 $this->getCounties( BUSINESS_TYPE_BUSINESS ); 63 } 64 65 protected function getCounties( $type ) 66 { 67 $countryId = COUNTRY_ID; |
#3 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/actions/CInlineAction.php(50): Front_ListController->actionBusinessCounties() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#4 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(309): CInlineAction->runWithParams() 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#5 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/filters/CFilterChain.php(134): CController->runAction() 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#6 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/filters/CFilter.php(41): CFilterChain->run() 36 */ 37 public function filter($filterChain) 38 { 39 if($this->preFilter($filterChain)) 40 { 41 $filterChain->run(); 42 $this->postFilter($filterChain); 43 } 44 } 45 46 /** |
#7 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(1146): CFilter->filter() 1141 */ 1142 public function filterAccessControl($filterChain) 1143 { 1144 $filter=new CAccessControlFilter; 1145 $filter->setRules($this->accessRules()); 1146 $filter->filter($filterChain); 1147 } 1148 1149 /** 1150 * Returns a persistent page state value. 1151 * A page state is a variable that is persistent across POST requests of the same page. |
#8 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl() 54 * @param CFilterChain $filterChain the filter chain that the filter is on. 55 */ 56 public function filter($filterChain) 57 { 58 $method='filter'.$this->name; 59 $filterChain->controller->$method($filterChain); 60 } 61 } |
#9 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter() 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#10 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(292): CFilterChain->run() 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); 293 $this->_action=$priorAction; 294 } 295 } 296 297 /** |
#11 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CController.php(266): CController->runActionWithFilters() 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#12 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CWebApplication.php(277): CController->run() 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 { 282 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', |
#13 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/web/CWebApplication.php(136): CWebApplication->runController() 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#14 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#15 |
+
–
/mnt/HC_Volume_23321257/focusextranet/public_html/catalogafaceri.ro/public_html/index.php(44): CApplication->run() 39 define( "LANGUAGE_PATH", BASE_PATH."protected/languages/" ); 40 41 date_default_timezone_set( "Europe/Bucharest" ); 42 43 require_once( $yii ); 44 Yii::createWebApplication( $config )->run(); |