SilverStripe\CMS\Tests\Model\VirtualPageTest_VirtualPageSub
Synopsis
class VirtualPageTest_VirtualPageSub
extends VirtualPage
implements
TestOnly
{
- // members
- private static string $table_name = 'VirtualPageTest_VirtualPageSub';
- private static array $db = ;
- // Inherited members from VirtualPage
- public static $virtualFields;
- // Inherited methods from VirtualPage
- public array getVirtualFields()
- public array getNonVirtualisedFields()
- public void setCopyContentFromID()
- public void ContentSource()
- public array MetaComponents()
- public void allowedChildren()
- public void syncLinkTracking()
- public bool canPublish()
- public void isPublishable()
- public void getCMSFields()
- public void onBeforeWrite()
- protected void refreshFromCopied()
- public void getSettingsFields()
- public void validate()
- public void updateImageTracking()
- public void CMSTreeClasses()
- public array getViewerTemplates()
- public mixed __get()
- public void getField()
- public bool isFieldVirtualised()
- public mixed __call()
- public bool hasField()
- public bool hasMethod()
- public string castingHelper()
- public void allMethodNames()
- public void getControllerName()
Hierarchy
Members
private
- $db
- $table_name
public
- $virtualFields
Methods
Inherited from SilverStripe\CMS\Model\VirtualPage
protected
- refreshFromCopied() — Copy any fields from the copied record to bootstrap /backup
public
- CMSTreeClasses()
- ContentSource()
- MetaComponents()
- __call() — Pass unrecognized method calls on to the original data object
- __get() — Allow attributes on the master page to pass through to the virtual page
- allMethodNames() — {@inheritdoc}
- allowedChildren()
- canPublish() — We can only publish the page if there is a published source page
- castingHelper() — Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field on this object.
- getCMSFields() — Generate the CMS fields from the fields from the original page.
- getControllerName() — {@inheritdoc}
- getField()
- getNonVirtualisedFields() — List of fields or properties to never virtualise
- getSettingsFields()
- getViewerTemplates() — Use the target page's class name for fetching templates - as we need to take on its appearance
- getVirtualFields() — Generates the array of fields required for the page type.
- hasField()
- hasMethod()
- isFieldVirtualised() — Check if given field is virtualised
- isPublishable() — Returns true if is page is publishable by anyone at all Return false if the source page isn't published yet.
- onBeforeWrite()
- setCopyContentFromID()
- syncLinkTracking()
- updateImageTracking()
- validate()