ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class represents a text area property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
setValue ($a_value) | |
Set Value. More... | |
getValue () | |
Get Value. More... | |
setCols ($a_cols) | |
Set Cols. More... | |
getCols () | |
Get Cols. More... | |
setRows ($a_rows) | |
Set Rows. More... | |
getRows () | |
Get Rows. More... | |
setMaxNumOfChars ($a_number) | |
Set Maximum number of characters allowed. More... | |
getMaxNumOfChars () | |
Get Maximum number of characters allowed. More... | |
setMinNumOfChars ($a_number) | |
Set Minimum number of characters allowed. More... | |
getMinNumOfChars () | |
Get Minimum number of characters allowed. More... | |
setUseRte ($a_usert, $version='') | |
Set Use Rich Text Editing. More... | |
getUseRte () | |
Get Use Rich Text Editing. More... | |
addPlugin ($a_plugin) | |
Add RTE plugin. More... | |
removePlugin ($a_plugin) | |
Remove RTE plugin. More... | |
addButton ($a_button) | |
Add RTE button. More... | |
removeButton ($a_button) | |
Remove RTE button. More... | |
setRTESupport ($obj_id, $obj_type, $module, $cfg_template=null, $hide_switch=false, $version=null) | |
Set RTE support for a special module. More... | |
removeRTESupport () | |
Remove RTE support for a special module. More... | |
setRteTags ($a_rtetags) | |
Set Valid RTE Tags. More... | |
getRteTags () | |
Get Valid RTE Tags. More... | |
setRteTagSet ($a_set_name) | |
Set Set of Valid RTE Tags. More... | |
getRteTagSet ($a_set_name) | |
Get Set of Valid RTE Tags. More... | |
getRteTagString () | |
RTE Tag string. More... | |
setUseTagsForRteOnly ($a_val) | |
Set use tags for RTE only (default is true) More... | |
getUseTagsForRteOnly () | |
Get use tags for RTE only (default is true) More... | |
setValueByArray ($a_values) | |
Set value by array. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
insert ($a_tpl) | |
Insert property html. More... | |
usePurifier ($a_flag=null) | |
Setter/Getter for the html purifier usage. More... | |
setPurifier (ilHtmlPurifierInterface $Purifier) | |
Setter for the html purifier. More... | |
getPurifier () | |
Getter for the html purifier. More... | |
setRTERootBlockElement ($a_root_block_element) | |
Setter for the TinyMCE root block element. More... | |
getRTERootBlockElement () | |
Getter for the TinyMCE root block element. More... | |
disableButtons ($a_button) | |
Sets buttons which should be disabled in TinyMCE. More... | |
getDisabledButtons ($as_array=true) | |
Returns the disabled TinyMCE buttons. More... | |
getInitialRteWidth () | |
setInitialRteWidth ($initial_rte_width) | |
isCharLimited () | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. More... | |
getSubItems () | |
Get Subitems. More... | |
getSubInputItemsRecursive () | |
returns a flat array of possibly existing subitems recursively More... | |
checkSubItemsInput () | |
Check SubItems. More... | |
getSubForm () | |
Get sub form html. More... | |
getItemByPostVar ($a_post_var) | |
Get item by post var. More... | |
Public Member Functions inherited from ilFormPropertyGUI | |
__construct ($a_title="", $a_postvar="") | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
getType () | |
Get Type. More... | |
setTitle ($a_title) | |
Set Title. More... | |
getTitle () | |
Get Title. More... | |
setPostVar ($a_postvar) | |
Set Post Variable. More... | |
getPostVar () | |
Get Post Variable. More... | |
getFieldId () | |
Get Post Variable. More... | |
setInfo ($a_info) | |
Set Information Text. More... | |
getInfo () | |
Get Information Text. More... | |
setAlert ($a_alert) | |
Set Alert Text. More... | |
getAlert () | |
Get Alert Text. More... | |
setRequired ($a_required) | |
Set Required. More... | |
getRequired () | |
Get Required. More... | |
setDisabled ($a_disabled) | |
Set Disabled. More... | |
getDisabled () | |
Get Disabled. More... | |
checkInput () | |
Check input, strip slashes etc. More... | |
setParentForm ($a_parentform) | |
Set Parent Form. More... | |
getParentForm () | |
Get Parent Form. More... | |
setParent ($a_val) | |
Set Parent GUI object. More... | |
getParent () | |
Get Parent GUI object. More... | |
getSubForm () | |
Get sub form html. More... | |
hideSubForm () | |
Sub form hidden on init? More... | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) More... | |
getHiddenTitle () | |
Get hidden title. More... | |
getItemByPostVar ($a_post_var) | |
Get item by post var. More... | |
serializeData () | |
serialize data More... | |
unserializeData ($a_data) | |
unserialize data More... | |
writeToSession () | |
Write to session. More... | |
clearFromSession () | |
Clear session value. More... | |
readFromSession () | |
Read from session. More... | |
getHiddenTag ($a_post_var, $a_value) | |
Get hidden tag (used for disabled properties) More... | |
setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
Set Multi. More... | |
getMulti () | |
Get Multi. More... | |
setMultiValues (array $a_values) | |
Set multi values. More... | |
getMultiValues () | |
Get multi values. More... | |
getContentOutsideFormTag () | |
Get content that has to reside outside of the parent form tag, e.g. More... | |
stripSlashesAddSpaceFallback ($a_str) | |
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More... | |
getTableFilterLabelFor () | |
Get label "for" attribute value for filter. More... | |
getFormLabelFor () | |
Get label "for" attribute value for form. More... | |
Protected Attributes | |
$value | |
$cols | |
$rows | |
$usert | |
$rtetags | |
$plugins | |
$removeplugins | |
$buttons | |
$rtesupport | |
$use_tags_for_rte_only = true | |
$max_num_chars | |
$min_num_chars | |
$initial_rte_width = 795 | |
$disabled_buttons = array() | |
$usePurifier = false | |
$Purifier = null | |
$root_block_element = null | |
$rte_tag_set | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
$sub_items = array() | |
Protected Attributes inherited from ilFormPropertyGUI | |
$ctrl | |
$lng | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" | |
$multi = false | |
$multi_sortable = false | |
$multi_addremove = true | |
$multi_values | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFormPropertyGUI | |
static | removeProhibitedCharacters ($a_text) |
Remove prohibited characters see #19159. More... | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. More... | |
getMultiIconsHTML () | |
Get HTML for multiple value icons. More... | |
This class represents a text area property in a property form.
Definition at line 34 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Definition at line 130 of file class.ilTextAreaInputGUI.php.
References $DIC, setRteTagSet(), and ilFormPropertyGUI\setType().
ilTextAreaInputGUI::addButton | ( | $a_button | ) |
Add RTE button.
string | $a_button | Button name |
Definition at line 292 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::addPlugin | ( | $a_plugin | ) |
Add RTE plugin.
string | $a_plugin | Plugin name |
Definition at line 272 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Definition at line 421 of file class.ilTextAreaInputGUI.php.
References $_POST, ilFormPropertyGUI\$lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMaxNumOfChars(), getMinNumOfChars(), ilFormPropertyGUI\getPostVar(), getPurifier(), ilFormPropertyGUI\getRequired(), getRteTagString(), getUseRte(), getUseTagsForRteOnly(), isCharLimited(), ilFormPropertyGUI\setAlert(), ilUtil\stripOnlySlashes(), ilUtil\stripSlashes(), ilFormPropertyGUI\stripSlashesAddSpaceFallback(), and usePurifier().
ilTextAreaInputGUI::disableButtons | ( | $a_button | ) |
Sets buttons which should be disabled in TinyMCE.
mixed | $a_button | Either a button string or an array of button strings |
Definition at line 673 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::getCols | ( | ) |
Get Cols.
Definition at line 181 of file class.ilTextAreaInputGUI.php.
References $cols.
Referenced by insert().
ilTextAreaInputGUI::getDisabledButtons | ( | $as_array = true | ) |
Returns the disabled TinyMCE buttons.
boolean | $as_array | Should the disabled buttons be returned as a string or as an array |
Definition at line 692 of file class.ilTextAreaInputGUI.php.
References $disabled_buttons.
Referenced by insert().
ilTextAreaInputGUI::getInitialRteWidth | ( | ) |
Definition at line 704 of file class.ilTextAreaInputGUI.php.
References $initial_rte_width.
Referenced by insert().
ilTextAreaInputGUI::getMaxNumOfChars | ( | ) |
Get Maximum number of characters allowed.
Definition at line 219 of file class.ilTextAreaInputGUI.php.
References $max_num_chars.
Referenced by checkInput(), insert(), and isCharLimited().
ilTextAreaInputGUI::getMinNumOfChars | ( | ) |
Get Minimum number of characters allowed.
Definition at line 237 of file class.ilTextAreaInputGUI.php.
References $min_num_chars.
Referenced by checkInput(), insert(), and isCharLimited().
ilTextAreaInputGUI::getPurifier | ( | ) |
Getter for the html purifier.
Definition at line 636 of file class.ilTextAreaInputGUI.php.
References $Purifier.
Referenced by checkInput().
ilTextAreaInputGUI::getRows | ( | ) |
Get Rows.
Definition at line 201 of file class.ilTextAreaInputGUI.php.
References $rows.
Referenced by insert().
ilTextAreaInputGUI::getRTERootBlockElement | ( | ) |
Getter for the TinyMCE root block element.
Definition at line 660 of file class.ilTextAreaInputGUI.php.
References $root_block_element.
Referenced by insert().
ilTextAreaInputGUI::getRteTags | ( | ) |
Get Valid RTE Tags.
Definition at line 342 of file class.ilTextAreaInputGUI.php.
References $rtetags.
Referenced by getRteTagString(), and insert().
ilTextAreaInputGUI::getRteTagSet | ( | $a_set_name | ) |
Get Set of Valid RTE Tags.
Definition at line 364 of file class.ilTextAreaInputGUI.php.
Referenced by insert().
ilTextAreaInputGUI::getRteTagString | ( | ) |
RTE Tag string.
Definition at line 373 of file class.ilTextAreaInputGUI.php.
References $result, $tag, and getRteTags().
Referenced by checkInput().
ilTextAreaInputGUI::getUseRte | ( | ) |
Get Use Rich Text Editing.
Definition at line 262 of file class.ilTextAreaInputGUI.php.
References $usert.
Referenced by checkInput(), and insert().
ilTextAreaInputGUI::getUseTagsForRteOnly | ( | ) |
Get use tags for RTE only (default is true)
Definition at line 397 of file class.ilTextAreaInputGUI.php.
References $use_tags_for_rte_only.
Referenced by checkInput().
ilTextAreaInputGUI::getValue | ( | ) |
Get Value.
Definition at line 159 of file class.ilTextAreaInputGUI.php.
References $value.
Referenced by insert().
ilTextAreaInputGUI::insert | ( | $a_tpl | ) |
Insert property html.
Definition at line 477 of file class.ilTextAreaInputGUI.php.
References ilFormPropertyGUI\$lng, ilRTE\_getRTEClassname(), getCols(), ilFormPropertyGUI\getDisabled(), getDisabledButtons(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getHiddenTag(), getInitialRteWidth(), getMaxNumOfChars(), getMinNumOfChars(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getRows(), getRTERootBlockElement(), getRteTags(), getRteTagSet(), getUseRte(), getValue(), isCharLimited(), and ilUtil\prepareFormOutput().
ilTextAreaInputGUI::isCharLimited | ( | ) |
Definition at line 717 of file class.ilTextAreaInputGUI.php.
References getMaxNumOfChars(), and getMinNumOfChars().
Referenced by checkInput(), and insert().
ilTextAreaInputGUI::removeButton | ( | $a_button | ) |
Remove RTE button.
string | $a_button | Button name |
Definition at line 302 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::removePlugin | ( | $a_plugin | ) |
Remove RTE plugin.
string | $a_plugin | Plugin name |
Definition at line 282 of file class.ilTextAreaInputGUI.php.
Referenced by ilObjLearningSequenceSettingsGUI\initRTEInput().
ilTextAreaInputGUI::removeRTESupport | ( | ) |
Remove RTE support for a special module.
Definition at line 322 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setCols | ( | $a_cols | ) |
Set Cols.
int | $a_cols | Cols |
Definition at line 170 of file class.ilTextAreaInputGUI.php.
Referenced by ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilObjQuestionPoolSettingsGeneralGUI\buildForm(), ilObjStyleSheetGUI\createObject(), ilRatingCategoryGUI\initCategoryForm(), ilObjectPluginGUI\initCreateForm(), ilObjCloudGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjectGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreationForm(), ilObjFolderGUI\initEditForm(), ilObjectPluginGUI\initEditForm(), ilObjectGUI\initEditForm(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilLOTestAssignmentForm\initForm(), ilBookingObjectGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilMailingListsGUI\initForm(), ilCASSettingsGUI\initFormSettings(), ilBasicSkillGUI\initLevelForm(), ilSkillProfileGUI\initProfileForm(), ilObjSurveyGUI\initPropertiesForm(), ilMDEditorGUI\initQuickEditForm(), ilPermissionGUI\initRoleForm(), ilIndividualAssessmentSettingsGUI\initSettingsForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), and ilSCORM2004ScoGUI\showProperties().
ilTextAreaInputGUI::setInitialRteWidth | ( | $initial_rte_width | ) |
int | $initial_rte_width |
Definition at line 712 of file class.ilTextAreaInputGUI.php.
References $initial_rte_width.
ilTextAreaInputGUI::setMaxNumOfChars | ( | $a_number | ) |
Set Maximum number of characters allowed.
int | $a_number | Characters |
Definition at line 211 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setMinNumOfChars | ( | $a_number | ) |
Set Minimum number of characters allowed.
int | $a_number | Characters |
Definition at line 229 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setPurifier | ( | ilHtmlPurifierInterface | $Purifier | ) |
Setter for the html purifier.
ilHtmlPurifierInterface | Instance of ilHtmlPurifierInterface |
Definition at line 624 of file class.ilTextAreaInputGUI.php.
References $Purifier.
ilTextAreaInputGUI::setRows | ( | $a_rows | ) |
Set Rows.
int | $a_rows | Rows |
Definition at line 191 of file class.ilTextAreaInputGUI.php.
Referenced by ilObjMailGUI\getExternalSettingsForm(), ilObjUserGUI\getValues(), ilMailOptionsFormGUI\init(), ilExAssignmentEditorGUI\initAssignmentForm(), ilObjItemGroupGUI\initEditCustomForm(), ilContainerGUI\initEditForm(), ilUserProfileInfoSettingsGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilConsultationHoursGUI\initFormSequence(), ilSurveyEditorGUI\initHeadingForm(), ilAuthLoginPageEditorGUI\initLoginForm(), ilObjFileGUI\initPropertiesForm(), and ilSCORM2004ScoGUI\showProperties().
ilTextAreaInputGUI::setRTERootBlockElement | ( | $a_root_block_element | ) |
Setter for the TinyMCE root block element.
string | $a_root_block_element | root block element |
Definition at line 648 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setRTESupport | ( | $obj_id, | |
$obj_type, | |||
$module, | |||
$cfg_template = null , |
|||
$hide_switch = false , |
|||
$version = null |
|||
) |
Set RTE support for a special module.
Definition at line 314 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setRteTags | ( | $a_rtetags | ) |
Set Valid RTE Tags.
array | $a_rtetags | Valid RTE Tags |
Definition at line 332 of file class.ilTextAreaInputGUI.php.
Referenced by ilObjLearningSequenceSettingsGUI\initRTEInput(), and setRteTagSet().
ilTextAreaInputGUI::setRteTagSet | ( | $a_set_name | ) |
Set Set of Valid RTE Tags.
Definition at line 353 of file class.ilTextAreaInputGUI.php.
References setRteTags().
Referenced by __construct().
ilTextAreaInputGUI::setUseRte | ( | $a_usert, | |
$version = '' |
|||
) |
Set Use Rich Text Editing.
int | $a_usert | Use Rich Text Editing |
string | $version |
Definition at line 248 of file class.ilTextAreaInputGUI.php.
References $version.
Referenced by ilDclTableEditGUI\initForm(), and ilObjLearningSequenceSettingsGUI\initRTEInput().
ilTextAreaInputGUI::setUseTagsForRteOnly | ( | $a_val | ) |
Set use tags for RTE only (default is true)
boolean | $a_val | use tags for RTE only |
Definition at line 387 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Definition at line 149 of file class.ilTextAreaInputGUI.php.
Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilUserProfile\addStandardFieldsToForm(), ilAdvancedMDFieldDefinition\addToFieldDefinitionForm(), ilOrgUnitTypeFormGUI\addTranslationInputs(), ilStudyProgrammeTypeFormGUI\addTranslationInputs(), ilCourseRegistrationGUI\fillRegistrationType(), ilGroupRegistrationGUI\fillRegistrationType(), ilSurveyParticipantsGUI\importExternalMailRecipientsFromTextFormObject(), ilPageLayoutAdministrationGUI\initAddPageLayoutForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilObjFileAccessSettingsGUI\initDownloadingSettingsForm(), ilObjSurveyQuestionPoolGUI\initEditForm(), ilRemoteObjectBaseGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilCalendarAppointmentGUI\initForm(), ilPageLayoutGUI\initForm(), ilAdvancedMDSettingsGUI\initForm(), ilObjSessionGUI\initForm(), ilObjRoleTemplateGUI\initFormRoleTemplate(), ilObjLinkResourceGUI\initFormSettings(), ilCourseObjectivesGUI\initFormTitle(), ilObjCourseGUI\initInfoEditor(), ilObjUserFolderGUI\initNewAccountMailForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjMediaCastGUI\initSettingsForm(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), assErrorTextGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), ilObjSCORMLearningModuleGUI\properties(), ilObjOrgUnitSettingsFormGUI\saveObject(), ilTestScoringGUI\saveReturnManScoringParticipantScreen(), setValueByArray(), ilMailFormGUI\showForm(), and assQuestionGUI\suggestedsolution().
ilTextAreaInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 407 of file class.ilTextAreaInputGUI.php.
References ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), and setValue().
ilTextAreaInputGUI::usePurifier | ( | $a_flag = null | ) |
Setter/Getter for the html purifier usage.
boolean | $a_flag | Use purifier or not |
Definition at line 607 of file class.ilTextAreaInputGUI.php.
References $usePurifier.
Referenced by checkInput().
|
protected |
Definition at line 43 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 37 of file class.ilTextAreaInputGUI.php.
Referenced by getCols().
|
protected |
Definition at line 62 of file class.ilTextAreaInputGUI.php.
Referenced by getDisabledButtons().
|
protected |
Definition at line 52 of file class.ilTextAreaInputGUI.php.
Referenced by getInitialRteWidth(), and setInitialRteWidth().
|
protected |
Definition at line 46 of file class.ilTextAreaInputGUI.php.
Referenced by getMaxNumOfChars().
|
protected |
Definition at line 47 of file class.ilTextAreaInputGUI.php.
Referenced by getMinNumOfChars().
|
protected |
Definition at line 41 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 82 of file class.ilTextAreaInputGUI.php.
Referenced by getPurifier(), and setPurifier().
|
protected |
Definition at line 42 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 91 of file class.ilTextAreaInputGUI.php.
Referenced by getRTERootBlockElement().
|
protected |
Definition at line 38 of file class.ilTextAreaInputGUI.php.
Referenced by getRows().
|
protected |
Definition at line 93 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 44 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 40 of file class.ilTextAreaInputGUI.php.
Referenced by getRteTags().
|
protected |
Definition at line 45 of file class.ilTextAreaInputGUI.php.
Referenced by getUseTagsForRteOnly().
|
protected |
Definition at line 72 of file class.ilTextAreaInputGUI.php.
Referenced by usePurifier().
|
protected |
Definition at line 39 of file class.ilTextAreaInputGUI.php.
Referenced by getUseRte().
|
protected |
Definition at line 36 of file class.ilTextAreaInputGUI.php.
Referenced by getValue().