ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTextAreaInputGUI Class Reference

This class represents a text area property in a property form. More...

+ Inheritance diagram for ilTextAreaInputGUI:
+ Collaboration diagram for ilTextAreaInputGUI:

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...
 
 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...
 
- 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...
 

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 = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 

Detailed Description

This class represents a text area property in a property form.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 34 of file class.ilTextAreaInputGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTextAreaInputGUI::__construct (   $a_title = "",
  $a_postvar = "" 
)

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

Definition at line 123 of file class.ilTextAreaInputGUI.php.

References setRteTagSet(), and ilFormPropertyGUI\setType().

124  {
125  parent::__construct($a_title, $a_postvar);
126  $this->setType("textarea");
127  $this->setRteTagSet("standard");
128  $this->plugins = array();
129  $this->removeplugins = array();
130  $this->buttons = array();
131  $this->rteSupport = array();
132  }
setRteTagSet($a_set_name)
Set Set of Valid RTE Tags.
setType($a_type)
Set Type.
+ Here is the call graph for this function:

Member Function Documentation

◆ addButton()

ilTextAreaInputGUI::addButton (   $a_button)

Add RTE button.

Parameters
string$a_buttonButton name

Definition at line 245 of file class.ilTextAreaInputGUI.php.

246  {
247  $this->buttons[$a_button] = $a_button;
248  }

◆ addPlugin()

ilTextAreaInputGUI::addPlugin (   $a_plugin)

Add RTE plugin.

Parameters
string$a_pluginPlugin name

Definition at line 225 of file class.ilTextAreaInputGUI.php.

226  {
227  $this->plugins[$a_plugin] = $a_plugin;
228  }

◆ checkInput()

ilTextAreaInputGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Definition at line 376 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().

377  {
378  global $lng;
379  include_once("./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php");
380 
381  if($this->usePurifier() && $this->getPurifier())
382  {
384  $_POST[$this->getPostVar()] = $this->getPurifier()->purify($_POST[$this->getPostVar()]);
385  }
386  else
387  {
388  $allowed = $this->getRteTagString();
389  if ($this->plugins["latex"] == "latex" && !is_int(strpos($allowed, "<span>")))
390  {
391  $allowed.= "<span>";
392  }
393  $_POST[$this->getPostVar()] = ($this->getUseRte() || !$this->getUseTagsForRteOnly())
394  ? ilUtil::stripSlashes($_POST[$this->getPostVar()], true, $allowed)
396  }
397 
398  if ($this->getRequired() && trim($_POST[$this->getPostVar()]) == "")
399  {
400  $this->setAlert($lng->txt("msg_input_is_required"));
401 
402  return false;
403  }
404  return $this->checkSubItemsInput();
405  }
$_POST['username']
Definition: cron.php:12
getPostVar()
Get Post Variable.
setAlert($a_alert)
Set Alert Text.
static stripOnlySlashes($a_str)
strip slashes if magic qoutes is enabled
getRteTagString()
RTE Tag string.
getUseRte()
Get Use Rich Text Editing.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
usePurifier($a_flag=null)
Setter/Getter for the html purifier usage.
global $lng
Definition: privfeed.php:40
getUseTagsForRteOnly()
Get use tags for RTE only (default is true)
getPurifier()
Getter for the html purifier.
+ Here is the call graph for this function:

◆ disableButtons()

ilTextAreaInputGUI::disableButtons (   $a_button)

Sets buttons which should be disabled in TinyMCE.

Parameters
mixed$a_buttonEither a button string or an array of button strings
Returns
ilTextAreaInputGUI Instance of ilTextAreaInputGUI public

Definition at line 609 of file class.ilTextAreaInputGUI.php.

610  {
611  if(is_array($a_button))
612  {
613  $this->disabled_buttons = array_unique(array_merge($this->disabled_buttons, $a_button));
614  }
615  else
616  {
617  $this->disabled_buttons = array_unique(array_merge($this->disabled_buttons, array($a_button)));
618  }
619 
620  return $this;
621  }

◆ getCols()

ilTextAreaInputGUI::getCols ( )

Get Cols.

Returns
int Cols

Definition at line 169 of file class.ilTextAreaInputGUI.php.

References $cols.

Referenced by insert().

170  {
171  return $this->cols;
172  }
+ Here is the caller graph for this function:

◆ getDisabledButtons()

ilTextAreaInputGUI::getDisabledButtons (   $as_array = true)

Returns the disabled TinyMCE buttons.

Parameters
boolean$as_arrayShould the disabled buttons be returned as a string or as an array
Returns
Array Array of disabled buttons public

Definition at line 631 of file class.ilTextAreaInputGUI.php.

References $disabled_buttons.

Referenced by insert().

632  {
633  if(!$as_array)
634  {
635  return implode(',', $this->disabled_buttons);
636  }
637  else
638  {
640  }
641  }
+ Here is the caller graph for this function:

◆ getPurifier()

ilTextAreaInputGUI::getPurifier ( )

Getter for the html purifier.

Returns
ilHtmlPurifierInterface Instance of ilHtmlPurifierInterface public

Definition at line 572 of file class.ilTextAreaInputGUI.php.

References $Purifier.

Referenced by checkInput().

573  {
574  return $this->Purifier;
575  }
+ Here is the caller graph for this function:

◆ getRows()

ilTextAreaInputGUI::getRows ( )

Get Rows.

Returns
int Rows

Definition at line 189 of file class.ilTextAreaInputGUI.php.

References $rows.

Referenced by insert().

190  {
191  return $this->rows;
192  }
+ Here is the caller graph for this function:

◆ getRTERootBlockElement()

ilTextAreaInputGUI::getRTERootBlockElement ( )

Getter for the TinyMCE root block element.

Returns
string Root block element of TinyMCE public

Definition at line 596 of file class.ilTextAreaInputGUI.php.

References $root_block_element.

Referenced by insert().

597  {
599  }
+ Here is the caller graph for this function:

◆ getRteTags()

ilTextAreaInputGUI::getRteTags ( )

Get Valid RTE Tags.

Returns
array Valid RTE Tags

Definition at line 295 of file class.ilTextAreaInputGUI.php.

References $rtetags.

Referenced by getRteTagString(), and insert().

296  {
297  return $this->rtetags;
298  }
+ Here is the caller graph for this function:

◆ getRteTagSet()

ilTextAreaInputGUI::getRteTagSet (   $a_set_name)

Get Set of Valid RTE Tags.

Returns
array Set name "standard", "extended", "extended_img", "extended_table", "extended_table_img", "full"

Definition at line 317 of file class.ilTextAreaInputGUI.php.

Referenced by insert().

318  {
319  return $this->rte_tag_set[$a_set_name];
320  }
+ Here is the caller graph for this function:

◆ getRteTagString()

ilTextAreaInputGUI::getRteTagString ( )

RTE Tag string.

Definition at line 326 of file class.ilTextAreaInputGUI.php.

References $result, and getRteTags().

Referenced by checkInput().

327  {
328  $result = "";
329  foreach ($this->getRteTags() as $tag)
330  {
331  $result .= "<$tag>";
332  }
333  return $result;
334  }
$result
getRteTags()
Get Valid RTE Tags.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getUseRte()

ilTextAreaInputGUI::getUseRte ( )

Get Use Rich Text Editing.

Returns
int Use Rich Text Editing

Definition at line 215 of file class.ilTextAreaInputGUI.php.

References $usert.

Referenced by checkInput(), and insert().

216  {
217  return $this->usert;
218  }
+ Here is the caller graph for this function:

◆ getUseTagsForRteOnly()

ilTextAreaInputGUI::getUseTagsForRteOnly ( )

Get use tags for RTE only (default is true)

Returns
boolean use tags for RTE only

Definition at line 351 of file class.ilTextAreaInputGUI.php.

References $use_tags_for_rte_only.

Referenced by checkInput().

+ Here is the caller graph for this function:

◆ getValue()

ilTextAreaInputGUI::getValue ( )

Get Value.

Returns
string Value

Definition at line 149 of file class.ilTextAreaInputGUI.php.

References $value.

Referenced by insert().

150  {
151  return $this->value;
152  }
+ Here is the caller graph for this function:

◆ insert()

ilTextAreaInputGUI::insert ( $a_tpl)

Insert property html.

Returns
int Size

Definition at line 412 of file class.ilTextAreaInputGUI.php.

References ilRTE\_getRTEClassname(), getCols(), ilFormPropertyGUI\getDisabled(), getDisabledButtons(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getHiddenTag(), ilFormPropertyGUI\getPostVar(), getRows(), getRTERootBlockElement(), getRteTags(), getRteTagSet(), getUseRte(), getValue(), and ilUtil\prepareFormOutput().

413  {
414  $ttpl = new ilTemplate("tpl.prop_textarea.html", true, true, "Services/Form");
415 
416  // disabled rte
417  if ($this->getUseRte() && $this->getDisabled())
418  {
419  $ttpl->setCurrentBlock("disabled_rte");
420  $ttpl->setVariable("DR_VAL", $this->getValue());
421  $ttpl->parseCurrentBlock();
422  }
423  else
424  {
425  if ($this->getUseRte())
426  {
427  $rtestring = ilRTE::_getRTEClassname();
428  include_once "./Services/RTE/classes/class.$rtestring.php";
429  $rte = new $rtestring($this->rteSupport['version']);
430 
431  // @todo: Check this.
432  $rte->addPlugin("emotions");
433  foreach ($this->plugins as $plugin)
434  {
435  if (strlen($plugin))
436  {
437  $rte->addPlugin($plugin);
438  }
439  }
440  foreach ($this->removeplugins as $plugin)
441  {
442  if (strlen($plugin))
443  {
444  $rte->removePlugin($plugin);
445  }
446  }
447 
448  foreach ($this->buttons as $button)
449  {
450  if (strlen($button))
451  {
452  $rte->addButton($button);
453  }
454  }
455 
456  $rte->disableButtons($this->getDisabledButtons());
457 
458  if($this->getRTERootBlockElement() !== null)
459  {
460  $rte->setRTERootBlockElement($this->getRTERootBlockElement());
461  }
462 
463  if (count($this->rteSupport) >= 3)
464  {
465  $rte->addRTESupport($this->rteSupport["obj_id"], $this->rteSupport["obj_type"], $this->rteSupport["module"], false, $this->rteSupport['cfg_template'], $this->rteSupport['hide_switch']);
466  }
467  else
468  {
469  // disable all plugins for mini-tagset
470  if(!array_diff($this->getRteTags(), $this->getRteTagSet("mini")))
471  {
472  $rte->removeAllPlugins();
473 
474  // #13603 - "paste from word" is essential
475  $rte->addPlugin("paste");
476 
477  // #11980 - p-tag is mandatory but we do not want the icons it comes with
478  $rte->disableButtons(array("anchor", "justifyleft", "justifycenter",
479  "justifyright", "justifyfull", "formatselect", "removeformat",
480  "cut", "copy", "paste", "pastetext")); // JF, 2013-12-09
481  }
482 
483  $rte->addCustomRTESupport(0, "", $this->getRteTags());
484  }
485 
486  $ttpl->touchBlock("prop_ta_w");
487  $ttpl->setCurrentBlock("prop_textarea");
488  $ttpl->setVariable("ROWS", $this->getRows());
489  }
490  else
491  {
492  $ttpl->touchBlock("no_rteditor");
493 
494  if ($this->getCols() > 5)
495  {
496  $ttpl->setCurrentBlock("prop_ta_c");
497  $ttpl->setVariable("COLS", $this->getCols());
498  $ttpl->parseCurrentBlock();
499  }
500  else
501  {
502  $ttpl->touchBlock("prop_ta_w");
503  }
504 
505  $ttpl->setCurrentBlock("prop_textarea");
506  $ttpl->setVariable("ROWS", $this->getRows());
507  }
508  if (!$this->getDisabled())
509  {
510  $ttpl->setVariable("POST_VAR",
511  $this->getPostVar());
512  }
513  $ttpl->setVariable("ID", $this->getFieldId());
514  if ($this->getDisabled())
515  {
516  $ttpl->setVariable('DISABLED','disabled="disabled" ');
517  }
518  $ttpl->setVariable("PROPERTY_VALUE", ilUtil::prepareFormOutput($this->getValue()));
519  $ttpl->parseCurrentBlock();
520  }
521 
522  if ($this->getDisabled())
523  {
524  $ttpl->setVariable("HIDDEN_INPUT",
525  $this->getHiddenTag($this->getPostVar(), $this->getValue()));
526  }
527 
528 
529  $a_tpl->setCurrentBlock("prop_generic");
530  $a_tpl->setVariable("PROP_GENERIC", $ttpl->get());
531  $a_tpl->parseCurrentBlock();
532 
533  }
static _getRTEClassname()
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
getHiddenTag($a_post_var, $a_value)
Get hidden tag (used for disabled properties)
getPostVar()
Get Post Variable.
getRteTags()
Get Valid RTE Tags.
getRTERootBlockElement()
Getter for the TinyMCE root block element.
getRteTagSet($a_set_name)
Get Set of Valid RTE Tags.
getFieldId()
Get Post Variable.
special template class to simplify handling of ITX/PEAR
getUseRte()
Get Use Rich Text Editing.
getDisabledButtons($as_array=true)
Returns the disabled TinyMCE buttons.
+ Here is the call graph for this function:

◆ removeButton()

ilTextAreaInputGUI::removeButton (   $a_button)

Remove RTE button.

Parameters
string$a_buttonButton name

Definition at line 255 of file class.ilTextAreaInputGUI.php.

256  {
257  unset($this->buttons[$a_button]);
258  }

◆ removePlugin()

ilTextAreaInputGUI::removePlugin (   $a_plugin)

Remove RTE plugin.

Parameters
string$a_pluginPlugin name

Definition at line 235 of file class.ilTextAreaInputGUI.php.

Referenced by ilCertificateGUI\certificateEditor().

236  {
237  $this->removeplugins[$a_plugin] = $a_plugin;
238  }
+ Here is the caller graph for this function:

◆ removeRTESupport()

ilTextAreaInputGUI::removeRTESupport ( )

Remove RTE support for a special module.

Definition at line 275 of file class.ilTextAreaInputGUI.php.

276  {
277  $this->rteSupport = array();
278  }

◆ setCols()

◆ setPurifier()

ilTextAreaInputGUI::setPurifier ( ilHtmlPurifierInterface  $Purifier)

Setter for the html purifier.

Parameters
ilHtmlPurifierInterfaceInstance of ilHtmlPurifierInterface
Returns
ilTextAreaInputGUI Instance of ilTextAreaInputGUI public

Definition at line 560 of file class.ilTextAreaInputGUI.php.

References $Purifier.

561  {
562  $this->Purifier = $Purifier;
563  return $this;
564  }

◆ setRows()

◆ setRTERootBlockElement()

ilTextAreaInputGUI::setRTERootBlockElement (   $a_root_block_element)

Setter for the TinyMCE root block element.

Parameters
string$a_root_block_elementroot block element
Returns
ilTextAreaInputGUI Instance of ilTextAreaInputGUI public

Definition at line 584 of file class.ilTextAreaInputGUI.php.

585  {
586  $this->root_block_element = $a_root_block_element;
587  return $this;
588  }

◆ setRTESupport()

ilTextAreaInputGUI::setRTESupport (   $obj_id,
  $obj_type,
  $module,
  $cfg_template = null,
  $hide_switch = false,
  $version = null 
)

Set RTE support for a special module.

Parameters
int$obj_idObject ID
string$obj_typeObject Type
string$moduleILIAS module

Definition at line 267 of file class.ilTextAreaInputGUI.php.

268  {
269  $this->rteSupport = array("obj_id" => $obj_id, "obj_type" => $obj_type, "module" => $module, 'cfg_template' => $cfg_template, 'hide_switch' => $hide_switch, 'version' => $version);
270  }

◆ setRteTags()

ilTextAreaInputGUI::setRteTags (   $a_rtetags)

Set Valid RTE Tags.

Parameters
array$a_rtetagsValid RTE Tags

Definition at line 285 of file class.ilTextAreaInputGUI.php.

Referenced by setRteTagSet().

286  {
287  $this->rtetags = $a_rtetags;
288  }
+ Here is the caller graph for this function:

◆ setRteTagSet()

ilTextAreaInputGUI::setRteTagSet (   $a_set_name)

Set Set of Valid RTE Tags.

Returns
array Set name "standard", "extended", "extended_img", "extended_table", "extended_table_img", "full"

Definition at line 306 of file class.ilTextAreaInputGUI.php.

References setRteTags().

Referenced by __construct().

307  {
308  $this->setRteTags($this->rte_tag_set[$a_set_name]);
309  }
setRteTags($a_rtetags)
Set Valid RTE Tags.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setUseRte()

ilTextAreaInputGUI::setUseRte (   $a_usert,
  $version = '' 
)

Set Use Rich Text Editing.

Parameters
int$a_usertUse Rich Text Editing
string$version

Definition at line 200 of file class.ilTextAreaInputGUI.php.

Referenced by ilDataCollectionTableEditGUI\initForm().

201  {
202  $this->usert = $a_usert;
203 
204  if(strlen($version))
205  {
206  $this->rteSupport['version'] = $version;
207  }
208  }
+ Here is the caller graph for this function:

◆ setUseTagsForRteOnly()

ilTextAreaInputGUI::setUseTagsForRteOnly (   $a_val)

Set use tags for RTE only (default is true)

Parameters
boolean$a_valuse tags for RTE only

Definition at line 341 of file class.ilTextAreaInputGUI.php.

342  {
343  $this->use_tags_for_rte_only = $a_val;
344  }

◆ setValue()

ilTextAreaInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Definition at line 139 of file class.ilTextAreaInputGUI.php.

Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilPaymentCouponGUI\addCoupon(), ilUserProfile\addStandardFieldsToForm(), ilObjPaymentSettingsGUI\BillingMailObject(), ilObjTestSettingsGeneralGUI\buildForm(), ilTestScoringGUI\buildManScoringParticipantForm(), ilObjFileAccessSettingsGUI\editDownloadingSettings(), ilGroupRegistrationGUI\fillRegistrationType(), ilCourseRegistrationGUI\fillRegistrationType(), ilSurveyParticipantsGUI\importExternalMailRecipientsFromTextFormObject(), ilObjStyleSettingsGUI\initAddPageLayoutForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilRemoteObjectBaseGUI\initEditForm(), ilObjCourseGUI\initEditForm(), ilDidacticTemplateSettingsGUI\initEditTemplate(), ilAdvancedMDSettingsGUI\initFieldForm(), ilPageLayoutGUI\initForm(), ilCalendarAppointmentGUI\initForm(), ilAdvancedMDSettingsGUI\initForm(), ilObjSessionGUI\initForm(), ilObjGroupGUI\initForm(), ilObjRoleTemplateGUI\initFormRoleTemplate(), ilObjLinkResourceGUI\initFormSettings(), ilCourseObjectivesGUI\initFormTitle(), ilObjCourseGUI\initInfoEditor(), ilObjUserFolderGUI\initNewAccountMailForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjTaxonomyGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), ilChatroomSmileyTask\initSmiliesEditForm(), ilObjPaymentSettingsGUI\InvoiceNumberObject(), assErrorTextGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), setValueByArray(), ilMailFormGUI\showForm(), and assQuestionGUI\suggestedsolution().

