function StandardizedTest::to_string

7.x StandardizedTest.php StandardizedTest::to_string()
6.x StandardizedTest.php StandardizedTest::to_string()

File

classes/StandardizedTest.php, line 18

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;
}