value) || $this->value === '0') {
$this->value = trim($this->value);
$source = $this->getSource();
if(is_array($source)) {
$mappedValue = isset($source[$this->value]) ? $source[$this->value] : null;
} elseif($source instanceof SQLMap) {
$mappedValue = $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() {
$clone = clone $this;
return $clone;
}
function Type() {
return "lookup readonly";
}
/**
* Override parent behaviour by not merging arrays.
*/
function getSource() {
return $this->source;
}
}
?>