\ContentService
Entry point interface for accessing content related functionality
- Author: marcus@symbiote.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class ContentService
{
- // constants
- const SEPARATOR = ':||';
- // members
- protected $defaultStore;
- protected array $stores = ;
- // methods
- public void __construct()
- public void setStores()
- public array getStoreTypes()
- public void getDefaultStore()
- public ContentWriter getWriterFor()
- public ContentReader getReader()
- public ContentWriter getWriter()
- protected cls createReaderWriter()
- public ContentReader findReaderFor()
Constants
Name | Value |
---|---|
SEPARATOR | ':||' |
Members
protected
- $defaultStore
- $stores
Methods
protected
- createReaderWriter() — Handles creation of a reader/writer
public
- __construct()
- findReaderFor() — Gets a content reader for the given store type over the asset given in assetName. This is used for finding if an asset is stored remotely or not
- getDefaultStore()
- getReader()
- getStoreTypes() — Get the list of configured store types
- getWriter()
- getWriterFor() — Gets a writer for a DataObject
- setStores() — Set the list of stores available