_StandardizedTest.php

  1. 5.x classes/_StandardizedTest.php
  2. 4.x classes/_StandardizedTest.php

Classes

NameDescription
_StandardizedTest

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;
  5. function __construct()
  6. {
  7. $this->categories = array();
  8. $this->bool_date_unavailable = FALSE;
  9. }
  10. function to_string()
  11. {
  12. $rtn = "";
  13. $rtn .= "test: $this->date_taken - $this->test_id - $this->description : \n";
  14. if (count($this->categories))
  15. {
  16. foreach($this->categories as $position => $value)
  17. {
  18. $rtn .= " $position - {$value["category_id"]} - {$value["description"]} - {$value["score"]} \n";
  19. }
  20. }
  21. return $rtn;
  22. }
  23. }