/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(414): CDbCommand->queryInternal("fetch", array(2), array()) 409 * @return mixed the first row (in terms of an array) of the query result, false if no result. 410 * @throws CException execution failed 411 */ 412 public function queryRow($fetchAssociative=true,$params=array()) 413 { 414 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 415 } 416 417 /** 418 * Executes the SQL statement and returns the value of the first column in the first row of data. 419 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/hosting/grupooliveira/public_html/extranet/yii/db/ar/CActiveRecord.php(1297): CDbCommand->queryRow() 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(1402): CActiveRecord->query(CDbCriteria) 1397 */ 1398 public function find($condition='',$params=array()) 1399 { 1400 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1401 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1402 return $this->query($criteria); 1403 } 1404 1405 /** 1406 * Finds all active records satisfying the specified condition. 1407 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/hosting/grupooliveira/public_html/britagem.php(13): CActiveRecord->find(CDbCriteria) 08 $criteria_banner->addCondition("habilitar='1'"); 09 $criteria_banner->addCondition("local='grupo-oliveira-vagas'"); 10 $criteria_banner->addCondition("data_entrada <= '".$data_atual."'"); 11 $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"); 12 $criteria_banner->order = 'posicao asc'; 13 $banner = Banner::model()->find($criteria_banner); 14 $tit_banner = 'Banner vagas de trabalho'; 15 $img_banner ="img/banner-vagas.jpg"; 16 if(is_object($banner)){ 17 $tit_banner = $banner->titulo; 18 $img_banner = "extranet/thumbnail/crop/1920x595/Banner/".$banner->imagem; |
#4 |
+
–
/hosting/grupooliveira/public_html/RequestManager.php(171): require_once("/hosting/grupooliveira/public_html/britagem.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 ?> |