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:
Sean Harvey 2009-02-10 22:27:35 +00:00 committed by Sam Minnee
parent 1d074a7e7a
commit e17d88dcc3

View File

@ -32,6 +32,12 @@ class MemberTableField extends ComplexTableField {
static $data_class = "Member";
/**
* Set the page size for this table.
* @var int
*/
public static $page_size = 20;
protected $permissions = array(
'add',
'edit',
@ -122,6 +128,7 @@ class MemberTableField extends ComplexTableField {
$this->sourceJoin = " INNER JOIN `Group_Members` ON `MemberID` = `Member`.`ID`";
$this->setFieldListCsv($csvFieldList);
$this->setPageSize($this->stat('page_size'));
}
function sourceID() {