Silverstripe\Shortcodable\Controller\ShortcodableController
ShortcodableController.
- Author: shea@livesource.co.nz
Synopsis
class ShortcodableController
extends LeftAndMain
{
- // members
- private static string $sc_url_segment = 'shortcodable';
- private static string $required_permission_codes = 'CMS_ACCESS_LeftAndMain';
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- protected $shortcodableclass;
- protected boolean $isnew = true;
- protected $shortcodedata;
- // methods
- public void init()
- public void Link()
- public void handleEdit()
- protected array getShortcodeData()
- public Form ShortcodeForm()
- public void shortcodePlaceHolder()
Hierarchy
Extends
- SilverStripe\Admin\LeftAndMain
Members
private
- $allowed_actions — array
- $required_permission_codes
- $sc_url_segment
- $url_handlers — array
protected
- $isnew — boolean
- $shortcodableclass — string
- $shortcodedata — array
Methods
protected
- getShortcodeData() — Get the shortcode data from the request.
public
- Link() — Point to edit link, if shortcodable class exists.
- ShortcodeForm() — Provides a GUI for the insert/edit shortcode popup.
- handleEdit() — handleEdit
- init() — Get the shortcodable class by whatever means possible.
- shortcodePlaceHolder() — Generates shortcode placeholder to display inside TinyMCE instead of the shortcode.