\RestrictedList
- Author: <marcus@silverstripe.com.au>
- License: BSD License http://www.silverstripe.org/bsd-license
Synopsis
class RestrictedList
extends DataList
{
- // members
- private string $requiredPermission = 'View';
- // methods
- public RestrictedList requirePerm()
- public void toArray()
- public void byID()
Hierarchy
Extends
- DataList
Tasks
Line | Task |
---|---|
44 | if we don't have enough, we need to query again, but |
Members
private
- $requiredPermission
—
string
The permission / role being checked for the data list items
Methods
public
- byID()
- requirePerm() — Set the required permission
- toArray()