MODPATH/database/classes/kohana/database/mysql.php [ 57 ]
52 }
53 catch (Exception $e)
54 {
55 $this->_connection = NULL;
56
57 throw new Database_Exception(':error',
58 array(':error' => $e->getMessage()),
59 $e->getCode());
60 }
61
62 if ($this->_connection->connect_errno)
-
MODPATH/database/classes/kohana/database/mysql.php [ 416 ] » Kohana_Database_MySQL->connect()
411 } 412 413 public function escape($value) 414 { 415 // Make sure the database is connected 416 $this->_connection or $this->connect(); 417 418 if (($value = $this->_connection->real_escape_string( (string) $value)) === FALSE) 419 { 420 throw new Database_Exception(':error', 421 array(':error' => $this->_connection->error),
-
MODPATH/database/classes/kohana/database.php [ 473 ] » Kohana_Database_MySQL->escape(arguments)
0
string(1) "1"
468 { 469 // Convert to non-locale aware float to prevent possible commas 470 return sprintf('%F', $value); 471 } 472 473 return $this->escape($value); 474 } 475 476 /** 477 * Quote a database column name and add the table prefix if needed. 478 *
-
{PHP internal call} » Kohana_Database->quote(arguments)
0
string(1) "1"
-
MODPATH/database/classes/kohana/database/query.php [ 189 ] » array_map(arguments)
callback
array(2) ( 0 => object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => integer 10 protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(23) "mysql017.phy.heteml.lan" "database" => string(6) "_n_ccc" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool FALSE ) }
1 => string(5) "quote" )arrays
array(1) ( ":site_id" => string(1) "1" )
184 $sql = $this->_sql; 185 186 if ( ! empty($this->_parameters)) 187 { 188 // Quote all of the values 189 $values = array_map(array($db, 'quote'), $this->_parameters); 190 191 // Replace the values in the SQL 192 $sql = strtr($sql, $values); 193 } 194
-
MODPATH/database/classes/kohana/database/query.php [ 228 ] » Kohana_Database_Query->compile(arguments)
0
object Database_MySQL(6)
{ protected _connection_id => NULL protected _identifier => string(1) "`" public last_query => NULL protected _instance => integer 10 protected _connection => NULL protected _config => array(6) ( "type" => string(5) "mysql" "connection" => array(3) ( "hostname" => string(23) "mysql017.phy.heteml.lan" "database" => string(6) "_n_ccc" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool FALSE ) }
223 { 224 $object_params = $this->_object_params; 225 } 226 227 // Compile the SQL query 228 $sql = $this->compile($db); 229 230 if ($this->_lifetime !== NULL AND $this->_type === Database::SELECT) 231 { 232 // Set the cache key based on the database instance name and SQL 233 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
MODPATH/database/classes/database/query.php [ 12 ] » Kohana_Database_Query->execute()
7 if($params) 8 { 9 $this->parameters($params); 10 } 11 12 $query = $this->execute(); 13 14 return $query->count() ? $query->as_array() : array() ; 15 } 16 17 public function row($params = NULL)
-
MODPATH/database/classes/database/query.php [ 19 ] » Database_Query->all(arguments)
0
array(1) ( ":site_id" => string(1) "1" )
14 return $query->count() ? $query->as_array() : array() ; 15 } 16 17 public function row($params = NULL) 18 { 19 $query = $this->all($params); 20 21 return $query ? $query[0] : array() ; 22 } 23 24 public function one($params = NULL)
-
APPPATH/classes/model/cms/site.php [ 79 ] » Database_Query->row(arguments)
0
array(1) ( ":site_id" => string(1) "1" )
74 LEFT JOIN cms_user AS reg_user 75 ON reg_user.user_id = site_reg_user_id 76 LEFT JOIN cms_user AS up_user 77 ON up_user.user_id = site_up_user_id 78 WHERE site_id = :site_id 79 ')->row(array(':site_id' => '1')); 80 $row = $this->format($row); 81 $this->cache->set(__METHOD__, $row); 82 } 83 84 return $row;
-
APPPATH/bootstrap.php [ 18 ] » Model_Cms_Site->row()
13 14 Kohana::init(); 15 16 if(INSTALLED) 17 { 18 $site = Model_Cms_Site::instance()->row(); 19 $dir_name = DEFAULT_NAME; 20 21 if(empty($_GET['preview'])) 22 { 23 if(UA::isMobile())
-
DOCROOT/index.php [ 37 ] » require(arguments)
0
string(65) "/home/users/2/ritaworks04/web/n-ccc.org/application/bootstrap.php"
32 if ( ! is_writable(USRPATH)) 33 { 34 exit('「'.USRPATH.'」のディレクトリを作成し、パーミッションを777にしてください。'); 35 } 36 37 require APPPATH.'bootstrap'.EXT; 38 39 if(INSTALLED) 40 { 41 try 42 {