\MatrixStandardPageItem
A standard page content item
- Author: Marcus Nyeholt <marcus@silverstripe.com.au>
Synopsis
class MatrixStandardPageItem
extends MatrixContentItem
{
- // Inherited members from MatrixContentItem
- protected Object $assetLinks;
- protected $objChildren;
- // methods
- public String Content()
- public ArrayList DependentChildren()
- public ArrayList Children()
- // Inherited methods from MatrixContentItem
- 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
Members
private
protected
- $assetLinks
—
Object
Holds all the information about the links this object has. - $objChildren
Methods
public
- Children() — Return all children that are NOT dependent children in matrix.
- Content() — Converts all contained bodycopies into content
- 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
Inherited from MatrixContentItem
public
- 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)