140  {
141  $this->value = $a_value;
142  }
+ Here is the caller graph for this function:

◆ setValueByArray()

ilTextAreaInputGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Definition at line 361 of file class.ilTextAreaInputGUI.php.

References ilFormPropertyGUI\getPostVar(), ilSubEnabledFormPropertyGUI\getSubItems(), and setValue().

362  {
363  $this->setValue($a_values[$this->getPostVar()]);
364 
365  foreach($this->getSubItems() as $item)
366  {
367  $item->setValueByArray($a_values);
368  }
369  }
getPostVar()
Get Post Variable.
setValue($a_value)
Set Value.
+ Here is the call graph for this function:

◆ usePurifier()

ilTextAreaInputGUI::usePurifier (   $a_flag = null)

Setter/Getter for the html purifier usage.

Parameters
boolean$a_flagUse purifier or not
Returns
mixed Returns instance of ilTextAreaInputGUI or boolean public

Definition at line 542 of file class.ilTextAreaInputGUI.php.

References $usePurifier.

Referenced by checkInput().

543  {
544  if(null === $a_flag)
545  {
546  return $this->usePurifier;
547  }
548 
549  $this->usePurifier = $a_flag;
550  return $this;
551  }
usePurifier($a_flag=null)
Setter/Getter for the html purifier usage.
+ Here is the caller graph for this function:

