//set the value of the property with the specified name
// The value is pased by value, thus copied.
// If you need to pass the value by reference, use
// PntPropertyDescriptor::_setValue_for directly
function ($propertyName, $value) {
$prop =& $this->($propertyName);
if (!$prop) {
trigger_error(
$this->()." property not found: $propertyName"
, E_USER_WARNING);
return null;
}
$result = $prop->($value, $this);
if (is_ofType($result, 'PntError')) {
trigger_error(
$this->().
"::set($propertyName, ".get_class($value).') '.
$result->()
, E_USER_WARNING);
return false;
} else
return true;
}