Add php files
This commit is contained in:
39
include/ECM/open_flash_chart2/php-ofc-library/ofc_bar_filled.php
Executable file
39
include/ECM/open_flash_chart2/php-ofc-library/ofc_bar_filled.php
Executable file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
include_once '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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user