ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Public Member Functions | |
__construct () | |
executeCommand () | |
getAsyncUrl () | |
Returns an endpoint where the clientside input can submit it's value to and receive the current preview. More... | |
getParameterName () | |
Returns the name of the $_POST variable the asynchronous input submits to. More... | |
renderAsync () | |
Sends a JSON-response with the rendered preview of the submitted input. More... | |
render (string $markdown_text) | |
Returns the rendered preview of the given string. More... | |
Protected Member Functions | |
sendResponse (string $html) | |
Protected Attributes | |
const | CMD_RENDER_ASYNC = 'renderAsync' |
Refinery | $refinery |
ilCtrlInterface | $ctrl |
HTTPServices | $http |
Definition at line 31 of file class.ilUIMarkdownPreviewGUI.php.
ilUIMarkdownPreviewGUI::__construct | ( | ) |
Definition at line 39 of file class.ilUIMarkdownPreviewGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
ilUIMarkdownPreviewGUI::executeCommand | ( | ) |
Definition at line 48 of file class.ilUIMarkdownPreviewGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and renderAsync().
ilUIMarkdownPreviewGUI::getAsyncUrl | ( | ) |
Returns an endpoint where the clientside input can submit it's value to and receive the current preview.
Note that ilCtrl does not return fully qualified URIs, therefore string is type-hinted.
Implements ILIAS\UI\Component\Input\Field\MarkdownRenderer.
Definition at line 65 of file class.ilUIMarkdownPreviewGUI.php.
References ILIAS\Repository\ctrl(), and null.
ilUIMarkdownPreviewGUI::getParameterName | ( | ) |
Returns the name of the $_POST variable the asynchronous input submits to.
Implements ILIAS\UI\Component\Input\Field\MarkdownRenderer.
Definition at line 75 of file class.ilUIMarkdownPreviewGUI.php.
Referenced by renderAsync().
ilUIMarkdownPreviewGUI::render | ( | string | $markdown_text | ) |
Returns the rendered preview of the given string.
Implements ILIAS\UI\Component\Input\Field\MarkdownRenderer.
Definition at line 96 of file class.ilUIMarkdownPreviewGUI.php.
References ILIAS\Repository\refinery().
Referenced by renderAsync().
ilUIMarkdownPreviewGUI::renderAsync | ( | ) |
Sends a JSON-response with the rendered preview of the submitted input.
Implements ILIAS\UI\Component\Input\Field\MarkdownRenderer.
Definition at line 80 of file class.ilUIMarkdownPreviewGUI.php.
References getParameterName(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), render(), and sendResponse().
Referenced by executeCommand().
|
protected |
Definition at line 101 of file class.ilUIMarkdownPreviewGUI.php.
References ILIAS\FileDelivery\http().
Referenced by renderAsync().
|
protected |
Definition at line 36 of file class.ilUIMarkdownPreviewGUI.php.
|
protected |
Definition at line 37 of file class.ilUIMarkdownPreviewGUI.php.
|
protected |
Definition at line 35 of file class.ilUIMarkdownPreviewGUI.php.
|
protected |
Definition at line 33 of file class.ilUIMarkdownPreviewGUI.php.