\Block
Created by PhpStorm.
User: qunabu
Date: 20.07.17
Time: 14:07
Synopsis
class Block
extends DataObject
{
- // constants
- const DIR_BLOCK = '/mysite/images/blocks/';
- // members
- private static string $singular_name = 'Block';
- private static string $plural_name = 'Blocks';
- private static boolean $first_write = false;
- protected string $help = '';
- private static array $db = ;
- private static array $belongs_many_many = ;
- private static array $defaults = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public void getPageTitles()
- public void __construct()
- public void createStringAsHTML()
- public $conf InlineButton()
- public GridField GridFieldGenerator()
- public static path CMSThumbnailPath()
- public static URL CMSThumbnailURL()
- public static void getCMSThumbnail()
- public static void getCMSHelp()
- public void CMSHelp()
- public static void getCMSDescription()
- public void CMSDescription()
- public HTML CMSThumbnail()
- public void getCMSFields()
- public void canView()
- public void canEdit()
- public void canCreate()
- public void canPublish()
- public void populateDefaults()
- public void getIsActive()
- protected void onBeforeWrite()
- public void forTemplate()
- public SiteTree CurrentPage()
- public void CurrentController()
- public void getEditLink()
Hierarchy
Extends
- DataObject
Constants
Name | Value |
---|---|
DIR_BLOCK | '/mysite/images/blocks/' |
Members
private
- $belongs_many_many
- $casting
- $db
- $defaults
- $first_write
- $plural_name
- $searchable_fields
- $singular_name
- $summary_fields
protected
- $help
Methods
protected
public
- __construct() — Configuration style WYSIWYG (TinyMCE) for Title Title- > HTMLVarchar
- CMSDescription()
- CMSHelp()
- CMSThumbnail() — image thumbnail
- CMSThumbnailPath() — Path File Thumbnail
- CMSThumbnailURL()
- CurrentController()
- 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
- GridFieldGenerator()
- InlineButton() — Add Inline Button for GirdField more user friendly, so you can add many DataObject on one admin page without useless clicks.
- canCreate()
- canEdit()
- canPublish()
- canView()
- createStringAsHTML()
- forTemplate()
- getCMSDescription()
- getCMSFields()
- getCMSHelp()
- getCMSThumbnail()
- getEditLink()
- getIsActive()
- getPageTitles()
- populateDefaults()