Field Documentation

◆ $buttons

ilTextAreaInputGUI::$buttons
protected

Definition at line 43 of file class.ilTextAreaInputGUI.php.

◆ $cols

ilTextAreaInputGUI::$cols
protected

Definition at line 37 of file class.ilTextAreaInputGUI.php.

Referenced by getCols().

◆ $disabled_buttons

ilTextAreaInputGUI::$disabled_buttons = array()
protected

Definition at line 55 of file class.ilTextAreaInputGUI.php.

Referenced by getDisabledButtons().

◆ $plugins

ilTextAreaInputGUI::$plugins
protected

Definition at line 41 of file class.ilTextAreaInputGUI.php.

◆ $Purifier

ilTextAreaInputGUI::$Purifier = null
protected

Definition at line 75 of file class.ilTextAreaInputGUI.php.

Referenced by getPurifier(), and setPurifier().

◆ $removeplugins

ilTextAreaInputGUI::$removeplugins
protected

Definition at line 42 of file class.ilTextAreaInputGUI.php.

◆ $root_block_element

ilTextAreaInputGUI::$root_block_element = null
protected

Definition at line 84 of file class.ilTextAreaInputGUI.php.

Referenced by getRTERootBlockElement().

◆ $rows

ilTextAreaInputGUI::$rows
protected

