diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-12 10:44:57 -0500 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-11-13 10:34:15 -0500 |
commit | 50c345b8d7288f5014dbce77d94226fce4a974d5 (patch) | |
tree | 69a3e21f814d2cbd029181100a25cc6be936e641 /pts-core/objects | |
parent | 1565a6a86684615ff7bcd2f34950ed0465904e1d (diff) | |
download | phoronix-test-suite-upstream-50c345b8d7288f5014dbce77d94226fce4a974d5.tar.gz phoronix-test-suite-upstream-50c345b8d7288f5014dbce77d94226fce4a974d5.tar.xz phoronix-test-suite-upstream-50c345b8d7288f5014dbce77d94226fce4a974d5.zip |
pts-core: Add pts_installed_test_details class
Diffstat (limited to 'pts-core/objects')
-rw-r--r-- | pts-core/objects/pts-generic-classes.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pts-core/objects/pts-generic-classes.php b/pts-core/objects/pts-generic-classes.php index 98b5342..d6c3d68 100644 --- a/pts-core/objects/pts-generic-classes.php +++ b/pts-core/objects/pts-generic-classes.php @@ -189,6 +189,29 @@ class pts_test_profile_details return $str; } } +class pts_installed_test_details +{ + var $identifier; + var $name; + + public function __construct($identifier) + { + $xml_parser = new pts_test_tandem_XmlReader(pts_location_test($identifier)); + $this->identifier = $identifier; + $this->name = $xml_parser->getXMLValue(P_TEST_TITLE); + } + public function __toString() + { + $str = ""; + + if(!empty($this->name)) + { + $str = sprintf("%-18ls - %-30ls\n", $this->identifier, $this->name); + } + + return $str; + } +} class pts_test_result { var $result; |