\BlockTextMedia
Synopsis
class BlockTextMedia
extends BlockBase
{
- // members
- private static array $views = ;
- private static string $default_view = 'BBLayoutTextMediaNone';
- private static array $media_views = ;
- private static string $default_media_view = 'BBMediaSingleView';
- protected $selectedMediaView;
- private static array $has_many = ;
- private static array $db = ;
- // Inherited members from BlockBase
- protected array|boolean $blockAreaConfig;
- // methods
- public void singular_name()
- public void plural_name()
- public void fieldLabels()
- public void getCMSFields()
- public void getCMSValidator()
- public void onBeforeWrite()
- public void onAfterWrite()
- public void onAfterDelete()
- public array getAvailableMediaViews()
- public string getDefaultMediaView()
- protected void getSavedMediaItems()
- public void setViewData()
- public void MediaView()
- // Inherited methods from BlockBase
- protected void getCMSRequiredFields()
- public void getCMSValidator()
- public HTMLText xforTemplate()
- protected mixed getBlockAreaConfig()
- public void getMaxWidth()
- public int getMaxHeight()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
7+ | : Add field for menu, either JSON or menu set using a menu manager (eg. heyday/silverstripe-menumanager) Check if publishable.. |
216+ | Garbage cleanup routine for unlinked media items |
Members
private
- $db
- $default_media_view
—
string
Default view - $default_view
—
string
Default view - $has_many
- $media_views
—
array
Different layouts available for user selection. - $views
—
array
Different views available for user selection.
protected
- $blockAreaConfig
—
array|boolean
Instance cache for block area config - $selectedMediaView
—
array
Cache instantiated selected view class
Methods
protected
public
- MediaView()
- fieldLabels()
- getAvailableMediaViews()
- getCMSFields()
- getCMSValidator()
- getDefaultMediaView()
- onAfterDelete()
- onAfterWrite()
- onBeforeWrite()
- plural_name()
- setViewData()
- singular_name()
Inherited from BlockBase
protected
- getBlockAreaConfig() — Gets configuration for the associated block area
- getCMSRequiredFields()
public
- getCMSValidator()
- getMaxHeight() — Gets the max height configured
- getMaxWidth()
- xforTemplate() — Renders template