MODPATH/leap/classes/base/db/mysql/connection/standard.php [ 51 ]
46 $this->link_id = ($this->data_source->is_persistent())
47 ? @mysql_pconnect($host, $username, $password)
48 : @mysql_connect($host, $username, $password, TRUE);
49 if ($this->link_id === FALSE) {
50 $this->error = 'Message: Failed to establish connection. Reason: ' . mysql_error();
51 throw new Kohana_Database_Exception($this->error, array(':dsn' => $this->data_source->id));
52 }
53 mysql_set_charset($this->data_source->charset,$this->link_id);
54 $database = @mysql_select_db($this->data_source->database, $this->link_id);
55 if ($database === FALSE) {
56 $this->error = 'Message: Failed to connect to database. Reason: ' . mysql_error($this->link_id);
-
MODPATH/leap/classes/base/db/connection/pool.php [ 96 ] » Base_DB_MySQL_Connection_Standard->open()
91 self::$pool[$id] = DB_Connection::factory($source); 92 } 93 $this->id = $id; 94 } 95 if ( ! self::$pool[$id]->is_connected()) { 96 self::$pool[$id]->open(); 97 } 98 return self::$pool[$id]; 99 } 100 101 /**
-
MODPATH/leap/classes/base/db/sql/select/proxy.php [ 317 ] » Base_DB_Connection_Pool->get_connection(arguments)
0
array(0)
312 * @access public 313 * @param string $type the return type to be used 314 * @return DB_ResultSet the result set 315 */ 316 public function query($type = 'array') { 317 $connection = DB_Connection_Pool::instance()->get_connection($this->source); 318 $result_set = $connection->query($this->statement(), $type); 319 return $result_set; 320 } 321 322 }
-
APPPATH/classes/model/leap/oauthprovider.php [ 84 ] » Base_DB_SQL_Select_Proxy->query()
79 * 80 * @return array|null 81 */ 82 public function getAll() { 83 $builder = DB_SQL::select('default')->column('id')->from($this->table()); 84 $query = $builder->query(); 85 86 $providers = null; 87 if($query->is_loaded()) { 88 $providers = array(); 89 foreach($query as $record) {
-
APPPATH/classes/controller/base.php [ 351 ] » Model_Leap_OAuthProvider->getAll()
346 $this->templateData['center'] = $centerView->set('templateData', $this->templateData);; 347 } 348 } else { 349 if ($this->request->controller() == 'home' AND $this->request->action() == 'index') { 350 $this->templateData['redirectURL'] = Session::instance()->get('redirectURL'); 351 $this->templateData['oauthProviders'] = DB_ORM::model('oauthprovider')->getAll(); 352 Session::instance()->delete('redirectURL'); 353 $this->templateData['left'] = View::factory('login')->set('templateData', $this->templateData); 354 355 $maps = DB_ORM::model('map')->getAllEnabledOpenVisibleMap(); 356 $rooNodesMap = array();
-
{PHP internal call} » Controller_Base->before()
-
SYSPATH/classes/kohana/request/client/internal.php [ 103 ] » ReflectionMethod->invoke(arguments)
0
array(4) ( "template" => array(0) "auto_render" => bool TRUE "request" => array(1) ( "_injected_routes" => array(0) ) "response" => array(0) )
98 } 99 100 // Create a new instance of the controller 101 $controller = $class->newInstance($request, $request->response() ? $request->response() : $request->create_response()); 102 103 $class->getMethod('before')->invoke($controller); 104 105 // Determine the action to use 106 $action = $request->action(); 107 108 $params = $request->param();
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
array(1) ( "_injected_routes" => array(0) )
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 [ 1138 ] » Kohana_Request_Client->execute(arguments)
0
array(1) ( "_injected_routes" => array(0) )
1133 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1134 ':uri' => $this->_uri, 1135 )); 1136 } 1137 1138 return $this->_client->execute($this); 1139 } 1140 1141 /** 1142 * Returns whether this request is the initial request Kohana received. 1143 * 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() 111 ->body();