drupal-civicrm/sites/all/modules/civicrm/packages/OpenFlashChart/php-ofc-library/ofc_sugar.php
2018-01-14 13:10:16 +00:00

43 lines
847 B
PHP

<?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 __construct($colour, $size)
{
parent::__construct();
$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 __construct($colour, $size)
{
parent::__construct();
$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 __construct($colour, $size)
{
parent::__construct();
$this->colour($colour)->size($size);
}
}