gorriecoe\Embed\Extensions\Embeddable
Embeddable
Synopsis
class Embeddable
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static string $embed_tab = 'Main';
- protected array $classes = ;
- protected string $template = 'Embed';
- // methods
- public FieldList updateCMSFields()
- public void onBeforeWrite()
- public array()|null getAllowedEmbedTypes()
- public ValidationResult validate()
- public string getEmbedFolder()
- public DataObject setEmbedClass()
- public string getEmbedClass()
- public DataObject setEmbedTemplate()
- public HTML getEmbed()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
—
array
Database fields - $embed_tab
—
string
Defines tab to insert the embed fields into. - $has_one
—
array
Has_one relationship - $owns
—
array
Relationship version ownership
protected
- $classes
—
array
List of custom CSS classes for template. - $template
—
string
Defines the template to render the embed in.
Methods
public
- getAllowedEmbedTypes()
- getEmbed() — Renders embed into appropriate template HTML
- getEmbedClass() — Returns the classes for this embed.
- getEmbedFolder()
- onBeforeWrite() — Event handler called before writing to the database.
- setEmbedClass() — Set CSS classes for templates
- setEmbedTemplate() — Set CSS classes for templates
- updateCMSFields() — Update Fields
- validate()