\VirtualBlock
The Virtual Block follows the same logic as a "Virtual Page" in the CMS.
It can be used to copy a blocks content to another page (or even multiple times within the same page).
Synopsis
class VirtualBlock
extends Block
{
- // members
- private static array $has_one = ;
- // methods
- public void getTitle()
- public void getCMSTitle()
- public void getCMSFields()
- public void CSSClass()
- public void HTML()
- // Inherited methods from Block
- public void getCMSFields()
- public string PublishedStatus()
- public boolean IsPublished()
- public void canCreate()
- public string CSSClass()
- public HTMLText HTML()
- public string FullTitle()
- public string getCMSTitle()
- protected bool isSortingChanged()
- protected void onBeforeWrite()
Hierarchy
Extends
Members
private
- $has_one
Methods
public
Inherited from Block
protected
- isSortingChanged() — Whether or not sorting of this block has changed.
- onBeforeWrite()
public
- CSSClass() — Class name to use in CSS
- FullTitle() — Get the full title of this block, including title of the parent (eg. the Page it belongs to)
- HTML() — Render this block to HTML
- IsPublished() — Whether or not this block has been published
- PublishedStatus() — Get the current published status.
- canCreate() — Prevent creation of non-specific Blocks
- getCMSFields()
- getCMSTitle() — Get the title to show in the CMS