$parent
$parent : object
Reference to the controller this component lives on
Provides the AdminController activity that allows users to create Chat Bot Stories. A Chat Bot story is a collection of patterns (expression, trigger state, remote call, result state, responses) that govern how a chat bot will behave under various circumstances
initializeWikiEditor(\seekquarry\yioop\controllers\components\array& $data, $id = "")
Called to include the Javascript Wiki Editor (wiki.js) on a page and to send any localizations needed from PHP to Javascript-land It is used by both Crawl and SocialComponent
\seekquarry\yioop\controllers\components\array& | $data | an asscoiative array of data to be used by the view and layout that the wiki editor will be drawn on This method tacks on to INCLUDE_SCRIPTS to make the layout load wiki.js. |
$id | if "" then all textareas on page will get editor buttons, if -1 then sets up translations, but does not add any button, otherwise, add buttons to textarea $id will. (Can call this method multiple times, if want more than one but not all) |
botStory() : array
Handles addpattern, editpattern, deletepattern requests for the Chat Bot story of the current user.
$data field variables (FORM_TYPE, CURRENT_PATTERN, PATTERNS) used by BotstoryElement to render the view in which people can see the current pattern to add or edit as well as an array of patterns that have current been added for this bot