ultimix
graph_view_1_0_0 Class Reference

Public Member Functions

 __construct ()
 view_graph (&$Options)
 view (&$Options)

Data Fields

 $Graph = false

Detailed Description

Working with graphs.

Author
Dodonov A.A.

Definition at line 26 of file graph_view.php.

Constructor & Destructor Documentation

__construct ( )

Constructor.

Author
Dodonov A.A.

Definition at line 50 of file graph_view.php.

{
try
{
$this->Graph = get_package( 'graph' , 'last' , __FILE__ );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Member Function Documentation

view ( $Options)

Component's view.

Parameters
$Options- Settings.
Returns
HTML code of the component.
Exceptions
ExceptionAn exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 114 of file graph_view.php.

{
try
{
if( $Options->get_setting( 'graph' , false ) == 1 )
{
$this->view_graph( $Options );
}
elseif( $Options->get_setting( 'map' , false ) == 1 )
{
$this->view_map( $Options );
}
return( $this->Output );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}
view_graph ( $Options)

Component's view.

Parameters
$Options- Settings.
Exceptions
ExceptionAn exception of this type is thrown.
Author
Dodonov A.A.

Definition at line 80 of file graph_view.php.

{
try
{
$this->Graph->draw_graph_data( $Options );
}
catch( Exception $e )
{
$a = func_get_args();_throw_exception_object( __METHOD__ , $a , $e );
}
}

Field Documentation

$Graph = false

Cached objects.

Author
Dodonov A.A.

Definition at line 38 of file graph_view.php.


The documentation for this class was generated from the following file: