Location: PHPKode > projects > PHP Point Of Sale > application/libraries/ofc-library/ofc_sugar.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 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);
	}
}
Return current item: PHP Point Of Sale