mirror of
https://github.com/dg/dibi.git
synced 2025-08-02 20:27:35 +02:00
moved to namespace Dibi
added loader for old class names
This commit is contained in:
@@ -17,8 +17,8 @@ dibi::connect([
|
||||
]);
|
||||
|
||||
|
||||
// using the "prototype" to add custom method to class DibiResult
|
||||
DibiResult::extensionMethod('fetchShuffle', function (DibiResult $obj) {
|
||||
// using the "prototype" to add custom method to class Dibi\Result
|
||||
Dibi\Result::extensionMethod('fetchShuffle', function (Dibi\Result $obj) {
|
||||
$all = $obj->fetchAll();
|
||||
shuffle($all);
|
||||
return $all;
|
||||
|
Reference in New Issue
Block a user