\MatrixContentSource
Encapsulates a content source that pulls content through from MySource Matrix
Currently, only content retrieval via the JS api is supported.
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class MatrixContentSource
extends ExternalContentSource
implements
ExternalContentRepositoryProvider
{
- // members
- private static array $db = ;
- private static array $icon = ;
- protected unknown_type $repo;
- private static array $type_mapping = ;
- protected array $objectCache = ;
- // methods
- public FieldSet getCMSFields()
- public static void registerType()
- public SeaMistRepository getRemoteRepository()
- public void encodeId()
- public void decodeId()
- protected MatrixJSClient createConnector()
- public void getContentImporter()
- public void allowedImportTargets()
- public void onBeforeWrite()
- public DataObject getObject()
- public void getRoot()
- public ArrayList stageChildren()
- public void Children()
Hierarchy
Extends
- ExternalContentSource
Implements
- ExternalContentRepositoryProvider
Members
private
- $db
- $icon
- $type_mapping
—
array
A mapping of Matrix typecode to MatrixContentItem child type, if any
protected
- $objectCache
—
array
Read only cache of objects loaded from Matrix for this request - $repo
—
unknown_type
The Matrix server repository we're going to connect to
Methods
protected
- createConnector() — Create the repository connector
public
- Children()
- allowedImportTargets() — Matrix content can only be imported into the sitetree for now.
- decodeId()
- encodeId()
- getCMSFields()
- getContentImporter() — Return a new matrix content importer
- getObject() — Get the object represented by ID
- getRemoteRepository() — Get the alfresco seamistrepository connected
- getRoot() — Get the root object that we're listing from (non-PHPdoc)
- onBeforeWrite() — Whenever we save the content source, we want to disconnect the repository so that it reconnects with whatever new connection details are provided
- registerType() — Register a type
- stageChildren() — Override to fool hierarchy.php