Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Graph.php |
— | — | @@ -79,6 +79,10 @@ |
80 | 80 | $this->m_graphLegend = array_key_exists( 'graphlegend', $params ) && strtolower( trim( $params['graphlegend'] ) ) == 'yes'; |
81 | 81 | $this->m_graphLabel = array_key_exists( 'graphlabel', $params ) && strtolower( trim( $params['graphlabel'] ) ) == 'yes'; |
82 | 82 | |
| 83 | + if ( array_key_exists( 'arrowdirection', $params ) ) { |
| 84 | + $params['rankdir'] = $params['arrowdirection']; |
| 85 | + } |
| 86 | + |
83 | 87 | if ( array_key_exists( 'rankdir', $params ) ) { |
84 | 88 | $this->m_rankdir = strtoupper( trim( $params['rankdir'] ) ); |
85 | 89 | } |
— | — | @@ -288,7 +292,7 @@ |
289 | 293 | array( 'name' => 'graphsize', 'type' => 'int', 'description' => wfMsg( 'srf_paramdesc_graphsize' ) ), |
290 | 294 | array( 'name' => 'graphlegend', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_graphlegend' ), 'values'=> array( 'yes', 'no' ) ), |
291 | 295 | array( 'name' => 'graphlabel', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_graphlabel' ), 'values'=> array( 'yes', 'no' ) ), |
292 | | - array( 'name' => 'rankdir', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_rankdir' ) ), |
| 296 | + array( 'name' => 'arrowdirection', 'type' => 'string', 'description' => wfMsg( 'srf_paramdesc_rankdir' ) ), |
293 | 297 | array( 'name' => 'graphlink', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_graphlink' ), 'values'=> array( 'yes', 'no' ) ), |
294 | 298 | array( 'name' => 'graphcolor', 'type' => 'enumeration', 'description' => wfMsg( 'srf_paramdesc_graphcolor' ), 'values'=> array( 'yes', 'no' ) ), |
295 | 299 | array( 'name' => 'nodeshape', 'type' => 'enumeration', 'description' => wfMsg( 'srf-paramdesc-graph-nodeshape' ), 'values'=> self::$NODE_SHAPES ), |
Index: trunk/extensions/SemanticResultFormats/SRF_Messages.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | 'srf_paramdesc_graphsize' => 'Graph size (in px)', |
110 | 110 | 'srf_paramdesc_graphlegend' => 'Show graph legend or not', |
111 | 111 | 'srf_paramdesc_graphlabel' => 'Graph label', |
112 | | - 'srf_paramdesc_rankdir' => 'Graph build direction', |
| 112 | + 'srf_paramdesc_rankdir' => 'Arrow direction', |
113 | 113 | 'srf_paramdesc_graphlink' => 'Graph link', |
114 | 114 | 'srf_paramdesc_graphcolor' => 'Graph color', |
115 | 115 | 'srf-paramdesc-graph-wwl' => 'Word wrap limit (in # characters)', |