mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Removed MemberTableField deprecated methods for adding fields - this should be done by implementing summary fields on a Member decorator instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@93662 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ce3365d095
commit
0dfa69146d
@ -39,48 +39,14 @@ class MemberTableField extends ComplexTableField {
|
|||||||
public static $page_size = 20;
|
public static $page_size = 20;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated 2.4. See {@link MemberTableField->addPermissions()}
|
* Constructor method for MemberTableField.
|
||||||
|
*
|
||||||
|
* @param Controller $controller Controller class which created this field
|
||||||
|
* @param string $name Name of the field (e.g. "Members")
|
||||||
|
* @param mixed $group Can be the ID of a Group instance, or a Group instance itself
|
||||||
|
* @param DataObjectSet $members Optional set of Members to set as the source items for this field
|
||||||
|
* @param boolean $hidePassword Hide the password field or not in the summary?
|
||||||
*/
|
*/
|
||||||
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.
|
|
||||||
*
|
|
||||||
* @param Controller $controller Controller class which created this field
|
|
||||||
* @param string $name Name of the field (e.g. "Members")
|
|
||||||
* @param mixed $group Can be the ID of a Group instance, or a Group instance itself
|
|
||||||
* @param DataObjectSet $members Optional set of Members to set as the source items for this field
|
|
||||||
* @param boolean $hidePassword Hide the password field or not in the summary?
|
|
||||||
*/
|
|
||||||
function __construct($controller, $name, $group, $members = null, $hidePassword = true) {
|
function __construct($controller, $name, $group, $members = null, $hidePassword = true) {
|
||||||
$sourceClass = self::$data_class;
|
$sourceClass = self::$data_class;
|
||||||
$SNG_member = singleton($sourceClass);
|
$SNG_member = singleton($sourceClass);
|
||||||
|
Loading…
Reference in New Issue
Block a user