mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-10 03:24:12 +01:00
70 lines
1.0 KiB
PHP
70 lines
1.0 KiB
PHP
<?php
|
|
|
|
class line_base
|
|
{
|
|
function line_base()
|
|
{
|
|
$this->type = "line_dot";
|
|
$this->text = "Page views";
|
|
$tmp = 'font-size';
|
|
$this->$tmp = 10;
|
|
|
|
$this->values = array(9,6,7,9,5,7,6,9,7);
|
|
}
|
|
|
|
function set_values( $v )
|
|
{
|
|
$this->values = $v;
|
|
}
|
|
|
|
function set_width( $width )
|
|
{
|
|
$this->width = $width;
|
|
}
|
|
|
|
function set_colour( $colour )
|
|
{
|
|
$this->colour = $colour;
|
|
}
|
|
|
|
function set_dot_size( $size )
|
|
{
|
|
$tmp = 'dot-size';
|
|
$this->$tmp = $size;
|
|
}
|
|
|
|
function set_halo_size( $size )
|
|
{
|
|
$tmp = 'halo-size';
|
|
$this->$tmp = $size;
|
|
}
|
|
|
|
function set_key( $text, $font_size )
|
|
{
|
|
$this->text = $text;
|
|
$tmp = 'font-size';
|
|
$this->$tmp = $font_size;
|
|
}
|
|
|
|
function set_tooltip( $tip )
|
|
{
|
|
$this->tip = $tip;
|
|
}
|
|
|
|
function set_on_click( $text )
|
|
{
|
|
$tmp = 'on-click';
|
|
$this->$tmp = $text;
|
|
}
|
|
|
|
function loop()
|
|
{
|
|
$this->loop = true;
|
|
}
|
|
|
|
function line_style( $s )
|
|
{
|
|
$tmp = "line-style";
|
|
$this->$tmp = $s;
|
|
}
|
|
} |