SLONline\CallToActions\CallToActionController
Synopsis
class CallToActionController
extends LeftAndMain
{
- // members
- private static string $ca_url_segment = 'CallToActionController';
- private static boolean $required_permission_codes = false;
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- protected $calltoactionclass;
- protected $shortcodedata;
- protected boolean $isnew = true;
- // methods
- public void init()
- protected array getShortcodeData()
- public void handleEdit()
- public void Link()
- public Form CallToActionForm()
- public void shortcodePlaceHolder()
- public void canView()
Hierarchy
Extends
- SilverStripe\Admin\LeftAndMain
Members
private
- $allowed_actions — array
- $ca_url_segment
- $required_permission_codes
- $url_handlers — array
protected
- $calltoactionclass — string
- $isnew — boolean
- $shortcodedata — array
Methods
protected
- getShortcodeData() — Get the shortcode data from the request.
public
- CallToActionForm() — Provides a GUI for the insert/edit shortcode popup.
- Link() — Point to edit link, if shortcodable class exists.
- canView()
- handleEdit() — handleEdit
- init() — Get the shortcodable class by whatever means possible.
- shortcodePlaceHolder() — Generates shortcode placeholder to display inside TinyMCE instead of the shortcode.