From ceeb9dfcc34138f3fe134bd024cd3bbfcf83bb62 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 15 Nov 2009 19:36:53 +0000 Subject: [PATCH] API CHANGE Removed deprecated MemberTableField->addMembershipField() and MemberTableField->addPermissions(), use TableListField->setPermissions() instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@91584 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/MemberTableField.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/code/MemberTableField.php b/code/MemberTableField.php index 78f63657..1ebf1236 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -37,40 +37,6 @@ class MemberTableField extends ComplexTableField { * @var int */ public static $page_size = 20; - - /** - * @deprecated 2.4. See {@link MemberTableField->addPermissions()} - */ - private static $addedPermissions = array(); - - /** - * @deprecated 2.4: See {@link MemberTableField->addMembershipFields()} - */ - private static $addedFields = array(); - - /** - * @deprecated 2.4: See {@link MemberTableField->addMembershipFields()} - */ - private static $addedCsvFields = array(); - - /** - * @deprecated 2.4. Set permissions using setPermissions(Array) on - * the MemberTableField object. - */ - public static function addPermissions($addingPermissionList) { - trigger_error('MemberTableField::addPermissions() is deprecated. Please set permissions using setPermissions(Array) on the MemberTableField object.', E_USER_NOTICE); - self::$addedPermissions = $addingPermissionList; - } - - /** - * @deprecated 2.4: Please use a DataObjectDecorator, implementing updateSummaryFields - * to alter the table overview fields instead. - */ - public static function addMembershipFields($addingFieldList, $addingCsvFieldList = null) { - trigger_error('MemberTableField::addMembershipFields() is deprecated. Please implement updateSummaryFields() on a Member decorator instead.', E_USER_NOTICE); - self::$addedFields = $addingFieldList; - $addingCsvFieldList == null ? self::$addedCsvFields = $addingFieldList : self::$addedCsvFields = $addingCsvFieldList; - } /** * Constructor method for MemberTableField.