From 5141700f4173c2c61f2e711ee27443862759a135 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 10 Feb 2009 03:27:12 +0000 Subject: [PATCH] MINOR Re-added deprecated variable on MemberTableField git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71594 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/MemberTableField.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/MemberTableField.php b/code/MemberTableField.php index 43f12c98..c40a99d4 100755 --- a/code/MemberTableField.php +++ b/code/MemberTableField.php @@ -32,6 +32,11 @@ class MemberTableField extends ComplexTableField { static $data_class = 'Member'; + /** + * @deprecated 2.4. See {@link MemberTableField->addPermissions()} + */ + private static $addedPermissions = array(); + /** * @deprecated 2.4: See {@link MemberTableField->addMembershipFields()} */ @@ -41,6 +46,15 @@ class MemberTableField extends ComplexTableField { * @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