mixed) $options */ public function __construct( array $options = array() ) { $this->basePath = ''; $this->addLinks = true; $this->displayRootNode = false; $this->xmlId = null; $this->highlightNodeIds = array(); $this->subtreeHighlightNodeIds = array(); $this->selectedNodeLink = false; 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 'basePath': if ( !is_string( $value ) ) { throw new ezcBaseValueException( $name, $value, 'string' ); } $this->properties[$name] = $value; break; case 'addLinks': case 'displayRootNode': case 'selectedNodeLink': if ( !is_bool( $value ) ) { throw new ezcBaseValueException( $name, $value, 'bool' ); } $this->properties[$name] = $value; break; case 'highlightNodeIds': case 'subtreeHighlightNodeIds': if ( !is_array( $value ) ) { throw new ezcBaseValueException( $name, $value, 'array(string)' ); } $this->properties[$name] = $value; break; case 'xmlId': if ( !is_null( $value ) && !is_string( $value ) ) { throw new ezcBaseValueException( $name, $value, 'null or string' ); } $this->properties[$name] = $value; break; default: throw new ezcBasePropertyNotFoundException( $name ); } } } ?>