mirror of
https://github.com/dg/dibi.git
synced 2025-07-31 03:10:14 +02:00
removed some old and deprecated stuff
This commit is contained in:
@@ -17,12 +17,12 @@ dibi::connect(array(
|
||||
|
||||
|
||||
// using the "prototype" to add custom method to class DibiResult
|
||||
function DibiResult_prototype_fetchShuffle(DibiResult $obj)
|
||||
DibiResult::extensionMethod('fetchShuffle', function(DibiResult $obj)
|
||||
{
|
||||
$all = $obj->fetchAll();
|
||||
shuffle($all);
|
||||
return $all;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// fetch complete result set shuffled
|
||||
|
Reference in New Issue
Block a user