gorriecoe\Embed\Models\Embed
Embed
Synopsis
class Embed
extends DataObject
{
- // members
- private static string $table_name = 'Embed';
- private static string $singular_name = 'Embed';
- private static string $plural_name = 'Embed';
- private static array $summary_fields = ;
- private static array $extensions = ;
- private static $allowed_embed_types = NULL;
- private static string $embed_folder = 'Embed';
- // methods
- public FieldList getCMSFields()
- public String getTitle()
- public $this setClass()
- public string getClass()
- public HTML forTemplate()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $allowed_embed_types
—
array
List the allowed included embed types. If null all are allowed. - $embed_folder
—
string
Defines upload folder for embedded assets - $extensions
—
array
Defines extension names and parameters to be applied to this object upon construction. - $plural_name
—
string
Plural name for CMS - $singular_name
—
string
Singular name for CMS - $summary_fields
—
array
Defines summary fields commonly used in table columns as a quick overview of the data for this dataobject - $table_name
—
string
Defines the database table name
Methods
public
- forTemplate() — Renders an HTML anchor tag for this link
- getCMSFields() — CMS Fields
- getClass() — Returns the classes for this embed.
- getTitle() — Alias for EmbedTitle This is used by CMS Title and breadcrumbs.
- setClass() — Set CSS classes for templates