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/mysql/expression.php [ 353 ] » Base_DB_Connection_Pool->get_connection(arguments)
0
array(0)
348 } 349 else if (empty($expr)) { 350 return "''"; 351 } 352 else { 353 return DB_Connection_Pool::instance()->get_connection($this->source)->quote($expr, $escape); 354 } 355 } 356 357 /** 358 * This function prepares the specified expression as a wildcard.
-
MODPATH/leap/classes/base/db/sql/select/builder.php [ 278 ] » Base_DB_MySQL_Expression->prepare_value(arguments)
0
string(2) "16"
1
NULL
273 $column = $this->compiler->prepare_identifier($column, $withFunc); 274 // $escape = (in_array($operator, array(DB_SQL_Operator::_LIKE_, DB_SQL_Operator::_NOT_LIKE_))) 275 // ? '\\' 276 // : NULL; 277 $escape = NULL; 278 $value = $this->compiler->prepare_value($value, $escape); 279 $connector = $this->compiler->prepare_connector($connector); 280 $this->data['where'][] = array($connector, "{$column} {$operator} {$value}"); 281 } 282 return $this; 283 }
-
MODPATH/leap/classes/base/db/orm/select/proxy.php [ 222 ] » Base_DB_SQL_Select_Builder->where(arguments)
0
string(6) "map_id"
1
string(1) "="
2
string(2) "16"
3
string(3) "AND"
217 * @param string $value the value the column is constrained with 218 * @param string $connector the connector to be used 219 * @return DB_ORM_Select_Proxy a reference to the current instance 220 */ 221 public function where($column, $operator, $value, $connector = 'AND') { 222 $this->builder->where($column, $operator, $value, $connector); 223 return $this; 224 } 225 226 /** 227 * This function adds a "group by" clause.
-
APPPATH/classes/model/leap/qcumulative.php [ 74 ] » Base_DB_ORM_Select_Proxy->where(arguments)
0
string(6) "map_id"
1
string(1) "="
2
string(2) "16"
69 } 70 } 71 72 public function setResetByMap($mapId) 73 { 74 $questions = DB_ORM::select('Map_Question')->where('map_id', '=', $mapId)->where('entry_type_id', '=', 9)->query()->as_array(); 75 foreach ($questions as $question) { 76 $reset = time(); 77 $questionId = $question->id; 78 $alreadyReset = DB_ORM::select('qCumulative')->where('question_id', '=', $questionId)->where('map_id', '=', $mapId)->query()->fetch(); 79
-
APPPATH/classes/controller/renderlabyrinth.php [ 1040 ] » Model_Leap_qCumulative->setResetByMap(arguments)
0
string(2) "16"
1035 if ($scenarioId AND $scenarioStep) { 1036 Session::instance()->set('webinarId', $scenarioId); 1037 Session::instance()->set('step', $scenarioStep); 1038 } 1039 1040 DB_ORM::model('qCumulative')->setResetByMap($mapId); 1041 1042 Request::initial()->redirect(URL::base().'renderLabyrinth/index/'.$mapId.'?reset=true'); 1043 } 1044 1045 public function action_ajaxDraggingQuestionResponse()
-
{PHP internal call} » Controller_RenderLabyrinth->action_reset()
-
SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)
0
array(6) ( "template" => array(0) "mapId" => integer 0 "questionsId" => array(0) "auto_render" => bool TRUE "request" => array(1) ( "_injected_routes" => array(0) ) "response" => array(0) )
113 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 114 array(':uri' => $request->uri())); 115 } 116 117 $method = $class->getMethod('action_'.$action); 118 $method->invoke($controller); 119 120 // Execute the "after action" method 121 $class->getMethod('after')->invoke($controller); 122 } 123 catch (Exception $e)
-
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();