ofc_bar.php 451 B

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