StandardizedTest.php

  1. 6.x classes/StandardizedTest.php
  2. 4.x custom/classes/StandardizedTest.php
  3. 5.x custom/classes/StandardizedTest.php

File

classes/StandardizedTest.php
View source
  1. <?php
  2. class StandardizedTest extends stdClass
  3. {
  4. public $categories, $description, $test_id, $date_taken, $bool_date_unavailable, $school_id;
  5. function __construct()
  6. {
  7. $this->categories = array();
  8. $this->bool_date_unavailable = FALSE;
  9. $this->school_id = 0;
  10. }
  11. function to_string()
  12. {
  13. $rtn = "";
  14. $rtn .= "test: $this->date_taken - $this->test_id - $this->description : \n";
  15. if (count($this->categories))
  16. {
  17. foreach($this->categories as $position => $value)
  18. {
  19. $rtn .= " $position - {$value["category_id"]} - {$value["description"]} - {$value["score"]} \n";
  20. }
  21. }
  22. return $rtn;
  23. }
  24. }

Classes

Namesort descending Description
StandardizedTest