Represents one of the places (drop zones).
More...
|
array | $coords |
| Location of the item.
|
|
int | $group = 1 |
| Group of the item.
|
|
int | $no |
| Number of the item.
|
|
object | $shape |
| Shape of the item.
|
|
Represents one of the places (drop zones).
- Copyright
- 2009 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
qtype_ddmarker_drop_zone::__construct |
( |
|
$no, |
|
|
|
$shape, |
|
|
|
$coords |
|
) |
| |
Setup a drop zone object.
- Parameters
-
int | $no | Which number drop zone this is |
int | $shape | Shape of the drop zone |
array | $coords | Coordinates of the zone |
◆ correct_coords()
qtype_ddmarker_drop_zone::correct_coords |
( |
| ) |
|
Gets the center point of this zone.
- Return values
-
◆ drop_hit()
qtype_ddmarker_drop_zone::drop_hit |
( |
|
$xy | ) |
|
Indicates if the it coordinates are in this drop zone.
- Parameters
-
array | $xy | Array of X and Y location |
- Return values
-
◆ summarise()
qtype_ddmarker_drop_zone::summarise |
( |
| ) |
|
Creates summary text of for the drop zone.
- Return values
-
The documentation for this class was generated from the following file: