\ExternalContent
A class that provides methods for working with external content, aware of the nature of compound IDs and when to load data from SilverStripe to facilitate loading from other sources.
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
- License: BSD License http://silverstripe.org/bsd-license
Synopsis
class ExternalContent
{
- // constants
- const ID_SEPARATOR = '_';
- const ID_FORMAT = "/(\d+)(\_.*)?/";
- const DEFAULT_CLASS = 'ExternalContentSource';
- // methods
- public static DataObject getDataObjectFor()
Constants
Name | Value |
---|---|
ID_SEPARATOR | '_' |
ID_FORMAT | "/(\d+)(\_.*)?/" |
DEFAULT_CLASS | 'ExternalContentSource' |
Methods
public
- getDataObjectFor() — Get the actual object based on a composite ID