|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Rich Text Editor base class This class provides access methods to a Rich Text Editor (RTE) integrated in ILIAS. More...
Inheritance diagram for ilRTE:
Collaboration diagram for ilRTE:Public Member Functions | |
| __construct () | |
| addPlugin (string $a_plugin_name) | |
| addButton (string $a_button_name) | |
| removePlugin (string $a_plugin_name) | |
| removeAllPlugins () | |
| removeButton (string $a_button_name) | |
| addRTESupport (int $obj_id, string $obj_type, string $a_module='', bool $allowFormElements=false, ?string $cfg_template=null) | |
| addUserTextEditor (string $editor_selector) | |
| addCustomRTESupport (int $obj_id, string $obj_type, array $tags) | |
| Adds custom support for an RTE in an ILIAS form. More... | |
| setRTERootBlockElement (?string $a_root_block_element) | |
| getRTERootBlockElement () | |
| disableButtons ($a_button) | |
| Sets buttons which should be disabled in the RTE. More... | |
| getDisabledButtons (bool $as_list=true) | |
| Returns the disabled RTE buttons. More... | |
| getInitialWidth () | |
| setInitialWidth (?int $initialWidth) | |
Static Public Member Functions | |
| static | _getRTEClassname () |
| static | _cleanupMediaObjectUsage (string $a_text, string $a_usage_type, int $a_usage_id) |
| Synchronises appearances of media objects in $a_text with media object usage table. More... | |
| static | _replaceMediaObjectImageSrc (string $a_text, int $a_direction=0, string $nic='') |
| Replaces image source from mob image urls with the mob id or replaces mob id with the correct image source. More... | |
| static | _getMediaObjects (string $a_text, int $a_direction=0) |
| Returns all media objects found in the passed string. More... | |
Protected Attributes | |
| ilGlobalTemplateInterface | $tpl |
| ilCtrlInterface | $ctrl |
| ilObjUser | $user |
| ilLanguage | $lng |
| AgentDetermination | $browser |
| ilIniFile | $client_init |
| int | $initialWidth = null |
| string | $root_block_element = null |
| array | $plugins = [] |
| array | $buttons = [] |
| array | $disabled_buttons = [] |
Rich Text Editor base class This class provides access methods to a Rich Text Editor (RTE) integrated in ILIAS.
Definition at line 29 of file class.ilRTE.php.
| ilRTE::__construct | ( | ) |
Definition at line 57 of file class.ilRTE.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
static |
Synchronises appearances of media objects in $a_text with media object usage table.
| string | $a_text | text, including media object tags |
| string | $a_usage_type | type of context of usage, e.g. cat:html |
| int | $a_usage_id | if of context of usage, e.g. category id |
Definition at line 141 of file class.ilRTE.php.
References ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjMediaObject\_saveUsage(), and ILIAS\Repository\int().
Referenced by assQuestion\cleanupMediaObjectUsage(), and SurveyQuestion\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns all media objects found in the passed string.
| string | $a_text | text, including media object tags |
| integer | $a_direction | 0 to find image src, 1 to find mob id |
Definition at line 216 of file class.ilRTE.php.
References ilObjMediaObject\_exists(), and ILIAS\Repository\int().
Referenced by ilObjForumGUI\createThread(), ilObjForumGUI\deleteMobsOfDraft(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilForumUtil\moveMediaObjects(), ilForumUtil\saveMediaObjects(), ilObjForumGUI\savePostObject(), and ilExSubmissionTextGUI\updateAssignmentTextObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 125 of file class.ilRTE.php.
References ilObjAdvancedEditing\_getRichTextEditor().
Referenced by ilTextAreaInputGUI\insert(), and assTextQuestionGUI\magicAfterTestOutput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image source.
| string | $a_text | text, including media object tags |
| integer | $a_direction | 0 to replace image src => mob id, 1 to replace mob id => image src |
| string | $nic |
Definition at line 174 of file class.ilRTE.php.
References ilObject\_lookupType(), and IL_INST_ID.
Referenced by SurveyQuestion\addMaterialTag(), ilObjSurvey\addMaterialTag(), assQuestionExport\addQTIMaterial(), ilExerciseManagementGUI\collectFeedbackDataFromPeer(), ilObjForumGUI\createThread(), ilObjForumGUI\doHistoryCheck(), ilExSubmissionTextGUI\editAssignmentTextObject(), ilObjForumGUI\editThreadDraftObject(), ilForumAutoSaveAsyncDraftAction\executeAndGetResponseObject(), ilAssSelfAssessmentQuestionFormatter\format(), assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFormulaQuestionImport\fromXML(), assImagemapQuestionImport\fromXML(), assMultipleChoiceImport\fromXML(), assNumericImport\fromXML(), assOrderingHorizontalImport\fromXML(), assSingleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assKprimChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assTextQuestionImport\fromXML(), assLongMenuImport\fromXML(), assMatchingQuestionImport\fromXML(), assClozeTestImport\fromXML(), ilAssMultiOptionQuestionFeedback\getAllSpecificAnswerFeedbackContents(), ilObjTest\getCompleteManualFeedback(), ilAssQuestionFeedback\getGenericFeedbackContent(), ilForum\getOneThread(), ilObjTest\getSingleManualFeedback(), ilAssMultiOptionQuestionFeedback\getSpecificAnswerFeedbackContent(), ilExPeerReviewGUI\getSubmissionContent(), ilObjTest\insertManualFeedback(), assKprimChoice\loadAnswerData(), SurveyTextQuestion\loadFromDb(), SurveyMultipleChoiceQuestion\loadFromDb(), assNumeric\loadFromDb(), SurveySingleChoiceQuestion\loadFromDb(), assTextSubset\loadFromDb(), assSingleChoice\loadFromDb(), SurveyMetricQuestion\loadFromDb(), assOrderingHorizontal\loadFromDb(), assMultipleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assOrderingQuestion\loadFromDb(), assFileUpload\loadFromDb(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assKprimChoice\loadFromDb(), assImagemapQuestion\loadFromDb(), SurveyMatrixQuestion\loadFromDb(), assMatchingQuestion\loadFromDb(), assLongMenu\loadFromDb(), assFormulaQuestion\loadFromDb(), ilObjSurvey\loadFromDb(), ilExAssignmentListTextTableGUI\parse(), assQuestionImport\processNonAbstractedImageReferences(), ilObjForumGUI\publishDraftObject(), ilObjForumGUI\renderDraftContent(), ilObjForumGUI\renderPostContent(), ilForumExportGUI\renderPostHtml(), ilObjForumGUI\renderPostingForm(), ilObjTest\retrieveMobsFromLegacyImports(), assClozeTest\saveAdditionalQuestionDataToDb(), assSingleChoice\saveAdditionalQuestionDataToDb(), assMultipleChoice\saveAnswerSpecificDataToDb(), ilObjForumGUI\saveAsDraftObject(), ilAssQuestionFeedback\saveGenericFeedbackContent(), ilObjForumGUI\savePostObject(), assQuestion\saveQuestionDataToDb(), ilAssMultiOptionQuestionFeedback\saveSpecificAnswerFeedbackContent(), ilObjForumGUI\saveThreadAsDraftObject(), SurveyQuestion\saveToDb(), ilObjSurvey\saveToDb(), ilExSubmissionTextGUI\showAssignmentTextObject(), ilForumXMLWriter\start(), assErrorText\toJSON(), assErrorText\toLog(), ilObjTest\toXML(), ilExSubmissionTextGUI\updateAssignmentTextObject(), ilObjForumGUI\updateDraftObject(), and ilObjForumGUI\updateThreadDraftObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRTE::addButton | ( | string | $a_button_name | ) |
Definition at line 74 of file class.ilRTE.php.
| ilRTE::addCustomRTESupport | ( | int | $obj_id, |
| string | $obj_type, | ||
| array | $tags | ||
| ) |
Adds custom support for an RTE in an ILIAS form.
| int | $obj_id | |
| string | $obj_type | |
| string[] | $tags |
Definition at line 121 of file class.ilRTE.php.
| ilRTE::addPlugin | ( | string | $a_plugin_name | ) |
Definition at line 69 of file class.ilRTE.php.
| ilRTE::addRTESupport | ( | int | $obj_id, |
| string | $obj_type, | ||
| string | $a_module = '', |
||
| bool | $allowFormElements = false, |
||
| ?string | $cfg_template = null |
||
| ) |
Definition at line 102 of file class.ilRTE.php.
| ilRTE::addUserTextEditor | ( | string | $editor_selector | ) |
Definition at line 111 of file class.ilRTE.php.
| ilRTE::disableButtons | ( | $a_button | ) |
Sets buttons which should be disabled in the RTE.
| string[]|string | $a_button Either a button string or an array of button strings |
Definition at line 258 of file class.ilRTE.php.
Referenced by ilTinyMCE\addCustomRTESupport().
Here is the caller graph for this function:| ilRTE::getDisabledButtons | ( | bool | $as_list = true | ) |
Returns the disabled RTE buttons.
| bool | $as_list | Should the disabled buttons be returned as a string or as an array |
Definition at line 274 of file class.ilRTE.php.
References $disabled_buttons.
Referenced by ilTinyMCE\_buildAdvancedButtonsFromHTMLTags(), ilTinyMCE\_buildAdvancedTableButtonsFromHTMLTags(), and ilTinyMCE\_buildButtonsFromHTMLTags().
Here is the caller graph for this function:| ilRTE::getInitialWidth | ( | ) |
Definition at line 283 of file class.ilRTE.php.
References $initialWidth.
Referenced by ilTinyMCE\addRTESupport().
Here is the caller graph for this function:| ilRTE::getRTERootBlockElement | ( | ) |
Definition at line 248 of file class.ilRTE.php.
References $root_block_element.
Referenced by ilTinyMCE\addCustomRTESupport(), and ilTinyMCE\addRTESupport().
Here is the caller graph for this function:| ilRTE::removeAllPlugins | ( | ) |
Definition at line 87 of file class.ilRTE.php.
References XapiProxy\$plugin, and removePlugin().
Here is the call graph for this function:| ilRTE::removeButton | ( | string | $a_button_name | ) |
Definition at line 94 of file class.ilRTE.php.
| ilRTE::removePlugin | ( | string | $a_plugin_name | ) |
Definition at line 79 of file class.ilRTE.php.
Referenced by removeAllPlugins().
Here is the caller graph for this function:| ilRTE::setInitialWidth | ( | ?int | $initialWidth | ) |
| ilRTE::setRTERootBlockElement | ( | ?string | $a_root_block_element | ) |
Definition at line 242 of file class.ilRTE.php.
|
protected |
Definition at line 35 of file class.ilRTE.php.
|
protected |
Definition at line 49 of file class.ilRTE.php.
|
protected |
Definition at line 36 of file class.ilRTE.php.
|
protected |
Definition at line 32 of file class.ilRTE.php.
|
protected |
Definition at line 55 of file class.ilRTE.php.
Referenced by getDisabledButtons().
|
protected |
Definition at line 37 of file class.ilRTE.php.
Referenced by getInitialWidth(), and setInitialWidth().
|
protected |
Definition at line 34 of file class.ilRTE.php.
|
protected |
Definition at line 46 of file class.ilRTE.php.
Referenced by ilTinyMCE\getPlugins().
|
protected |
Definition at line 43 of file class.ilRTE.php.
Referenced by getRTERootBlockElement().
|
protected |
Definition at line 31 of file class.ilRTE.php.
Referenced by ilTinyMCE\addCustomRTESupport(), and ilTinyMCE\addRTESupport().
|
protected |
Definition at line 33 of file class.ilRTE.php.