init
This commit is contained in:
43
include/ECM/open_flash_chart2/php-ofc-library/ofc_sugar.php
Normal file
43
include/ECM/open_flash_chart2/php-ofc-library/ofc_sugar.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Sugar: to make stars easier sometimes
|
||||
*/
|
||||
class s_star extends star
|
||||
{
|
||||
/**
|
||||
* I use this wrapper for default dot types,
|
||||
* it just makes the code easier to read.
|
||||
*/
|
||||
function s_star($colour, $size)
|
||||
{
|
||||
parent::star();
|
||||
$this->colour($colour)->size($size);
|
||||
}
|
||||
}
|
||||
|
||||
class s_box extends anchor
|
||||
{
|
||||
/**
|
||||
* I use this wrapper for default dot types,
|
||||
* it just makes the code easier to read.
|
||||
*/
|
||||
function s_box($colour, $size)
|
||||
{
|
||||
parent::anchor();
|
||||
$this->colour($colour)->size($size)->rotation(45)->sides(4);
|
||||
}
|
||||
}
|
||||
|
||||
class s_hollow_dot extends hollow_dot
|
||||
{
|
||||
/**
|
||||
* I use this wrapper for default dot types,
|
||||
* it just makes the code easier to read.
|
||||
*/
|
||||
function s_hollow_dot($colour, $size)
|
||||
{
|
||||
parent::hollow_dot();
|
||||
$this->colour($colour)->size($size);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user