$tmp = $outline_colour; } } class bar_filled extends bar_base { function bar_filled( $colour=null, $outline_colour=null ) { $this->type = "bar_filled"; parent::bar_base(); if( isset( $colour ) ) $this->set_colour( $colour ); if( isset( $outline_colour ) ) $this->set_outline_colour( $outline_colour ); } function set_outline_colour( $outline_colour ) { $tmp = 'outline-colour'; $this->$tmp = $outline_colour; } }