52     public function __construct($value = null, $type = self::T_TEXT)
 
   59                 $this->rawValue = $value;
 
   62                 $this->value = $value;
 
   78                 return ($this->rawValue !== null);
 
   81                 return ($this->value !== null);
 
  102                 if (is_string($this->rawValue)) {
 
  103                     $this->value = 
getStr()->htmlspecialchars($this->rawValue);
 
  106                     $this->value = $this->rawValue;
 
  108                 if ($this->rawValue == $this->value) {
 
  109                     unset($this->rawValue);
 
  127         return (
string) $this->value;
 
  143         $this->
setValue(str_replace(
"\r", 
'', nl2br(
getStr()->htmlspecialchars($this->rawValue))), self::T_RAW);
 
  152     protected function _initValue($value = null, $type = self::T_TEXT)
 
  156                 $this->rawValue = $value;
 
  159                 $this->value = $value;
 
  170     public function setValue($value = null, $type = self::T_TEXT)
 
  172         unset($this->rawValue);
 
  184         if (null === $this->rawValue) {
 
  188         return $this->rawValue;