blob: 2439bd21592ab13b58e15f13cb14b764a7f7a3b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
include_once dirname(__FILE__) . '/ofc_bar_base.php';
class bar_filled_value extends bar_value
{
function bar_filled_value( $top, $bottom=null )
{
parent::bar_value( $top, $bottom );
}
function set_outline_colour( $outline_colour )
{
$tmp = 'outline-colour';
$this->$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;
}
}
|