\seekquarry\yioop\views\elementsBotstoryElement

Element responsible for displaying the bot story features that someone can use to create for their own chat bot.

Elements are classes are used to render portions of a web page which might be common to several views like a view there is supposed to minimal php code in an element

Summary

Methods
Properties
Constants
__construct()
render()
renderBotStoryForm()
$view
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : object

The View on which this Element is drawn

Type

object

Methods

__construct()

__construct(object  $view = null) 

constructor stores a reference to the view this element will reside on

Parameters

object $view

object this element will reside on

render()

render(array  $data) 

Used to draw the Bot Story action forms which are used to configure new Group Chat Bots

It should be implemented in subclasses.

Parameters

array $data

associative array of info from the ChatBotComponent needed to draw the form

renderBotStoryForm()

renderBotStoryForm(  $data) 

Used to draw the form to add or update a bot story

Parameters

$data

containing field values that have already been been filled in and the anti-CSRF attack token