MODPATH/database/classes/kohana/database/mysql.php [ 67 ]
62 catch (Exception $e)
63 {
64 // No connection exists
65 $this->_connection = NULL;
66
67 throw new Database_Exception(':error',
68 array(':error' => $e->getMessage()),
69 $e->getCode());
70 }
71
72 // \xFF is a better delimiter, but the PHP driver uses underscore
-
MODPATH/database/classes/kohana/database/mysql.php [ 171 ] » Kohana_Database_MySQL->connect()
166 } 167 168 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 169 { 170 // Make sure the database is connected 171 $this->_connection or $this->connect(); 172 173 if ( ! empty($this->_config['profiling'])) 174 { 175 // Benchmark this query for the current instance 176 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
APPPATH/classes/model/politicadeprivacidade.php [ 34 ] » Kohana_Database_MySQL->query(arguments)
0
integer 2
1
string(295) "CREATE TABLE IF NOT EXISTS POLITICA_PRIVACIDADE ( POP_ID int(11) unsigned NOT NULL auto_increment, POP_T …"
29 Database::instance()->query(Database::INSERT, "CREATE TABLE IF NOT EXISTS POLITICA_PRIVACIDADE ( 30 POP_ID int(11) unsigned NOT NULL auto_increment, 31 POP_TITULO varchar(50) NOT NULL, 32 POP_TEXTO text NOT NULL, 33 PRIMARY KEY (POP_ID) 34 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;"); 35 36 parent::__construct($id); 37 } 38 }
-
MODPATH/orm/classes/kohana/orm.php [ 39 ] » Model_Politicadeprivacidade->__construct(arguments)
0
NULL
34 */ 35 public static function factory($model, $id = NULL) { 36 // Set class name 37 $model = 'Model_' . ucfirst($model); 38 39 return new $model($id); 40 } 41 42 /** 43 * "Has one" relationships 44 * @var array
-
APPPATH/classes/controller/index.php [ 35 ] » Kohana_ORM::factory(arguments)
0
string(21) "politicadeprivacidade"
30 public function before() { 31 parent::before(); 32 33 $this->template->titulo = $this->empresa; 34 35 $this->template->politicadeprivacidade = ORM::factory("politicadeprivacidade")->find(); 36 37 $this->template->normasdeuso = ORM::factory("normasdeuso")->find(); 38 39 } 40
-
APPPATH/classes/controller/ajax.php [ 8 ] » Controller_Index->before()
3 defined("SYSPATH") or die("No direct script access."); 4 5 class Controller_Ajax extends Controller_Index { 6 7 public function before() { 8 parent::before(); 9 $this->_name = $this->request->controller(); 10 11 if ($this->request->is_ajax()) { 12 $this->auto_render = FALSE; 13 }
-
{PHP internal call} » Controller_Ajax->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 104 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Ajax(10)
{ public template => object View(2)
{ protected _file => string(49) "/home/sites/paludo/application/views/template.php" protected _data => array(1) ( "titulo" => string(6) "Paludo" ) }
public gravar_logs => bool TRUE public empresa => string(6) "Paludo" public dominio => string(27) "http://192.168.10.1/paludo/" public emailEmpresa => string(14) "sac@ows.com.br" public senhaEmail => string(11) "8Snizn6eOUT" public host => string(14) "smtp.gmail.com" public auto_render => bool TRUE public request => object Request(20){ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(8) "abertura" "action" => string(5) "index" "id" => integer 1 ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "ajax" protected _action => string(11) "trocacidade" protected _uri => string(18) "ajax/trocacidade/1" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }99 } 100 101 // Create a new instance of the controller 102 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 103 104 $class->getMethod('before')->invoke($controller); 105 106 // Determine the action to use 107 $action = $request->action(); 108 109 // If the action doesn't exist, it's a 404
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(8) "abertura" "action" => string(5) "index" "id" => integer 1 ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "ajax" protected _action => string(11) "trocacidade" protected _uri => string(18) "ajax/trocacidade/1" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1154 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(32) "(<controller>(/<action>(/<id>)))" protected _regex => array(0) protected _defaults => array(3) ( "controller" => string(8) "abertura" "action" => string(5) "index" "id" => integer 1 ) protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.1" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "ajax" protected _action => string(11) "trocacidade" protected _uri => string(18) "ajax/trocacidade/1" protected _external => bool FALSE protected _params => array(1) ( "id" => string(1) "1" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 109 ] » Kohana_Request->execute()
104 /** 105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 echo Request::factory() 109 ->execute() 110 ->send_headers(TRUE) 111 ->body();