ofc_bar_filled.php 761 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. include_once 'ofc_bar_base.php';
  3. class bar_filled_value extends bar_value
  4. {
  5. function bar_filled_value( $top, $bottom=null )
  6. {
  7. parent::bar_value( $top, $bottom );
  8. }
  9. function set_outline_colour( $outline_colour )
  10. {
  11. $tmp = 'outline-colour';
  12. $this->$tmp = $outline_colour;
  13. }
  14. }
  15. class bar_filled extends bar_base
  16. {
  17. function bar_filled( $colour=null, $outline_colour=null )
  18. {
  19. $this->type = "bar_filled";
  20. parent::bar_base();
  21. if( isset( $colour ) )
  22. $this->set_colour( $colour );
  23. if( isset( $outline_colour ) )
  24. $this->set_outline_colour( $outline_colour );
  25. }
  26. function set_outline_colour( $outline_colour )
  27. {
  28. $tmp = 'outline-colour';
  29. $this->$tmp = $outline_colour;
  30. }
  31. }