From 89998c08bffeb724ec2109b479f96f26a1745ad2 Mon Sep 17 00:00:00 2001 From: Michael Larabel Date: Sat, 29 Nov 2008 12:09:16 -0500 Subject: pts-core: Add and implement RawString to XML results specification for storing raw result values from all trial runs --- pts-core/objects/pts_test_result.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pts-core/objects/pts_test_result.php') 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); -- cgit