\DataService
A wrapper around DataObject:: static methods that perform proper security checks when loading objects
- Author: marcus@silverstripe.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class DataService
{
- // methods
- public void __call()
- public DataObjectSet getAll()
- public DataObject getOne()
- public DataObject byId()
- public mixed loadObjects()
- protected void filterList()
Methods
protected
- filterList() — Filter the given list to return the accessible objects
public
- __call() — Shortcut for loading objects.
- byId() — Return the given element, searching by ID
- getAll() — Retrieve a list of data objects
- getOne() — Gets a single object
- loadObjects() — A reimplementation of DataObject::instance_get