mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Updated MySQLDatabase::searchEngine() to use the new PaginatedList API.
This commit is contained in:
parent
fc8d442505
commit
8fb7b531cf
8
model/MySQLDatabase.php
Executable file → Normal file
8
model/MySQLDatabase.php
Executable file → Normal file
@ -832,8 +832,12 @@ class MySQLDatabase extends SS_Database {
|
||||
if(isset($objects)) $doSet = new DataObjectSet($objects);
|
||||
else $doSet = new DataObjectSet();
|
||||
|
||||
$doSet->setPageLimits($start, $pageLength, $totalCount);
|
||||
return $doSet;
|
||||
$list = new PaginatedList($doSet);
|
||||
$list->setPageStart($start);
|
||||
$list->setPageLEngth($pageLength);
|
||||
$list->setTotalItems($totalCount);
|
||||
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user