/opt/alt/php55/usr/share/pear/ezc/ConsoleTools/options
Edit: /opt/alt/php55/usr/share/pear/ezc/ConsoleTools/options/dialog.php (2094B)
mixed)
*/
protected $properties = array(
"format" => "default",
"validator" => null
);
/**
* Property write access.
*
* @param string $propertyName Name of the property.
* @param mixed $propertyValue The value for the property.
*
* @throws ezcBasePropertyPermissionException
* If the property you try to access is read-only.
* @throws ezcBasePropertyNotFoundException
* If the the desired property is not found.
* @ignore
*/
public function __set( $propertyName, $propertyValue )
{
switch ( $propertyName )
{
case "format":
if ( is_string( $propertyValue ) === false || strlen( $propertyValue ) < 1 )
{
throw new ezcBaseValueException( $propertyName, $propertyValue, "string, length > 0" );
}
break;
case "validator":
if ( ( $propertyValue instanceof ezcConsoleDialogValidator ) === false )
{
throw new ezcBaseValueException( $propertyName, $propertyValue, "ezcConsoleDialogValidator" );
}
break;
default:
throw new ezcBasePropertyNotFoundException( $propertyName );
}
$this->properties[$propertyName] = $propertyValue;
}
}
?>