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(3) "map"
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/sql/select/proxy.php [ 175 ] » Base_DB_SQL_Select_Builder->where(arguments)
0
string(5) "model"
1
string(1) "="
2
string(3) "map"
3
string(3) "AND"
4
bool FALSE
170 * @param string $value the value the column is constrained with 171 * @param string $connector the connector to be used 172 * @return DB_SQL_Select_Proxy a reference to the current instance 173 */ 174 public function where($column, $operator, $value, $connector = 'AND', $withFunc = false) { 175 $this->builder->where($column, $operator, $value, $connector, $withFunc); 176 return $this; 177 } 178 179 /** 180 * This function adds a "group by" clause.
-
APPPATH/classes/model/leap/metadata.php [ 152 ] » Base_DB_SQL_Select_Proxy->where(arguments)
0
string(5) "model"
1
string(1) "="
2
string(3) "map"
147 public static function getMetadataByModelName($model="") 148 { 149 if($model==="") 150 $builder = DB_SQL::select('default')->from(self::table()); 151 else 152 $builder = DB_SQL::select('default')->from(self::table())->where('model', '=', $model); 153 $result = $builder->query(); 154 155 if ($result->is_loaded()) { 156 $metadataFields = array(); 157
-
APPPATH/classes/model/leap/metadata.php [ 123 ] » Model_Leap_Metadata::getMetadataByModelName(arguments)
0
string(3) "map"
118 { 119 return array('id'); 120 } 121 122 public static function getMetadataRelationsMetadata($model, $object){ 123 $metadataFields = self::getMetadataByModelName($model); 124 $relationsMetadata = array(); 125 126 foreach ($metadataFields as $metadata) { 127 $relationsMetadata[$metadata->name] = $metadata->toRelationMetadata($object); 128 }
-
APPPATH/classes/model/leap/metadata.php [ 136 ] » Model_Leap_Metadata::getMetadataRelationsMetadata(arguments)
0
string(3) "map"
1
array(0)
131 132 } 133 134 public static function getMetadataRelations($type, $object) 135 { 136 $relationsMetadata = self::getMetadataRelationsMetadata($type,$object); 137 138 $relations = array(); 139 foreach($relationsMetadata as $key=>$relMetadata){ 140 $relations[$key] = new DB_ORM_Relation_HasMany($object, $relMetadata); 141 }
-
APPPATH/classes/model/leap/map.php [ 217 ] » Model_Leap_Metadata::getMetadataRelations(arguments)
0
string(3) "map"
1
array(0)
212 self::initialize_metadata($this); 213 } 214 215 private static function initialize_metadata($object) 216 { 217 $metadata = Model_Leap_Metadata::getMetadataRelations("map", $object); 218 $object->relations = array_merge($object->relations, $metadata); 219 } 220 221 public static function data_source() 222 {
-
APPPATH/classes/model/leap/map.php [ 212 ] » Model_Leap_Map::initialize_metadata(arguments)
0
array(0)
207 'child_key' => array('map_id'), 208 'child_model' => 'map_node', 209 'parent_key' => array('id'), 210 )), 211 ); 212 self::initialize_metadata($this); 213 } 214 215 private static function initialize_metadata($object) 216 { 217 $metadata = Model_Leap_Metadata::getMetadataRelations("map", $object);
-
MODPATH/leap/classes/base/db/orm/model.php [ 518 ] » Model_Leap_Map->__construct()
513 * @param string $model the model's name 514 * @return mixed an instance of the specified model 515 */ 516 public static function factory($model) { 517 $model = DB_ORM_Model::model_name($model); 518 return new $model(); 519 } 520 521 /** 522 * This function returns whether the primary key auto increments. 523 *
-
MODPATH/leap/classes/base/db/orm.php [ 83 ] » Base_DB_ORM_Model::factory(arguments)
0
string(3) "Map"
78 * @param array $primary_key the column values of the primary key 79 * that will be used to load the model 80 * @return mixed an instance of the specified model 81 */ 82 public static function model($model, $primary_key = array()) { 83 $model = DB_ORM_Model::factory($model); 84 if ( ! empty($primary_key)) { 85 if ( ! is_array($primary_key)) { 86 $primary_key = array($primary_key); 87 } 88 $model_key = call_user_func(array(get_class($model), 'primary_key'));
-
APPPATH/classes/controller/renderlabyrinth.php [ 2144 ] » Base_DB_ORM::model(arguments)
0
string(3) "Map"
1
array(1) ( 0 => string(2) "13" )
2139 public function checkTypeCompatibility ($idMap) 2140 { 2141 $logged = Auth::instance()->logged_in(); 2142 $userType = false; 2143 $idUser = false; 2144 $map = DB_ORM::model('Map', array($idMap)); 2145 $labyrinthType = $map->security_id; 2146 $idScenario = false; 2147 $assignUser = false; 2148 if ($logged) { 2149 $user = Auth::instance()->get_user();
-
APPPATH/classes/controller/renderlabyrinth.php [ 39 ] » Controller_RenderLabyrinth->checkTypeCompatibility(arguments)
0
string(2) "13"
34 { 35 Lti_DataConnector::getLtiPost(); 36 37 $mapId = $this->request->param('id', null); 38 39 if ( ! ($mapId AND $this->checkTypeCompatibility($mapId))) { 40 Session::instance()->set('redirectURL', $this->request->uri()); 41 Request::initial()->redirect(URL::base()); 42 } 43 44 $this->mapId = $mapId;
-
APPPATH/classes/controller/renderlabyrinth.php [ 366 ] » Controller_RenderLabyrinth->renderLabyrinth(arguments)
0
string(2) "go"
361 // } 362 } 363 364 public function action_go() 365 { 366 $this->renderLabyrinth('go'); 367 // $mapId = $this->request->param('id', NULL); 368 // $nodeId = $this->request->param('id2', NULL); 369 // $editOn = $this->request->param('id3', NULL); 370 // $bookMark = $this->request->param('id4', NULL); 371 // $this->mapId = $mapId;
-
{PHP internal call} » Controller_RenderLabyrinth->action_go()
-
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();