\ExternalContentRepositoryProvider
Indicates that the given object provides access to a remote repository
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
- License: BSD License http://silverstripe.org/bsd-license
Synopsis
interface ExternalContentRepositoryProvider
{
- // methods
- public mixed getRemoteRepository()
- public ExternalContentItem getObject()
Methods
public
- getObject() — Get a reference to a remote object based on its ID. The $id variable refers to the ID as stored in the remote system; any translation needed should be performed by this method's implementation (for example, the IDs of some content items may have characters that are invalid in in SilverStripe; check the AlfrescoContentSource for an example of how this can be handled.
- getRemoteRepository() — Retrieve a reference to the object that communicates with the remote repository.