/hosting/grupooliveira/public_html/extranet/yii/db/CDbCommand.php(541)
529 { 530 if($this->_connection->enableProfiling) 531 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 532 533 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 534 $message=$e->getMessage(); 535 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 536 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 537 538 if(YII_DEBUG) 539 $message.='. The SQL statement executed was: '.$this->getText().$par; 540 541 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 542 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 543 } 544 } 545 546 /** 547 * Builds a SQL SELECT statement from the given query specification. 548 * @param array $query the query specification in name-value pairs. The following 549 * query options are supported: {@link select}, {@link distinct}, {@link from}, 550 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 551 * {@link limit}, {@link offset} and {@link union}. 552 * @return string the SQL statement 553 * @since 1.1.6
#0 |
+
–
/hosting/grupooliveira/public_html/extranet/yii/db/CDbCommand.php(395): CDbCommand->queryInternal("fetchAll", array(2), array()) 390 * An empty array is returned if the query results in nothing. 391 * @throws CException execution failed 392 */ 393 public function queryAll($fetchAssociative=true,$params=array()) 394 { 395 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 396 } 397 398 /** 399 * Executes the SQL statement and returns the first row of the result. 400 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/hosting/grupooliveira/public_html/extranet/yii/db/ar/CActiveRecord.php(1297): CDbCommand->queryAll() 1292 if(empty($criteria->with)) 1293 { 1294 if(!$all) 1295 $criteria->limit=1; 1296 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1297 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1298 } 1299 else 1300 { 1301 $finder=new CActiveFinder($this,$criteria->with); 1302 return $finder->query($criteria,$all); |
#2 |
+
–
/hosting/grupooliveira/public_html/extranet/yii/db/ar/CActiveRecord.php(1416): CActiveRecord->query(CDbCriteria, true) 1411 */ 1412 public function findAll($condition='',$params=array()) 1413 { 1414 Yii::trace(get_class($this).'.findAll()','system.db.ar.CActiveRecord'); 1415 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1416 return $this->query($criteria,true); 1417 } 1418 1419 /** 1420 * Finds a single active record with the specified primary key. 1421 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/hosting/grupooliveira/public_html/trabalhe-conosco.php(19): CActiveRecord->findAll(CDbCriteria) 14 $criteria_banner->addCondition("habilitar='1'"); 15 $criteria_banner->addCondition("local='grupo-oliveira-vagas'"); 16 $criteria_banner->addCondition("data_entrada <= '".$data_atual."'"); 17 $criteria_banner->addCondition("data_saida IS NULL OR data_saida = '' OR data_saida = '0000-00-00 00:00:00' OR data_saida >= '".$data_atual."' OR programado = 0"); 18 $criteria_banner->order = 'posicao asc'; 19 $banners = Banner::model()->findAll($criteria_banner); 20 21 $tit_banner = 'Banner vagas de trabalho'; 22 $img_banner ="img/banner-vagas.jpg"; 23 if(is_object($banner)){ 24 $tit_banner = $banner->titulo; |
#4 |
+
–
/hosting/grupooliveira/public_html/RequestManager.php(171): require_once("/hosting/grupooliveira/public_html/trabalhe-conosco.php") 166 Utf8::encode($html); 167 echo $html; 168 exit; 169 } 170 171 require_once($require_file); 172 exit; 173 174 } 175 176 } |
#5 |
+
–
/hosting/grupooliveira/public_html/index.php(65): RequestManager->run(array("/" => "inicial.php", "/index" => "inicial.php", "/inicial" => "inicial.php", "/vaga-de-trabalho" => "trabalhe-conosco.php", ...)) 60 61 62 '/(?P<pag>\S+)'=>'inicial.php', 63 ); 64 65 $request_manager->run($rotas); 66 ?> |