OP\Models\AnnouncementTile
just some content
Synopsis
class AnnouncementTile
extends Tile
{
- // members
- private static string $table_name = 'AnnouncementTile';
- private static string $singular_name = "Announcement tile";
- private static array $db = ;
- // Inherited members from Tile
- protected static integer $maxheight;
- protected static integer $maxwidth;
- // methods
- public void getCMSFields()
- public void ShowTile()
- // Inherited methods from Tile
- public void __construct()
- public FieldList getCMSFields()
- public int getMaxWidth()
- public int getMaxHeight()
- public string getSize()
- public FieldList getSettingsFields()
- public type forTemplate()
- public string CSSName()
- public A validate()
- public void canCreate()
- public boolean canView()
- public void canEdit()
- public int getWidth()
- public int getHeight()
- public void writeRawArray()
- public void isDraft()
- public void generateRawArray()
- public string getTileColor()
- public string getPreviewContent()
- public Image|null getPreviewImage()
- public void onBeforeWrite()
- public void setTileRowTo9000()
Hierarchy
Extends
Members
private
- $db
- $singular_name
- $table_name
protected
- $maxheight
- $maxwidth
Methods
public
Inherited from OP\Models\Tile
public
- CSSName() — Returns CSS friendly name
- canCreate()
- canEdit() — The idea here is that we check for conditions that are not met. if not met we return false This allows us to keep on appending checks
- canView() — This function should return true if the current user can view this page. It can be overloaded to customise the security model for an application.
- forTemplate() — render the tile
- generateRawArray() — takes in position x and y, and saves it
- getCMSFields() — create the field names
- getHeight() — get the height of this item (min of 1)
- getMaxHeight() — how tall this tile can get
- getMaxWidth() — how big this tile can grow side ways
- getPreviewContent() — text to be inside the tile itself
- getPreviewImage() — a preview image
- getSettingsFields() — Returns fields related to configuration aspects on this record, e.g. access control.
- getSize() — X-Y format of this tile
- getTileColor() — if you specify a background color
- getWidth() — get the width of this item (min of 1)
- isDraft()
- onBeforeWrite()
- setTileRowTo9000()
- validate() — Validates the tile data object
- writeRawArray() — takes in position x and y, and saves it