\FormBlock
Synopsis
class FormBlock
extends Block
{
- // members
- private static string $singular_name = 'FormBlock';
- private static string $plural_name = 'FormBlocks';
- public static array $db = ;
- public static array $has_one = ;
- public static array $many_many = ;
- // methods
- public void getCMSFields()
- public void Form()
- public void status()
- // Inherited methods from Block
- public void createStringAsHTML()
- public void populateDefaults()
- public void canView()
- public void canEdit()
- public void canCreate()
- public void canPublish()
- public void validate()
- public void getIsActive()
- public void getCMSFields()
- public void getInternalExternalLink()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void onBeforeDelete()
- public void canDelete()
- public void recurse_copy()
- public void ColumnClass()
- public void getThumbnail()
- public void forTemplate()
- public void file_ext()
- public void file_ext_strip()
- public string getExtraClasses()
- public Image FormattedBlockImage()
- public SiteTree CurrentPage()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
142 | This is not working when a block is added under another block |
Members
private
- $plural_name
- $singular_name
public
- $db
- $has_one
- $many_many
Methods
public
Inherited from Block
public
- ColumnClass()
- CurrentPage() — Returns the page object (SiteTree) that we are currently on Allow us to loop on children of the page and other page related data
- FormattedBlockImage()
- canCreate()
- canDelete()
- canEdit()
- canPublish()
- canView()
- createStringAsHTML()
- file_ext()
- file_ext_strip()
- forTemplate()
- getCMSFields()
- getExtraClasses()
- getInternalExternalLink() — Return the link that we should redirect to.
- getIsActive()
- getThumbnail()
- onAfterWrite()
- onBeforeDelete()
- onBeforeWrite()
- populateDefaults()
- recurse_copy()
- validate()