MODPATH/database/classes/kohana/database/pdo.php [ 59 ]
54 // Create a new PDO connection
55 $this->_connection = new PDO($dsn, $username, $password, $attrs);
56 }
57 catch (PDOException $e)
58 {
59 throw new Database_Exception(':error', array(
60 ':error' => $e->getMessage(),
61 ),
62 $e->getCode(),
63 $e);
64 }
-
MODPATH/database/classes/kohana/database/pdo.php [ 182 ] » Kohana_Database_PDO->connect()
177 } 178 179 public function escape($value) 180 { 181 // Make sure the database is connected 182 $this->_connection or $this->connect(); 183 184 return $this->_connection->quote($value); 185 } 186 187 } // End Database_PDO
-
MODPATH/database/classes/kohana/database.php [ 459 ] » Kohana_Database_PDO->escape(arguments)
0
string(3) "425"
454 { 455 // Convert to non-locale aware float to prevent possible commas 456 return sprintf('%F', $value); 457 } 458 459 return $this->escape($value); 460 } 461 462 /** 463 * Quote a database table name and adds the table prefix if needed. 464 *
-
{PHP internal call} » Kohana_Database->quote(arguments)
0
string(3) "425"
-
MODPATH/database/classes/kohana/database/query.php [ 166 ] » array_map(arguments)
callback
array(2) ( 0 => object Database_PDO(5)
{ protected _identifier => string(0) "" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
1 => string(5) "quote" )arg
array(1) ( ":id" => string(3) "425" )
161 $sql = $this->_sql; 162 163 if ( ! empty($this->_parameters)) 164 { 165 // Quote all of the values 166 $values = array_map(array($db, 'quote'), $this->_parameters); 167 168 // Replace the values in the SQL 169 $sql = strtr($sql, $values); 170 } 171
-
MODPATH/database/classes/kohana/database/query.php [ 192 ] » Kohana_Database_Query->compile(arguments)
0
object Database_PDO(5)
{ protected _identifier => string(0) "" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
187 // Get the database instance 188 $db = Database::instance($db); 189 } 190 191 // Compile the SQL query 192 $sql = $this->compile($db); 193 194 if ( ! empty($this->_lifetime) AND $this->_type === Database::SELECT) 195 { 196 // Set the cache key based on the database instance name and SQL 197 $cache_key = 'Database::query("'.$db.'", "'.$sql.'")';
-
MODPATH/graf/classes/graf.php [ 17 ] » Kohana_Database_Query->execute()
12 public function get($id) 13 { 14 $view= View::factory('front/graf/index'); 15 $prices=DB::query(Database::SELECT, "SELECT * FROM tovar_price WHERE tovar_id=:id ") 16 ->parameters(array(':id'=>$id)) 17 ->execute()->as_array(); 18 19 $view->prices=$prices; 20 21 $maxPrice=DB::query(Database::SELECT, "SELECT max(price) as maxprice FROM tovar_price WHERE tovar_id=:id ") 22 ->parameters(array(':id'=>$id))
-
MODPATH/cat/classes/controller/front/cat.php [ 212 ] » Graf->get(arguments)
0
string(3) "425"
207 208 /*основное отображение*/ 209 $content=View::factory('front/cat/'.strtolower(SITE).'/tovar'); 210 211 $graf= new Graf(); 212 $content->graf=$graf->get($id); 213 $graf->getMaxCost(); 214 215 $tovar=$this->model->getTovar($id); 216 if($tovar['state']==1) 217 {
-
{PHP internal call} » Controller_Front_Cat->action_tovar(arguments)
0
string(3) "425"
-
SYSPATH/classes/kohana/request.php [ 1150 ] » ReflectionMethod->invokeArgs(arguments)
0
object Controller_Front_Cat(4)
{ public model => object Model_FinalCat(10)
{ private euroReq => string(0) "" private s => string(0) "" public partnerArray => array(5) ( 0 => string(28) "http://autobanda.euroauto.ru" 1 => string(23) "http://ural.euroauto.ru" 2 => string(30) "http://euroautoufa.euroauto.ru" 3 => string(31) "http://zapchastperm.euroauto.ru" 4 => string(24) "http://ra161.euroauto.ru" ) private siteConfig => object Kohana_Config_File(6)
public template => object View(2){ public user => string(16) "ddd_mmm_ppp_2141" public password => string(17) "ddd_mmm_ppp_52342" public adminEmail => string(20) "vsezakazal@yandex.ru" public adminEmailPass => string(15) "19891989vin1989" public smtp => string(14) "smtp.yandex.ru" public smtp_port => integer 587 }
public session => object Session_Native(5){ protected _name => string(7) "session" protected _lifetime => integer 0 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
public payTypes => array(2) ( 0 => string(31) "Оплата наличными" 1 => string(54) "Оплата электронными деньгами" ) public names => array(21) ( 0 => string(5) "Mikki" 1 => string(4) "Rock" 2 => string(8) "Silvestr" 3 => string(6) "Pamela" 4 => string(9) "Marchiano" 5 => string(6) "Barboa" 6 => string(5) "Elvis" 7 => string(8) "Travolta" 8 => string(5) "Teddy" 9 => string(5) "Masha" 10 => string(5) "Sindy" 11 => string(5) "Witny" 12 => string(6) "Marlin" 13 => string(4) "Jody" 14 => string(6) "Arnold" 15 => string(4) "Pele" 16 => string(9) "Maradonna" 17 => string(5) "Sasha" 18 => string(6) "Grisha" 19 => string(5) "Gosha" 20 => string(6) "Eminem" ) public tovarConfig => object Kohana_Config_File(13){ public miniH => integer 150 public miniW => integer 150 public mediumH => integer 350 public mediumW => integer 350 public maxH => integer 400 public maxW => integer 500 public verySmallH => integer 80 public verySmallW => integer 80 public defaultUserSkidka => integer 0 public galeryBigH => integer 700 public galeryBigW => integer 900 public galeryMiniH => integer 160 public galeryMiniW => integer 160 }
public db => object Database_PDO(5){ protected _identifier => string(0) "" public last_query => NULL protected _instance => string(9) "common_db" protected _connection => NULL protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
protected _db => object Database_PDO(5){ protected _identifier => string(0) "" public last_query => NULL protected _instance => string(7) "default" protected _connection => NULL protected _config => array(5) ( "type" => string(3) "pdo" "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE "profiling" => bool TRUE ) }
}{ protected _file => string(83) "/home/v/vinogr1/naobzor/public_html/application/views/templates/front/main/main.php" protected _data => array(5) ( "action" => string(5) "tovar" "controller" => string(3) "Cat" "user" => NULL "browser" => array(1) ( "browser" => bool FALSE ) "superUser" => NULL ) }
public catMenu => NULL public request => object Request(10){ public route => object Route(4)
}{ protected _uri => string(21) "state(_<id>)(.<page>)" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(3) "Cat" "app" => string(5) "front" "action" => string(5) "tovar" ) protected _route_regex => string(66) "#^state(?:_(?P<id>[^/.,;?\n]++))?(?:\.(?P<page>[^/.,;?\n]++))?$#uD" }
public status => integer 500 public response => string(0) "" public headers => array(1) ( "Content-Type" => string(24) "text/html; charset=utf-8" ) public app => string(5) "front" public directory => string(0) "" public controller => string(3) "Cat" public action => string(5) "tovar" public uri => string(9) "state_425" protected _params => array(1) ( "id" => string(3) "425" ) }1
array(1) ( "id" => string(3) "425" )
1145 } 1146 // Determine the action to use 1147 $action = empty($this->action) ? Route::$default_action : $this->action; 1148 1149 // Execute the main action with the parameters 1150 $class->getMethod('action_'.$action)->invokeArgs($controller, $this->_params); 1151 1152 if(!Request::$is_ajax) 1153 { 1154 // Execute the "after action" method 1155 $class->getMethod('after')->invoke($controller);
-
APPPATH/bootstrap.php [ 198 ] » Kohana_Request->execute()
193 echo $request->send_headers()->response; 194 195 */ 196 197 198 echo Request::instance()->execute()->send_headers()->response; 199 200 201 } 202 203
-
DOCROOT/index.php [ 139 ] » require(arguments)
0
string(61) "/home/v/vinogr1/naobzor/public_html/application/bootstrap.php"
134 // Load empty core extension 135 require SYSPATH.'classes/kohana'.EXT; 136 } 137 138 // Bootstrap the application 139 require APPPATH.'bootstrap'.EXT;