summaryrefslogtreecommitdiffstats
path: root/pts-core/objects
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-05-03 07:40:30 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-05-03 07:40:30 -0400
commit29cfa93137fbf9ebcdb519d97f9a5ed09bf9d0ab (patch)
tree251681a4f82bccadd9afb1c196d72b0d6f533ae7 /pts-core/objects
parentc74fac2c63dab8df1e880b798003a6b5eceb7b14 (diff)
downloadphoronix-test-suite-upstream-29cfa93137fbf9ebcdb519d97f9a5ed09bf9d0ab.tar.gz
phoronix-test-suite-upstream-29cfa93137fbf9ebcdb519d97f9a5ed09bf9d0ab.tar.xz
phoronix-test-suite-upstream-29cfa93137fbf9ebcdb519d97f9a5ed09bf9d0ab.zip
Export all XML paths to pts-functions_interfaces. Look at
pts-functions_interfaces to get a better understanding of the XML file layout. This patch needs lots of testing to ensure no typos got in.
Diffstat (limited to 'pts-core/objects')
-rw-r--r--pts-core/objects/pts_CustomGraph.php46
1 files changed, 23 insertions, 23 deletions
diff --git a/pts-core/objects/pts_CustomGraph.php b/pts-core/objects/pts_CustomGraph.php
index 82d7b63..30a9c77 100644
--- a/pts-core/objects/pts_CustomGraph.php
+++ b/pts-core/objects/pts_CustomGraph.php
@@ -10,33 +10,33 @@ class pts_CustomGraph extends pts_Graph
$file = "";
$read_config = new tandem_XmlReader($file);
- $this->graph_attr_width = pts_read_graph_config("PhoronixTestSuite/Graphs/Size/Width", null, $read_config); // Graph width
- $this->graph_attr_height = pts_read_graph_config("PhoronixTestSuite/Graphs/Size/Height", null, $read_config);; // Graph height
+ $this->graph_attr_width = pts_read_graph_config(P_GRAPH_SIZE_WIDTH, null, $read_config); // Graph width
+ $this->graph_attr_height = pts_read_graph_config(P_GRAPH_SIZE_HEIGHT, null, $read_config);; // Graph height
// Colors
- $this->graph_color_notches = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/Notches", null, $read_config); // Color for notches
- $this->graph_color_text = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/Text", null, $read_config); // Color for text
- $this->graph_color_border = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/Border", null, $read_config); // Color for border (if used)
- $this->graph_color_main_headers = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/MainHeaders", null, $read_config); // Color of main text headers
- $this->graph_color_headers = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/Headers", null, $read_config); // Color of other headers
- $this->graph_color_background = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/Background", null, $read_config); // Color of background
- $this->graph_color_body = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/GraphBody", null, $read_config); // Color of graph body
- $this->graph_color_body_text = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/BodyText", null, $read_config); // Color of graph body text
- $this->graph_color_body_light = pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/Alternate", null, $read_config); // Color of the border around graph bars (if doing a bar graph)
-
- $this->graph_color_paint = explode(", ", pts_read_graph_config("PhoronixTestSuite/Graphs/Colors/ObjectPaint", null, $read_config)); // Colors to use for the bars / lines, one color for each key
+ $this->graph_color_notches = pts_read_graph_config(P_GRAPH_COLOR_NOTCHES, null, $read_config); // Color for notches
+ $this->graph_color_text = pts_read_graph_config(P_GRAPH_COLOR_TEXT, null, $read_config); // Color for text
+ $this->graph_color_border = pts_read_graph_config(P_GRAPH_COLOR_BORDER, null, $read_config); // Color for border (if used)
+ $this->graph_color_main_headers = pts_read_graph_config(P_GRAPH_COLOR_MAINHEADERS, null, $read_config); // Color of main text headers
+ $this->graph_color_headers = pts_read_graph_config(P_GRAPH_COLOR_HEADERS, null, $read_config); // Color of other headers
+ $this->graph_color_background = pts_read_graph_config(P_GRAPH_COLOR_BACKGROUND, null, $read_config); // Color of background
+ $this->graph_color_body = pts_read_graph_config(P_GRAPH_COLOR_BODY, null, $read_config); // Color of graph body
+ $this->graph_color_body_text = pts_read_graph_config(P_GRAPH_COLOR_BODYTEXT, null, $read_config); // Color of graph body text
+ $this->graph_color_body_light = pts_read_graph_config(P_GRAPH_COLOR_ALTERNATE, null, $read_config); // Color of the border around graph bars (if doing a bar graph)
+
+ $this->graph_color_paint = explode(", ", pts_read_graph_config(P_GRAPH_COLOR_PAINT, null, $read_config)); // Colors to use for the bars / lines, one color for each key
// Text
- $this->graph_watermark_text = pts_read_graph_config("PhoronixTestSuite/Graphs/Other/Watermark", null, $read_config); // watermark
- $this->graph_font = pts_read_graph_config("PhoronixTestSuite/Graphs/Font/FontType", null, $read_config); // TTF file name
- $this->graph_font_size_heading = pts_read_graph_config("PhoronixTestSuite/Graphs/FontSize/Headers", null, $read_config); // Font size of headings
- $this->graph_font_size_bars = pts_read_graph_config("PhoronixTestSuite/Graphs/FontSize/ObjectText", null, $read_config); // Font size for text on the bars/objects
- $this->graph_font_size_identifiers = pts_read_graph_config("PhoronixTestSuite/Graphs/FontSize/Identifiers", null, $read_config); // Font size of identifiers
- $this->graph_font_size_sub_heading = pts_read_graph_config("PhoronixTestSuite/Graphs/FontSize/SubHeaders", null, $read_config); // Font size of headers
- $this->graph_font_size_axis_heading = pts_read_graph_config("PhoronixTestSuite/Graphs/FontSize/Axis", null, $read_config); // Font size of axis headers
-
- $this->graph_attr_big_border = pts_read_graph_config("PhoronixTestSuite/Graphs/Other/RenderBorder", null, $read_config); // Border around graph or not
- $this->graph_attr_marks = pts_read_graph_config("PhoronixTestSuite/Graphs/Other/NumberOfMarks", null, $read_config); // Number of marks to make on vertical axis
+ $this->graph_watermark_text = pts_read_graph_config(P_GRAPH_WATERMARK, null, $read_config); // watermark
+ $this->graph_font = pts_read_graph_config(P_GRAPH_FONT_TYPE, null, $read_config); // TTF file name
+ $this->graph_font_size_heading = pts_read_graph_config(P_GRAPH_FONT_SIZE_HEADERS, null, $read_config); // Font size of headings
+ $this->graph_font_size_bars = pts_read_graph_config(P_GRAPH_FONT_SIZE_TEXT, null, $read_config); // Font size for text on the bars/objects
+ $this->graph_font_size_identifiers = pts_read_graph_config(P_GRAPH_FONT_SIZE_IDENTIFIERS, null, $read_config); // Font size of identifiers
+ $this->graph_font_size_sub_heading = pts_read_graph_config(P_GRAPH_FONT_SIZE_SUBHEADERS, null, $read_config); // Font size of headers
+ $this->graph_font_size_axis_heading = pts_read_graph_config(P_GRAPH_FONT_SIZE_AXIS, null, $read_config); // Font size of axis headers
+
+ $this->graph_attr_big_border = pts_read_graph_config(P_GRAPH_RENDERBORDER, null, $read_config); // Border around graph or not
+ $this->graph_attr_marks = pts_read_graph_config(P_GRAPH_MARKCOUNT, null, $read_config); // Number of marks to make on vertical axis
parent::__construct($Title, $SubTitle, $YTitle);
}