Definition at line 38 of file class.ilTextAreaInputGUI.php.

Referenced by getRows().

◆ $rte_tag_set

ilTextAreaInputGUI::$rte_tag_set
protected
Initial value:
= array(
"mini" => array("strong", "em", "u", "ol", "li", "ul", "blockquote", "a", "p", "span"),
"standard" => array ("strong", "em", "u", "ol", "li", "ul", "p", "div",
"i", "b", "code", "sup", "sub", "pre", "strike", "gap"),
"extended" => array (
"a","blockquote","br","cite","code","div","em","h1","h2","h3",
"h4","h5","h6","hr","li","ol","p",
"pre","span","strike","strong","sub","sup","u","ul",
"i", "b", "gap"),
"extended_img" => array (
"a","blockquote","br","cite","code","div","em","h1","h2","h3",
"h4","h5","h6","hr","img","li","ol","p",
"pre","span","strike","strong","sub","sup","u","ul",
"i", "b", "gap"),
"extended_table" => array (
"a","blockquote","br","cite","code","div","em","h1","h2","h3",
"h4","h5","h6","hr","li","ol","p",
"pre","span","strike","strong","sub","sup","table","td",
"tr","u","ul", "i", "b", "gap"),
"extended_table_img" => array (
"a","blockquote","br","cite","code","div","em","h1","h2","h3",
"h4","h5","h6","hr","img","li","ol","p",
"pre","span","strike","strong","sub","sup","table","td",
"tr","u","ul", "i", "b", "gap"),
"full" => array (
"a","blockquote","br","cite","code","div","em","h1","h2","h3",
"h4","h5","h6","hr","img","li","ol","p",
"pre","span","strike","strong","sub","sup","table","td",
"tr","u","ul","ruby","rbc","rtc","rb","rt","rp", "i", "b", "gap"))

Definition at line 86 of file class.ilTextAreaInputGUI.php.

◆ $rtesupport

ilTextAreaInputGUI::$rtesupport
protected

Definition at line 44 of file class.ilTextAreaInputGUI.php.

◆ $rtetags

ilTextAreaInputGUI::$rtetags
protected

Definition at line 40 of file class.ilTextAreaInputGUI.php.

Referenced by getRteTags().

◆ $use_tags_for_rte_only

ilTextAreaInputGUI::$use_tags_for_rte_only = true
protected

Definition at line 45 of file class.ilTextAreaInputGUI.php.

Referenced by getUseTagsForRteOnly().

◆ $usePurifier

ilTextAreaInputGUI::$usePurifier = false
protected

Definition at line 65 of file class.ilTextAreaInputGUI.php.

Referenced by usePurifier().

◆ $usert

ilTextAreaInputGUI::$usert
protected

Definition at line 39 of file class.ilTextAreaInputGUI.php.

Referenced by getUseRte().

◆ $value

ilTextAreaInputGUI::$value
protected

Definition at line 36 of file class.ilTextAreaInputGUI.php.

Referenced by getValue().


The documentation for this class was generated from the following file: