ILIAS
release_4-3 Revision
|
This class represents a text area property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setValue ($a_value) | |
Set Value. | |
getValue () | |
Get Value. | |
setCols ($a_cols) | |
Set Cols. | |
getCols () | |
Get Cols. | |
setRows ($a_rows) | |
Set Rows. | |
getRows () | |
Get Rows. | |
setUseRte ($a_usert, $version= '') | |
Set Use Rich Text Editing. | |
getUseRte () | |
Get Use Rich Text Editing. | |
addPlugin ($a_plugin) | |
Add RTE plugin. | |
removePlugin ($a_plugin) | |
Remove RTE plugin. | |
addButton ($a_button) | |
Add RTE button. | |
removeButton ($a_button) | |
Remove RTE button. | |
setRTESupport ($obj_id, $obj_type, $module, $cfg_template=null, $hide_switch=false, $version=null) | |
Set RTE support for a special module. | |
removeRTESupport () | |
Remove RTE support for a special module. | |
setRteTags ($a_rtetags) | |
Set Valid RTE Tags. | |
getRteTags () | |
Get Valid RTE Tags. | |
setRteTagSet ($a_set_name) | |
Set Set of Valid RTE Tags. | |
getRteTagSet ($a_set_name) | |
Get Set of Valid RTE Tags. | |
getRteTagString () | |
RTE Tag string. | |
setUseTagsForRteOnly ($a_val) | |
Set use tags for RTE only (default is true) | |
getUseTagsForRteOnly () | |
Get use tags for RTE only (default is true) | |
setValueByArray ($a_values) | |
Set value by array. | |
checkInput () | |
Check input, strip slashes etc. | |
insert (&$a_tpl) | |
Insert property html. | |
usePurifier ($a_flag=null) | |
Setter/Getter for the html purifier usage. | |
setPurifier (ilHtmlPurifierInterface $Purifier) | |
Setter for the html purifier. | |
getPurifier () | |
Getter for the html purifier. | |
setRTERootBlockElement ($a_root_block_element) | |
Setter for the TinyMCE root block element. | |
getRTERootBlockElement () | |
Getter for the TinyMCE root block element. | |
disableButtons ($a_button) | |
Sets buttons which should be disabled in TinyMCE. | |
getDisabledButtons ($as_array=true) | |
Returns the disabled TinyMCE buttons. | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
getItemByPostVar ($a_post_var) | |
Get item by post var. | |
Public Member Functions inherited from ilFormPropertyGUI | |
& | executeCommand () |
Execute command. | |
getType () | |
Get Type. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setPostVar ($a_postvar) | |
Set Post Variable. | |
getPostVar () | |
Get Post Variable. | |
getFieldId () | |
Get Post Variable. | |
setInfo ($a_info) | |
Set Information Text. | |
getInfo () | |
Get Information Text. | |
setAlert ($a_alert) | |
Set Alert Text. | |
getAlert () | |
Get Alert Text. | |
setRequired ($a_required) | |
Set Required. | |
getRequired () | |
Get Required. | |
setDisabled ($a_disabled) | |
Set Disabled. | |
getDisabled () | |
Get Disabled. | |
setParentForm ($a_parentform) | |
Set Parent Form. | |
getParentForm () | |
Get Parent Form. | |
setParent ($a_val) | |
Set Parent GUI object. | |
getParent () | |
Get Parent GUI object. | |
hideSubForm () | |
Sub form hidden on init? | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) | |
getHiddenTitle () | |
Get hidden title. | |
serializeData () | |
serialize data | |
unserializeData ($a_data) | |
unserialize data | |
writeToSession () | |
Write to session. | |
clearFromSession () | |
Clear session value. | |
readFromSession () | |
Read from session. | |
getHiddenTag ($a_post_var, $a_value) | |
Get hidden tag (used for disabled properties) | |
setMulti ($a_multi) | |
Set Multi. | |
getMulti () | |
Get Multi. | |
setMultiValues (array $a_values) | |
Set multi values. | |
getMultiValues () | |
Get multi values. |
Protected Attributes | |
$value | |
$cols | |
$rows | |
$usert | |
$rtetags | |
$plugins | |
$removeplugins | |
$buttons | |
$rtesupport | |
$use_tags_for_rte_only = true | |
$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 | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" | |
$multi | |
$multi_values |
Additional Inherited Members | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. | |
getMultiIconsHTML ($a_sortable=false) | |
Get HTML for multiple value icons. |
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 |
Reimplemented from ilFormPropertyGUI.
Definition at line 122 of file class.ilTextAreaInputGUI.php.
References setRteTagSet(), and ilFormPropertyGUI\setType().
ilTextAreaInputGUI::addButton | ( | $a_button | ) |
Add RTE button.
string | $a_button | Button name |
Definition at line 244 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::addPlugin | ( | $a_plugin | ) |
Add RTE plugin.
string | $a_plugin | Plugin name |
Definition at line 224 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 375 of file class.ilTextAreaInputGUI.php.
References $_POST, $lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), ilFormPropertyGUI\getPostVar(), getPurifier(), ilFormPropertyGUI\getRequired(), getRteTagString(), getUseRte(), getUseTagsForRteOnly(), ilFormPropertyGUI\setAlert(), ilUtil\stripOnlySlashes(), ilUtil\stripSlashes(), 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 594 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::getCols | ( | ) |
Get Cols.
Definition at line 168 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 616 of file class.ilTextAreaInputGUI.php.
References $disabled_buttons.
Referenced by insert().
ilTextAreaInputGUI::getPurifier | ( | ) |
Getter for the html purifier.
Definition at line 557 of file class.ilTextAreaInputGUI.php.
References $Purifier.
Referenced by checkInput().
ilTextAreaInputGUI::getRows | ( | ) |
Get Rows.
Definition at line 188 of file class.ilTextAreaInputGUI.php.
References $rows.
Referenced by insert().
ilTextAreaInputGUI::getRTERootBlockElement | ( | ) |
Getter for the TinyMCE root block element.
Definition at line 581 of file class.ilTextAreaInputGUI.php.
References $root_block_element.
Referenced by insert().
ilTextAreaInputGUI::getRteTags | ( | ) |
Get Valid RTE Tags.
Definition at line 294 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 316 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::getRteTagString | ( | ) |
RTE Tag string.
Definition at line 325 of file class.ilTextAreaInputGUI.php.
References $result, and getRteTags().
Referenced by checkInput().
ilTextAreaInputGUI::getUseRte | ( | ) |
Get Use Rich Text Editing.
Definition at line 214 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 350 of file class.ilTextAreaInputGUI.php.
References $use_tags_for_rte_only.
Referenced by checkInput().
ilTextAreaInputGUI::getValue | ( | ) |
Get Value.
Definition at line 148 of file class.ilTextAreaInputGUI.php.
References $value.
Referenced by insert().
ilTextAreaInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 411 of file class.ilTextAreaInputGUI.php.
References ilRTE\_getRTEClassname(), getCols(), ilFormPropertyGUI\getDisabled(), getDisabledButtons(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getHiddenTag(), ilFormPropertyGUI\getPostVar(), getRows(), getRTERootBlockElement(), getRteTags(), getUseRte(), getValue(), and ilUtil\prepareFormOutput().
ilTextAreaInputGUI::removeButton | ( | $a_button | ) |
Remove RTE button.
string | $a_button | Button name |
Definition at line 254 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::removePlugin | ( | $a_plugin | ) |
Remove RTE plugin.
string | $a_plugin | Plugin name |
Definition at line 234 of file class.ilTextAreaInputGUI.php.
Referenced by ilCertificateGUI\certificateEditor().
ilTextAreaInputGUI::removeRTESupport | ( | ) |
Remove RTE support for a special module.
Definition at line 274 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setCols | ( | $a_cols | ) |
Set Cols.
int | $a_cols | Cols |
Definition at line 158 of file class.ilTextAreaInputGUI.php.
Referenced by ilObjStyleSheetGUI\createObject(), ilRatingCategoryGUI\initCategoryForm(), ilObjectPluginGUI\initCreateForm(), ilObjGlossaryGUI\initCreateForm(), ilObjectGUI\initCreateForm(), ilObjSAHSLearningModuleGUI\initCreationForm(), ilObjectPluginGUI\initEditForm(), ilObjectGUI\initEditForm(), ilObjTaggingSettingsGUI\initForbiddenTagsForm(), ilBookingObjectGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilMailingListsGUI\initForm(), ilCASSettingsGUI\initFormSettings(), ilObjForumGUI\initForumCreateForm(), ilBasicSkillGUI\initLevelForm(), ilObjSurveyGUI\initPropertiesForm(), ilPermissionGUI\initRoleForm(), ilObjFileBasedLMGUI\initSettingsForm(), ilObjWikiGUI\initSettingsForm(), ilObjTestGUI\propertiesObject(), ilSCORM2004ScoGUI\showProperties(), and ilObjPaymentSettingsGUI\StatutoryRegulationsObject().
ilTextAreaInputGUI::setPurifier | ( | ilHtmlPurifierInterface | $Purifier | ) |
Setter for the html purifier.
ilHtmlPurifierInterface | Instance of ilHtmlPurifierInterface |
Definition at line 545 of file class.ilTextAreaInputGUI.php.
References $Purifier.
ilTextAreaInputGUI::setRows | ( | $a_rows | ) |
Set Rows.
int | $a_rows | Rows |
Definition at line 178 of file class.ilTextAreaInputGUI.php.
Referenced by ilObjPaymentSettingsGUI\editPriceObject(), ilObjExerciseGUI\initAssignmentForm(), ilObjMediaObjectGUI\initForm(), ilObjUserGUI\initForm(), ilObjLinkResourceGUI\initFormLink(), ilConsultationHoursGUI\initFormSequence(), ilAuthLoginPageEditorGUI\initLoginForm(), ilMailOptionsGUI\initMailOptionsForm(), ilPersonalSettingsGUI\initMailOptionsForm(), 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 569 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 266 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setRteTags | ( | $a_rtetags | ) |
Set Valid RTE Tags.
array | $a_rtetags | Valid RTE Tags |
Definition at line 284 of file class.ilTextAreaInputGUI.php.
Referenced by setRteTagSet().
ilTextAreaInputGUI::setRteTagSet | ( | $a_set_name | ) |
Set Set of Valid RTE Tags.
Definition at line 305 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 199 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setUseTagsForRteOnly | ( | $a_val | ) |
Set use tags for RTE only (default is true)
boolean | $a_val | use tags for RTE only |
Definition at line 340 of file class.ilTextAreaInputGUI.php.
ilTextAreaInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Definition at line 138 of file class.ilTextAreaInputGUI.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentCouponGUI\addCoupon(), ilObjSurveyGUI\addHeadingObject(), ilUserProfile\addStandardFieldsToForm(), ilObjPaymentSettingsGUI\BillingMailObject(), ilTestScoringGUI\buildManScoringParticipantForm(), ilObjFileAccessSettingsGUI\editDownloadingSettings(), SurveyTextQuestionGUI\editQuestion(), SurveyMetricQuestionGUI\editQuestion(), SurveySingleChoiceQuestionGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), SurveyMultipleChoiceQuestionGUI\editQuestion(), assErrorTextGUI\editQuestion(), SurveyMatrixQuestionGUI\editQuestion(), assErrorTextGUI\feedback(), assSingleChoiceGUI\feedback(), assImagemapQuestionGUI\feedback(), assTextQuestionGUI\feedback(), assMultipleChoiceGUI\feedback(), assClozeTestGUI\feedback(), assQuestionGUI\feedback(), assMatchingQuestionGUI\feedback(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\fillRegistrationType(), ilObjSurveyGUI\importExternalMailRecipientsObject(), ilObjStyleSettingsGUI\initAddPageLayoutForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilRemoteObjectBaseGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilAdvancedMDSettingsGUI\initFieldForm(), ilCalendarAppointmentGUI\initForm(), ilPageLayoutGUI\initForm(), ilAdvancedMDSettingsGUI\initForm(), ilObjSessionGUI\initForm(), ilObjGroupGUI\initForm(), ilObjLinkResourceGUI\initFormSettings(), ilCourseObjectivesGUI\initFormTitle(), ilObjCourseGUI\initInfoEditor(), ilObjUserFolderGUI\initNewAccountMailForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjMediaCastGUI\initSettingsForm(), ilChatroomSmileyTask\initSmiliesEditForm(), ilObjPaymentSettingsGUI\InvoiceNumberObject(), ilObjTestGUI\propertiesObject(), setValueByArray(), ilMailFormGUI\showForm(), and assQuestionGUI\suggestedsolution().
ilTextAreaInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 360 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 527 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 55 of file class.ilTextAreaInputGUI.php.
Referenced by getDisabledButtons().
|
protected |
Definition at line 41 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 75 of file class.ilTextAreaInputGUI.php.
Referenced by getPurifier(), and setPurifier().
|
protected |
Definition at line 42 of file class.ilTextAreaInputGUI.php.
|
protected |
Definition at line 84 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 86 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 65 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().