MODPATH/zend/Zend/Db/Adapter/Pdo/Abstract.php [ 144 ]
139 } catch (PDOException $e) {
140 /**
141 * @see Zend_Db_Adapter_Exception
142 */
143 require_once 'Zend/Db/Adapter/Exception.php';
144 throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
145 }
146
147 }
148
149 /**
-
MODPATH/zend/Zend/Db/Adapter/Pdo/Mysql.php [ 109 ] » Zend_Db_Adapter_Pdo_Abstract->_connect()
104 if (!empty($this->_config['charset'])) { 105 $initCommand = "SET NAMES '" . $this->_config['charset'] . "'"; 106 $this->_config['driver_options'][1002] = $initCommand; // 1002 = PDO::MYSQL_ATTR_INIT_COMMAND 107 } 108 109 parent::_connect(); 110 } 111 112 /** 113 * @return string 114 */
-
MODPATH/zend/Zend/Db/Adapter/Abstract.php [ 860 ] » Zend_Db_Adapter_Pdo_Mysql->_connect()
855 * @param mixed $type OPTIONAL the SQL datatype name, or constant, or null. 856 * @return mixed An SQL-safe quoted value (or string of separated values). 857 */ 858 public function quote($value, $type = null) 859 { 860 $this->_connect(); 861 862 if ($value instanceof Zend_Db_Select) { 863 return '(' . $value->assemble() . ')'; 864 } 865
-
MODPATH/zend/Zend/Db/Adapter/Abstract.php [ 930 ] » Zend_Db_Adapter_Abstract->quote(arguments)
0
integer 24
1
NULL
925 * @return string An SQL-safe quoted value placed into the original text. 926 */ 927 public function quoteInto($text, $value, $type = null, $count = null) 928 { 929 if ($count === null) { 930 return str_replace('?', $this->quote($value, $type), $text); 931 } else { 932 while ($count > 0) { 933 if (strpos($text, '?') !== false) { 934 $text = substr_replace($text, $this->quote($value, $type), strpos($text, '?'), 1); 935 }
-
MODPATH/zend/Zend/Db/Select.php [ 1000 ] » Zend_Db_Adapter_Abstract->quoteInto(arguments)
0
string(10) "parent = ?"
1
integer 24
2
NULL
995 require_once 'Zend/Db/Select/Exception.php'; 996 throw new Zend_Db_Select_Exception("Invalid use of where clause with " . self::SQL_UNION); 997 } 998 999 if ($value !== null) { 1000 $condition = $this->_adapter->quoteInto($condition, $value, $type); 1001 } 1002 1003 $cond = ""; 1004 if ($this->_parts[self::WHERE]) { 1005 if ($bool === true) {
-
MODPATH/zend/Zend/Db/Select.php [ 475 ] » Zend_Db_Select->_where(arguments)
0
string(10) "parent = ?"
1
integer 24
2
NULL
3
bool TRUE
470 * @param int $type OPTIONAL The type of the given value 471 * @return Zend_Db_Select This Zend_Db_Select object. 472 */ 473 public function where($cond, $value = null, $type = null) 474 { 475 $this->_parts[self::WHERE][] = $this->_where($cond, $value, $type, true); 476 477 return $this; 478 } 479 480 /**
-
MODPATH/vtpanel/classes/node/mptt.php [ 183 ] » Zend_Db_Select->where(arguments)
0
string(10) "parent = ?"
1
integer 24
178 179 public function getChildren() 180 { 181 $this->select = $this->db->select() 182 ->from(array("node" => $this->sTableNodes),array('id')) 183 ->where("parent = ?",$this->id) 184 ->order("lft"); 185 186 return $this; 187 } 188
-
APPPATH/classes/myroute.php [ 61 ] » node_mptt->getChildren()
56 $id = 24; 57 $parents = array(); 58 foreach($flinks as $flink) 59 { 60 $node = node::factory($id, Kohana::$config->load('tables.content')); 61 $row = $node->getChildren()->bindValues()->allow('template_id, type')->setCondition(array('flink', "='$flink'"))->getResultsRow(); 62 63 if(!$row) return null; 64 $parents[] = $id; 65 $id = $row['node_id']; 66 }
-
APPPATH/classes/myroute.php [ 17 ] » myroute::getElement(arguments)
0
string(6) "errors"
12 // $controller = $route[0]; 13 // $element['node_id'] = $route[1]; 14 // } 15 // else 16 // { 17 $element = self::getElement($uri); 18 19 //vt::pokaz($element); 20 if(!$element) return null; 21 22
-
SYSPATH/classes/kohana/route.php [ 385 ] » myroute::dynamic(arguments)
0
string(6) "errors"
380 public function matches($uri) 381 { 382 if ($this->_callback) 383 { 384 $closure = $this->_callback; 385 $params = call_user_func($closure, $uri); 386 387 if ( ! is_array($params)) 388 return FALSE; 389 } 390 else
-
SYSPATH/classes/kohana/request.php [ 567 ] » Kohana_Route->matches(arguments)
0
string(6) "errors"
562 $params = NULL; 563 564 foreach ($routes as $name => $route) 565 { 566 // We found something suitable 567 if ($params = $route->matches($uri)) 568 { 569 return array( 570 'params' => $params, 571 'route' => $route, 572 );
-
SYSPATH/classes/kohana/request.php [ 785 ] » Kohana_Request::process_uri(arguments)
0
string(6) "errors"
1
array(4) ( "media" => object Route(5)
{ protected _callback => NULL protected _uri => string(38) "vtpanel/<controller>(/<folder>/<file>)" protected _regex => array(3) ( "controller" => string(5) "media" "folder" => string(2) ".+" "file" => string(2) ".+" ) protected _defaults => array(4) ( "directory" => string(7) "vtpanel" "controller" => string(5) "media" "action" => string(5) "index" "file" => NULL ) protected _route_regex => string(68) "#^vtpanel/(?P<controller>media)(?:/(?P<folder>.+)/(?P<file>.+))?$#uD" }
"vtpanel" => object Route(5){ protected _callback => NULL protected _uri => string(40) "vtpanel(/<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(7) "vtpanel" "controller" => string(7) "content" "action" => string(5) "index" ) protected _route_regex => string(103) "#^vtpanel(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
"strony" => object Route(5){ protected _callback => array(2) ( 0 => string(7) "myroute" 1 => string(7) "dynamic" ) protected _uri => NULL protected _regex => array(0) protected _defaults => array(2) ( "action" => string(5) "index" "host" => bool FALSE ) protected _route_regex => NULL }
"default" => object Route(5){ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(1) ( "id" => string(6) "[^\/]*" ) protected _defaults => array(2) ( "controller" => string(6) "glowna" "action" => string(5) "index" ) protected _route_regex => string(89) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^\/]*))?)?)?$#uD" }
)780 if (Request::$initial === NULL OR strpos($uri, '://') === FALSE) 781 { 782 // Remove trailing slashes from the URI 783 $uri = trim($uri, '/'); 784 785 $processed_uri = Request::process_uri($uri, $this->_injected_routes); 786 787 // Return here rather than throw exception. This will allow 788 // use of Request object even with unmatched route 789 if ($processed_uri === NULL) 790 {
-
SYSPATH/classes/kohana/request.php [ 198 ] » Kohana_Request->__construct(arguments)
0
string(6) "errors"
1
NULL
193 $uri = Request::detect_uri(); 194 } 195 } 196 197 // Create the instance singleton 198 Request::$initial = $request = new Request($uri, $cache); 199 200 // Store global GET and POST data in the initial request only 201 $request->protocol($protocol) 202 ->query($_GET) 203 ->post($_POST);
-
DOCROOT/index.php [ 128 ] » Kohana_Request::factory(arguments)
0
string(6) "errors"
123 ->send_headers() 124 ->body(); 125 } 126 catch (Exception $e) 127 { 128 echo Request::factory('errors') 129 ->execute() 130 ->send_headers() 131 ->body(); 132 } 133 }