mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
8dd644d25d
Namespace all templates Move difflib and BBCodeParser2 to thirdparty Remove deprecated API marked for removal in 4.0
27 lines
771 B
PHP
27 lines
771 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM;
|
|
|
|
/**
|
|
* Additional interface for {@link SS_List} classes that are limitable - able to have a subset of the list extracted.
|
|
*
|
|
* All methods in this interface are immutable - they should return new instances with the limit
|
|
* applied, rather than applying the limit in place
|
|
*
|
|
* @see SS_List, SS_Sortable, SS_Filterable
|
|
*/
|
|
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.
|
|
*
|
|
* @param int $limit
|
|
* @param int $offset
|
|
* @return static
|
|
*/
|
|
public function limit($limit, $offset = 0);
|
|
|
|
}
|