mixed) $options The initial options to set. * @return void * * @throws ezcBasePropertyNotFoundException * If a the value for the property options is not an instance of * @throws ezcBaseValueException * If a the value for a property is out of range. */ public function __construct( array $options = array() ) { $this->properties['formatString'] = '%8.1f%% %s %s'; parent::__construct( $options ); } /** * Option write access. * * @throws ezcBasePropertyNotFoundException * If a desired property could not be found. * @throws ezcBaseSettingValueException * If a desired property value is out of range. * * @param string $key Name of the property. * @param mixed $value The value for the property. * @ignore */ public function __set( $key, $value ) { switch ( $key ) { case "formatString": if ( strlen( $value ) < 1 ) { throw new ezcBaseSettingValueException( $key, $value, 'string, not empty' ); } break; default: throw new ezcBaseSettingNotFoundException( $key ); } $this->properties[$key] = $value; } } ?>