Rev | Line | |
---|
[7849] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | include_once 'ofc_bar_base.php';
|
---|
| 4 |
|
---|
| 5 | class bar_filled_value extends bar_value
|
---|
| 6 | {
|
---|
| 7 | function bar_filled_value( $top, $bottom=null )
|
---|
| 8 | {
|
---|
| 9 | parent::bar_value( $top, $bottom );
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | function set_outline_colour( $outline_colour )
|
---|
| 13 | {
|
---|
| 14 | $tmp = 'outline-colour';
|
---|
| 15 | $this->$tmp = $outline_colour;
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | class bar_filled extends bar_base
|
---|
| 20 | {
|
---|
| 21 | function bar_filled( $colour=null, $outline_colour=null )
|
---|
| 22 | {
|
---|
| 23 | $this->type = "bar_filled";
|
---|
| 24 | parent::bar_base();
|
---|
| 25 |
|
---|
| 26 | if( isset( $colour ) )
|
---|
| 27 | $this->set_colour( $colour );
|
---|
| 28 |
|
---|
| 29 | if( isset( $outline_colour ) )
|
---|
| 30 | $this->set_outline_colour( $outline_colour );
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | function set_outline_colour( $outline_colour )
|
---|
| 34 | {
|
---|
| 35 | $tmp = 'outline-colour';
|
---|
| 36 | $this->$tmp = $outline_colour;
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.