Magic getter: Gets the property in default language.
For compatibility mode to work this must return a reference.
public function &__get($name) {
if ($this->compatibilityMode) {
if (!isset($this->values[$name])) {
$this->values[$name] = NULL;
}
return $this->values[$name];
}
if (isset($this->fields[$name][LANGUAGE_DEFAULT])) {
return $this->fields[$name][LANGUAGE_DEFAULT];
}
if ($this
->getPropertyDefinition($name)) {
$return = $this
->get($name);
return $return;
}
if (!isset($this->{$name})) {
$this->{$name} = NULL;
}
return $this->{$name};
}