Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Sugar: to make stars easier sometimes
|
---|
5 | */
|
---|
6 | class s_star extends star
|
---|
7 | {
|
---|
8 | /**
|
---|
9 | * I use this wrapper for default dot types,
|
---|
10 | * it just makes the code easier to read.
|
---|
11 | */
|
---|
12 | function s_star($colour, $size)
|
---|
13 | {
|
---|
14 | parent::star();
|
---|
15 | $this->colour($colour)->size($size);
|
---|
16 | }
|
---|
17 | }
|
---|
18 |
|
---|
19 | class s_box extends anchor
|
---|
20 | {
|
---|
21 | /**
|
---|
22 | * I use this wrapper for default dot types,
|
---|
23 | * it just makes the code easier to read.
|
---|
24 | */
|
---|
25 | function s_box($colour, $size)
|
---|
26 | {
|
---|
27 | parent::anchor();
|
---|
28 | $this->colour($colour)->size($size)->rotation(45)->sides(4);
|
---|
29 | }
|
---|
30 | }
|
---|
31 |
|
---|
32 | class s_hollow_dot extends hollow_dot
|
---|
33 | {
|
---|
34 | /**
|
---|
35 | * I use this wrapper for default dot types,
|
---|
36 | * it just makes the code easier to read.
|
---|
37 | */
|
---|
38 | function s_hollow_dot($colour, $size)
|
---|
39 | {
|
---|
40 | parent::hollow_dot();
|
---|
41 | $this->colour($colour)->size($size);
|
---|
42 | }
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.