value)) {
$this->value = trim($this->value);
if(is_array($this->source)) {
$mappedValue = isset($this->source[$this->value]) ? $this->source[$this->value] : null;
} else {
$mappedValue = $this->source->getItem($this->value);
}
}
if(!isset($mappedValue)) {
$mappedValue = "(none)";
}
if($this->value) {
$val = $this->dontEscape
? ($this->reserveNL?Convert::raw2xml($this->value):$this->value)
: Convert::raw2xml($this->value);
} else {
$val = '(none)';
}
$valforInput = $this->value
? Convert::raw2att($val)
: "";
return "id() .
"\">$mappedValuename .
"\" value=\"" . $valforInput . "\" />";
}
function performReadonlyTransformation() {
return $this;
}
function Type() {
return "lookup readonly";
}
}
?>