Class assignment_sloodleobject_submission

Description

Defines a submission for a Sloodle assignment.

Located in /sloodle/mod/primdrop-1.0/sloodleobject/assignment.class.php (line 197)


	
			
Variable Summary
Method Summary
 float get_x ()
 float get_y ()
 float get_z ()
 void load_submission ( $submission)
 void set_pos (float $x, float $y, float $z)
 string text_summary ([bool $return = true])
Variables
bool $is_loaded = false (line 204)

Indicates whether or not a submission is loaded

  • access: public
int $num_prims = 0 (line 218)

Number of prims in the object which has been submitted

  • access: public
string $obj_name = '' (line 211)

Name of the object which has been submitted.

  • access: public
string $primdrop_name = '' (line 225)

Name of the PrimDrop object into which this object was submitted.

  • access: public
string $primdrop_pos = '' (line 246)

Position where this object was submitted (as a vector, "<x,y,z>")

  • access: public
string $primdrop_region = '' (line 239)

Name of the region where this object was submitted

  • access: public
string $primdrop_uuid = '' (line 232)

UUID of the PrimDrop object into which this object was submitted.

  • access: public
Methods
get_x (line 292)

Gets the X coordinate of the position

  • return: The X coordinate of the position
float get_x ()
get_y (line 303)

Gets the Y coordinate of the position

  • return: The Y coordinate of the position
float get_y ()
get_z (line 314)

Gets the Z coordinate of the position

  • return: The Z coordinate of the position
float get_z ()
load_submission (line 253)

Parses the data from a Submission database record object.

  • var: The submission database record object.
void load_submission ( $submission)
  • $submission
set_pos (line 283)

Sets the position as 3 components.

void set_pos (float $x, float $y, float $z)
  • float $x: x The X coordinate
  • float $y: y The Y coordinate
  • float $z: z The Z coordinate
text_summary (line 326)

Construct a text summary of this submission.

  • return: If parameter $return was TRUE, then it returns the string. Otherwise, an empty string.
string text_summary ([bool $return = true])
  • bool $return: If TRUE (default) then the text will be submitted instead of printed.

Documentation generated on Mon, 16 Jun 2008 15:56:06 +0100 by phpDocumentor 1.4.0