diff options
Diffstat (limited to 'lib/classes/DataFieldTextareaEntry.php')
| -rw-r--r-- | lib/classes/DataFieldTextareaEntry.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/classes/DataFieldTextareaEntry.php b/lib/classes/DataFieldTextareaEntry.php new file mode 100644 index 0000000..a48be98 --- /dev/null +++ b/lib/classes/DataFieldTextareaEntry.php @@ -0,0 +1,29 @@ +<?php +# Lifter002: DONE +# Lifter007: TEST + +/** + * @author Jan-Hendrik Willms <tleilax+studip@gmail.com> + * @author Marcus Lunzenauer <mlunzena@uos.de> + * @author Martin Gieseking <mgieseki@uos.de> + * @license GPL2 or any later version + */ +class DataFieldTextareaEntry extends DataFieldEntry +{ + protected $template = 'textarea.php'; + + /** + * Returns the display/rendered value of this datafield + * + * @param bool $entities Should html entities be encoded (defaults to true) + * @return String containg the rendered value + */ + public function getDisplayValue($entities = true) + { + if ($entities) { + return htmlReady($this->getValue(), true, true); + } + + return $this->getValue(); + } +} |
