/opt/alt/php55/usr/share/pear/ezc/Archive/options
Edit: /opt/alt/php55/usr/share/pear/ezc/Archive/options/archive.php (2463B)
mixed) $options
*/
public function __construct( array $options = array() )
{
$this->readOnly = false;
$this->extractCallback = null;
parent::__construct( $options );
}
/**
* Sets the option $name to $value.
*
* @throws ezcBasePropertyNotFoundException
* if the property $name is not defined
* @throws ezcBaseValueException
* if $value is not correct for the property $name
* @param string $name
* @param mixed $value
* @ignore
*/
public function __set( $name, $value )
{
switch ( $name )
{
case 'readOnly':
if ( !is_bool( $value ) )
{
throw new ezcBaseValueException( $name, $value, 'bool' );
}
$this->properties[$name] = $value;
break;
case 'extractCallback':
if ( !is_null( $value ) && !( is_object( $value ) && in_array( 'ezcArchiveCallback', class_parents( $value ) ) ) )
{
throw new ezcBaseValueException( $name, $value, 'instance of ezcArchiveCallback' );
}
$this->properties[$name] = $value;
break;
default:
throw new ezcBasePropertyNotFoundException( $name );
}
}
}
?>