BotstoryElement
extends Element
in package
Element responsible for displaying the bot story features that someone can use to create for their own chat bot.
Tags
Table of Contents
- $view : object
- The View on which this Element is drawn
- __construct() : mixed
- constructor stores a reference to the view this element will reside on
- formatHref() : string
- Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)
- render() : mixed
- Used to draw the Bot Story action forms which are used to configure new Group Chat Bots
- renderBotStoryForm() : mixed
- Used to draw the form to add or update a bot story
Properties
$view
The View on which this Element is drawn
public
object
$view
Methods
__construct()
constructor stores a reference to the view this element will reside on
public
__construct([object $view = null ]) : mixed
Parameters
- $view : object = null
-
object this element will reside on
Return values
mixed —formatHref()
Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)
public
formatHref(string $url) : string
Parameters
- $url : string
-
to clean up
Return values
string —cleaned url
render()
Used to draw the Bot Story action forms which are used to configure new Group Chat Bots
public
render(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
-
associative array of info from the ChatBotComponent needed to draw the form
Return values
mixed —renderBotStoryForm()
Used to draw the form to add or update a bot story
public
renderBotStoryForm( $data) : mixed
Parameters
- $data :
-
containing field values that have already been been filled in and the anti-CSRF attack token