source:
code/Website/php-ofc-library/ofc_shape.php@
7849
| Last change on this file since 7849 was 7849, checked in by , 16 years ago | |
|---|---|
| File size: 316 bytes | |
| Rev | Line | |
|---|---|---|
| [7849] | 1 | <?php |
| 2 | ||
| 3 | class shape_point | |
| 4 | { | |
| 5 | function shape_point( $x, $y ) | |
| 6 | { | |
| 7 | $this->x = $x; | |
| 8 | $this->y = $y; | |
| 9 | } | |
| 10 | } | |
| 11 | ||
| 12 | class shape | |
| 13 | { | |
| 14 | function shape( $colour ) | |
| 15 | { | |
| 16 | $this->type = "shape"; | |
| 17 | $this->colour = $colour; | |
| 18 | $this->values = array(); | |
| 19 | } | |
| 20 | ||
| 21 | function append_value( $p ) | |
| 22 | { | |
| 23 | $this->values[] = $p; | |
| 24 | } | |
| 25 | } |
Note:
See TracBrowser
for help on using the repository browser.
