SubsitesVirtualPage
class SubsitesVirtualPage extends VirtualPage (View source)
Properties
public static | $virtualFields | from VirtualPage | ||
int | $CopyContentFromID | from VirtualPage |
Methods
List of fields or properties to never virtualise
Get the record to check against for allowed children check in validation.
Returns true if is page is publishable by anyone at all Return false if the source page isn't published yet.
Copy any fields from the copied record to bootstrap /backup
Update the CSS classes to apply to this node in the CMS tree.
Use the target page's class name for fetching templates - as we need to take on its appearance
Allow attributes on the master page to pass through to the virtual page
Pass unrecognized method calls on to the original data object
Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field on this object.
Details
array
getVirtualFields()
Generates the array of fields required for the page type.
array
getNonVirtualisedFields()
List of fields or properties to never virtualise
setCopyContentFromID($val)
No description
ContentSource()
No description
array
MetaComponents()
No description
allowedChildren()
No description
SiteTree
getRecordForAllowedChildrenValidation()
Get the record to check against for allowed children check in validation.
syncLinkTracking()
No description
bool
canPublish(Member $member = null)
We can only publish the page if there is a published source page
isPublishable()
Returns true if is page is publishable by anyone at all Return false if the source page isn't published yet.
Note that isPublishable doesn't affect ete from live, only publish.
getCMSFields()
Generate the CMS fields from the fields from the original page.
protected
onBeforeWrite()
No description
protected
refreshFromCopied()
Copy any fields from the copied record to bootstrap /backup
getSettingsFields()
No description
ValidationResult
validate()
No description
void
updateCMSTreeClasses(string $classes)
Update the CSS classes to apply to this node in the CMS tree.
array
getViewerTemplates(string $suffix = '')
Use the target page's class name for fetching templates - as we need to take on its appearance
mixed
__get(string $field)
Allow attributes on the master page to pass through to the virtual page
mixed
getField(string $field)
No description
bool
isFieldVirtualised(string $field)
Check if given field is virtualised
mixed
__call(string $method, array $args)
Pass unrecognized method calls on to the original data object
bool
hasField(string $fieldName)
No description
bool
hasMethod(string $method)
No description
string|null
castingHelper(string $field, bool $useFallback = true)
Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field on this object.
allMethodNames($custom = false)
{@inheritdoc}
getControllerName()
{@inheritdoc}
SiteTree
CopyContentFrom()
No description
getCopyContentFromID_SubsiteID()
No description
validURLSegment()
No description