_StandardizedTest.php

Classes

NameDescription
_StandardizedTest

File

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