mixed) $options */ public function __construct( array $options = array() ) { $this->template = dirname( __FILE__ ) . '/data/template.fodt'; $this->styler = new ezcDocumentOdtPcssStyler(); $this->lengthMeasure = 'px'; 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 'template': if ( !is_string( $value ) || !is_file( $value ) || !is_readable( $value ) ) { throw new ezcBaseValueException( $name, $value, 'file, readable' ); } break; case 'styler': if ( !is_object( $value ) || !( $value instanceof ezcDocumentOdtStyler ) ) { throw new ezcBaseValueException( $name, $value, 'ezcDocumentOdtStyler' ); } break; case 'lengthMeasure': if ( !is_string( $value ) || !in_array( $value, self::$validLengthMeasures ) ) { throw new ezcBaseValueException( $name, $value, implode( ', ', self::$validLengthMeasures ) ); } break; default: parent::__set( $name, $value ); break; } $this->properties[$name] = $value; } } ?>