summaryrefslogtreecommitdiffstats
path: root/pts-core/objects/pts_test_result.php
diff options
context:
space:
mode:
Diffstat (limited to 'pts-core/objects/pts_test_result.php')
-rw-r--r--pts-core/objects/pts_test_result.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/pts-core/objects/pts_test_result.php b/pts-core/objects/pts_test_result.php
index 8d9619a..adcc3b9 100644
--- a/pts-core/objects/pts_test_result.php
+++ b/pts-core/objects/pts_test_result.php
@@ -81,6 +81,14 @@ class pts_test_result
{
return $this->result_proportion;
}
+ public function get_trial_results()
+ {
+ return $this->trial_results;
+ }
+ public function get_trial_results_string()
+ {
+ return implode(":", $this->get_trial_results());
+ }
public function get_attribute($name)
{
if(isset($this->attributes[$name]) && !empty($this->attributes[$name]))
@@ -90,6 +98,8 @@ class pts_test_result
}
public function add_trial_run_result($result)
{
+ $result = trim($result);
+
if(!empty($result))
{
array_push($this->trial_results, $result);