\MatrixContentItem
An external content item sourced from a MySource Matrix system
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class MatrixContentItem
extends ExternalContentItem
{
- // members
- private static String $icon = ;
- protected Object $assetLinks;
- protected $objChildren = NULL;
- // methods
- public void __construct()
- public void streamContent()
- public void getType()
- public ArrayList stageChildren()
- public int numChildren()
- public DataObjectSource DependentChildren()
- public DataObjectSource Children()
- public void convertContent()
Hierarchy
Extends
- ExternalContentItem
Members
private
- $icon
—
String
Use the same icon for everything
protected
- $assetLinks
—
Object
Holds all the information about the links this object has. - $objChildren
Methods
public
- __construct() — On creation, bind to the cmisobj if provided
- Children() — Return all children that are NOT dependent children in matrix.
- DependentChildren() — Matrix has the concept of dependent children whereby some asset types have children that only have relevance in the context of 'this' asset. This method returns just those children
- convertContent() — Converts arbitrary matrix based content into something that can be understood in SS
- getType() — Return the asset type
- numChildren() — Check the object type; if it's a Document, return 0, otherwise return one as we don't know whether this type has children or not
- stageChildren() — Overridden to load all children from Matrix. For now we're ignoring the $showAll param - we have a separate 'dependentChildren' method to specifically handle dependent and non-dependent children
- streamContent() — Overridden to pass the content through as its downloaded (if it's not cached locally)