mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 04:58:46 +02:00
Moved under "trunk" to be able to track releases under "tags"
SVN:trunk[55]
This commit is contained in:
50
pages/php-ofc-library/ofc_bar_stack.php
Normal file
50
pages/php-ofc-library/ofc_bar_stack.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
include_once 'ofc_bar_base.php';
|
||||
|
||||
class bar_stack extends bar_base
|
||||
{
|
||||
function bar_stack()
|
||||
{
|
||||
$this->type = "bar_stack";
|
||||
parent::bar_base();
|
||||
}
|
||||
|
||||
function append_stack( $v )
|
||||
{
|
||||
$this->append_value( $v );
|
||||
}
|
||||
|
||||
// an array of HEX colours strings
|
||||
// e.g. array( '#ff0000', '#00ff00' );
|
||||
function set_colours( $colours )
|
||||
{
|
||||
$this->colours = $colours;
|
||||
}
|
||||
|
||||
// an array of bar_stack_value
|
||||
function set_keys( $keys )
|
||||
{
|
||||
$this->keys = $keys;
|
||||
}
|
||||
}
|
||||
|
||||
class bar_stack_value
|
||||
{
|
||||
function bar_stack_value( $val, $colour )
|
||||
{
|
||||
$this->val = $val;
|
||||
$this->colour = $colour;
|
||||
}
|
||||
}
|
||||
|
||||
class bar_stack_key
|
||||
{
|
||||
function bar_stack_key( $colour, $text, $font_size )
|
||||
{
|
||||
$this->colour = $colour;
|
||||
$this->text = $text;
|
||||
$tmp = 'font-size';
|
||||
$this->$tmp = $font_size;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user