Broarm\PageSlices\Block\Block
Class Block
- Author: Bram de Leeuw
Synopsis
class Block
extends DataObject
{
- // members
- private static string $table_name = 'PageSlicesBlock';
- private static array $db = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- private static array $translate = ;
- private static array $extensions = ;
- private static string $block_image = 'bramdeleeuw/silverstripe-pageslices-blocks:client/images/Block.png';
- protected BlockController $controller;
- // methods
- public FieldList getCMSFields()
- public void validate()
- public void onAfterDuplicate()
- public string getBlockType()
- public string getCSSName()
- public string getBlockImage()
- public BlockController getController()
- public mixed getBetterButtonsUtils()
- public static array getAvailableBlocks()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $block_image
- $db
- $extensions
- $searchable_fields
- $summary_fields
- $table_name
- $translate
protected
- $controller — Broarm\PageSlices\Block\BlockController
Methods
public
- getAvailableBlocks() — Get the available block types
- getBetterButtonsUtils() — Remove the add new button from the utility list Because of the multi class, add new would create a new base class that should not be used (Could be replaced with an add new multi class button)
- getBlockImage() — Return the path to the section image
- getBlockType() — Return the translated ClassName
- getCMSFields()
- getCSSName() — Return a nice css name
- getController()
- onAfterDuplicate() — If this block holds has_many content on duplicate copy the content over
- validate()