VirtualPage
class VirtualPage extends Page
Virtual Page creates an instance of a page, with the same fields that the original page had, but readonly.
This allows you can have a page in mulitple places in the site structure, with different children without duplicating the content.
Note: This Only duplicates $db fields and not the $has_one etc..
Properties
| static | $virtualFields | ||
| int | $CopyContentFromID |
Methods
Generates the array of fields required for the page type.
List of fields or properties to never virtualise
No description
No description
For VirtualPage, add a canonical link tag linking to the original page See TRAC #6828 & http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394
No description
No description
Returns true if is page is publishable by anyone at all Return false if the source page isn't published yet.
Generate the CMS fields from the fields from the original page.
No description
No description
No description
No description
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
No description
Check if given field is virtualised
Pass unrecognized method calls on to the original data object
No description
No description
Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field on this object.
{@inheritdoc}
{@inheritdoc}
No description
Details
at line 90
array
getVirtualFields()
Generates the array of fields required for the page type.
at line 109
array
getNonVirtualisedFields()
List of fields or properties to never virtualise
at line 118
setCopyContentFromID($val)
at line 127
ContentSource()
at line 143
string
MetaTags(boolean $includeTitle = true)
For VirtualPage, add a canonical link tag linking to the original page See TRAC #6828 & http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394
at line 157
allowedChildren()
at line 166
syncLinkTracking()
at line 183
bool
canPublish(Member $member = null)
We can only publish the page if there is a published source page
at line 194
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.
at line 217
getCMSFields()
Generate the CMS fields from the fields from the original page.
at line 289
onBeforeWrite()
at line 320
getSettingsFields()
at line 342
validate()
at line 366
updateImageTracking()
deprecated
deprecated
at line 387
CMSTreeClasses()
at line 402
array
getViewerTemplates(string $suffix = '')
Use the target page's class name for fetching templates - as we need to take on its appearance
at line 419
mixed
__get(string $field)
Allow attributes on the master page to pass through to the virtual page
at line 433
getField($field)
at line 447
bool
isFieldVirtualised(string $field)
Check if given field is virtualised
at line 472
mixed
__call(string $method, array $args)
Pass unrecognized method calls on to the original data object
at line 485
bool
hasField(string $field)
at line 498
bool
hasMethod(string $method)
at line 514
string
castingHelper(string $field)
Return the "casting helper" (a piece of PHP code that when evaluated creates a casted value object) for a field on this object.
at line 526
allMethodNames($custom = false)
{@inheritdoc}
at line 540
getControllerName()
{@inheritdoc}