system/libraries/drivers/Database.php 1 location
|
@@ 528-536 (lines=9) @@
|
525 |
|
/** |
526 |
|
* ArrayAccess: offsetGet |
527 |
|
*/ |
528 |
|
public function offsetGet($offset) |
529 |
|
{ |
530 |
|
if (! $this->seek($offset)) { |
531 |
|
return false; |
532 |
|
} |
533 |
|
|
534 |
|
// Return the row by calling the defined fetching callback |
535 |
|
return call_user_func($this->fetch_type, $this->result, $this->return_type); |
536 |
|
} |
537 |
|
|
538 |
|
/** |
539 |
|
* ArrayAccess: offsetSet |
system/libraries/drivers/Database/Mysqli.php 1 location
|
@@ 268-277 (lines=10) @@
|
265 |
|
return false; |
266 |
|
} |
267 |
|
|
268 |
|
public function offsetGet($offset) |
269 |
|
{ |
270 |
|
if (! $this->seek($offset)) { |
271 |
|
return false; |
272 |
|
} |
273 |
|
|
274 |
|
// Return the row |
275 |
|
$fetch = $this->fetch_type; |
276 |
|
return $this->result->$fetch($this->return_type); |
277 |
|
} |
278 |
|
} // End Mysqli_Result Class |
279 |
|
|
280 |
|
/** |
system/libraries/drivers/Database/Pgsql.php 1 location
|
@@ 444-453 (lines=10) @@
|
441 |
|
/** |
442 |
|
* ArrayAccess: offsetGet |
443 |
|
*/ |
444 |
|
public function offsetGet($offset) |
445 |
|
{ |
446 |
|
if (! $this->seek($offset)) { |
447 |
|
return false; |
448 |
|
} |
449 |
|
|
450 |
|
// Return the row by calling the defined fetching callback |
451 |
|
$fetch = $this->fetch_type; |
452 |
|
return $fetch($this->result, null, $this->return_type); |
453 |
|
} |
454 |
|
} // End Pgsql_Result Class |
455 |
|
|
456 |
|
/** |