/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/db/CDbCommand.php(415): CDbCommand->queryInternal("fetch", array(2), array()) 410 * @return mixed the first row (in terms of an array) of the query result, false if no result. 411 * @throws CException execution failed 412 */ 413 public function queryRow($fetchAssociative=true,$params=array()) 414 { 415 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 416 } 417 418 /** 419 * Executes the SQL statement and returns the value of the first column in the first row of data. 420 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/db/ar/CActiveRecord.php(1351): CDbCommand->queryRow() 1346 if(empty($criteria->with)) 1347 { 1348 if(!$all) 1349 $criteria->limit=1; 1350 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria,$this->getTableAlias()); 1351 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1352 } 1353 else 1354 { 1355 $finder=$this->getActiveFinder($criteria->with); 1356 return $finder->query($criteria,$all); |
#2 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/db/ar/CActiveRecord.php(1519): CActiveRecord->query(CDbCriteria) 1514 public function findByAttributes($attributes,$condition='',$params=array()) 1515 { 1516 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1517 $prefix=$this->getTableAlias(true).'.'; 1518 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1519 return $this->query($criteria); 1520 } 1521 1522 /** 1523 * Finds all active records that have the specified attribute values. 1524 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/protected/modules/itexcms/models/tables/Settings.php(118): CActiveRecord->findByAttributes(array("category" => "module#form", "name" => "use_recaptcha")) 113 $item = self::model()->findByAttributes( 114 array( 115 'category' => $category, 116 'name' => $name, 117 ) 118 ); 119 if (empty($item)) 120 return $defaultValue; 121 else 122 return $item->value; 123 } |
#4 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/protected/helpers/CmsHelper.php(73): Settings::get("module#form", "use_recaptcha", null) 68 if (!isset(self::$settingsCache[$category])) { 69 self::$settingsCache[$category] = []; 70 } 71 72 if (!isset(self::$settingsCache[$category][$name])) { 73 self::$settingsCache[$category][$name] = Settings::get($category, $name, $defaultValue); 74 } 75 76 return self::$settingsCache[$category][$name]; 77 } 78 |
#5 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/protected/components/IndividualSite.php(20): CmsHelper::settings("module#form", "use_recaptcha") 15 $controller = Yii::app()->controller; 16 if (!($controller instanceof ItexCmsController) && $controller->action->id !== 'modal') { 17 Yii::app()->clientScript->registerCoreScript('jquery'); 18 Yii::app()->clientScript->registerCoreScript('maskedinput'); 19 20 if (CmsHelper::settings('module#form', 'use_recaptcha')) { 21 Yii::app()->clientScript->registerScriptFile( 22 'https://www.google.com/recaptcha/api.js', 23 CClientScript::POS_HEAD 24 ); 25 } else { |
#6 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/base/CModule.php(387): IndividualSite->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#7 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/base/CModule.php(523): CModule->getComponent("individualSite") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#8 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/base/CApplication.php(163): CModule->preloadComponents() 158 $this->initSystemHandlers(); 159 $this->registerCoreComponents(); 160 161 $this->configure($config); 162 $this->attachBehaviors($this->behaviors); 163 $this->preloadComponents(); 164 165 $this->init(); 166 } 167 168 |
#9 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/YiiBase.php(125): CApplication->__construct("protected/config/app.php") 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 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/Yii/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "protected/config/app.php") 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
#11 |
+
–
/hosting/disk1/h30483334/web/ocprof.ru/www/index.php(33): YiiBase::createWebApplication("protected/config/app.php") 28 $config = 'protected/config/app.php'; 29 30 if (APP_CLI) { 31 Yii::createConsoleApplication($config)->run(); 32 } else { 33 Yii::createWebApplication($config)->run(); 34 } |