properties['lineThickness'] = 2; $this->properties['fillLines'] = false; $this->properties['symbolSize'] = 8; parent::__construct( $options ); } /** * Set an option value * * @param string $propertyName * @param mixed $propertyValue * @throws ezcBasePropertyNotFoundException * If a property is not defined in this class * @return void */ public function __set( $propertyName, $propertyValue ) { switch ( $propertyName ) { case 'lineThickness': $this->properties['lineThickness'] = max( 1, (int) $propertyValue ); break; case 'fillLines': if ( $propertyValue === false ) { $this->properties['fillLines'] = false; } else { $this->properties['fillLines'] = min( 255, max( 0, (int) $propertyValue ) ); } break; case 'symbolSize': $this->properties['symbolSize'] = max( 1, (int) $propertyValue ); break; default: return parent::__set( $propertyName, $propertyValue ); } } } ?>