mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Allow setting page size for MemberTableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71621 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1d074a7e7a
commit
e17d88dcc3
@ -32,6 +32,12 @@ class MemberTableField extends ComplexTableField {
|
|||||||
|
|
||||||
static $data_class = "Member";
|
static $data_class = "Member";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the page size for this table.
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
public static $page_size = 20;
|
||||||
|
|
||||||
protected $permissions = array(
|
protected $permissions = array(
|
||||||
'add',
|
'add',
|
||||||
'edit',
|
'edit',
|
||||||
@ -122,6 +128,7 @@ class MemberTableField extends ComplexTableField {
|
|||||||
|
|
||||||
$this->sourceJoin = " INNER JOIN `Group_Members` ON `MemberID` = `Member`.`ID`";
|
$this->sourceJoin = " INNER JOIN `Group_Members` ON `MemberID` = `Member`.`ID`";
|
||||||
$this->setFieldListCsv($csvFieldList);
|
$this->setFieldListCsv($csvFieldList);
|
||||||
|
$this->setPageSize($this->stat('page_size'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function sourceID() {
|
function sourceID() {
|
||||||
|
Loading…
Reference in New Issue
Block a user