mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3344 from tractorcow/pulls/3.2/sslist
API SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List
This commit is contained in:
commit
bab4a24f4b
@ -11,6 +11,7 @@
|
||||
* HtmlEditorField no longer substitutes `<blockquote />` for indented text
|
||||
* ClassInfo::dataClassesFor now returns classes which should have tables, regardless of whether those
|
||||
tables actually exist.
|
||||
* SS_Filterable, SS_Limitable and SS_Sortable now explicitly extend SS_List
|
||||
|
||||
### CMS
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
* @package framework
|
||||
* @subpackage model
|
||||
*/
|
||||
interface SS_Filterable {
|
||||
interface SS_Filterable extends SS_List {
|
||||
|
||||
/**
|
||||
* Returns TRUE if the list can be filtered by a given field expression.
|
||||
@ -19,7 +19,7 @@ interface SS_Filterable {
|
||||
* @return bool
|
||||
*/
|
||||
public function canFilterBy($by);
|
||||
|
||||
|
||||
/**
|
||||
* Return a new instance of this list that only includes items with these charactaristics
|
||||
*
|
||||
|
@ -10,13 +10,13 @@
|
||||
* @package framework
|
||||
* @subpackage model
|
||||
*/
|
||||
interface SS_Limitable {
|
||||
interface SS_Limitable extends SS_List {
|
||||
|
||||
/**
|
||||
* Returns a new instance of this list where no more than $limit records are included.
|
||||
* If $offset is specified, then that many records at the beginning of the list will be skipped.
|
||||
* This matches the behaviour of the SQL LIMIT clause.
|
||||
*
|
||||
*
|
||||
* @return SS_Limitable
|
||||
*/
|
||||
public function limit($limit, $offset = 0);
|
||||
|
@ -10,7 +10,7 @@
|
||||
* @package framework
|
||||
* @subpackage model
|
||||
*/
|
||||
interface SS_Sortable {
|
||||
interface SS_Sortable extends SS_List {
|
||||
|
||||
/**
|
||||
* Returns TRUE if the list can be sorted by a field.
|
||||
@ -31,8 +31,8 @@ interface SS_Sortable {
|
||||
* @example $list = $list->sort(array('Name'=>'ASC,'Age'=>'DESC'));
|
||||
*/
|
||||
public function sort();
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Return a new instance of this list based on reversing the current sort.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user