function _StandardizedTest::to_string

4.x _StandardizedTest.php _StandardizedTest::to_string()
5.x _StandardizedTest.php _StandardizedTest::to_string()

File

classes/_StandardizedTest.php, line 16

Class

_StandardizedTest

Code

function to_string() 
 {
  $rtn = "";

  $rtn .= "test: $this->date_taken - $this->test_id - $this->description : \n";
  if (count($this->categories)) 
   {
    foreach ($this->categories as $position => $value) 
     {
      $rtn .= "  $position - {$value ["category_id"]} - {$value ["description"]} - {$value ["score"]} \n";
    }
  }

  return $rtn;
}