ultimix
graph_view.php
Go to the documentation of this file.
1 <?php
2 
3  /*
4  * This source code is a part of the Ultimix Project.
5  * It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6  * it's own license wich could be found from the corresponding files or sources.
7  * This source code is provided "as is" without any warranties or garanties.
8  *
9  * Have a nice day!
10  *
11  * @url http://ultimix.sorceforge.net
12  *
13  * @author Alexey "gdever" Dodonov
14  */
15 
27 
38  var $Graph = false;
39 
50  function __construct()
51  {
52  try
53  {
54  $this->Graph = get_package( 'graph' , 'last' , __FILE__ );
55  }
56  catch( Exception $e )
57  {
58  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
59  }
60  }
61 
80  function view_graph( &$Options )
81  {
82  try
83  {
84  $this->Graph->draw_graph_data( $Options );
85  }
86  catch( Exception $e )
87  {
88  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
89  }
90  }
91 
114  function view( &$Options )
115  {
116  try
117  {
118  if( $Options->get_setting( 'graph' , false ) == 1 )
119  {
120  $this->view_graph( $Options );
121  }
122  elseif( $Options->get_setting( 'map' , false ) == 1 )
123  {
124  $this->view_map( $Options );
125  }
126 
127  return( $this->Output );
128  }
129  catch( Exception $e )
130  {
131  $a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
132  }
133  }
134  }
135 
136 ?>