blob: a48be98be3659e015f7073722ec0129de856d4fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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();
}
}
|