Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
graph Class Reference

Public Member Functions

 area ($x_start, $y_start, $x_end, $y_end, $type, $colour, $offset)
 
 bar ($x, $y, $type, $size, $colour, $offset, $index, $yoffset)
 
 draw ()
 
 draw_brush ($x, $y, $size, $type, $colour)
 
 draw_brush_line ($x0, $y0, $x1, $y1, $size, $type, $colour)
 
 draw_data ()
 
 draw_legend ()
 
 draw_rectangle ($border, $colour, $type)
 
 draw_set ($order, $set, $offset)
 
 draw_stack ()
 
 draw_text ()
 
 draw_title ()
 
 draw_x_axis ()
 
 draw_x_label ()
 
 draw_y_axis ()
 
 draw_y_label_left ()
 
 draw_y_label_right ()
 
 draw_zero_axis_left ()
 
 draw_zero_axis_right ()
 
 find_range ($data, $min, $max, $resolution)
 
 get_boundaryBox ($message)
 
 get_null_size ()
 
 graph ()
 Old syntax of class constructor.
 
 init ()
 
 init_colours ()
 
 init_data ()
 
 init_labels ()
 
 init_legend ()
 
 init_variable (&$variable, $value, $default)
 
 init_x_axis ()
 
 init_x_ticks ()
 
 init_y_axis ()
 
 init_y_ticks ()
 
 line ($x_start, $y_start, $x_end, $y_end, $type, $brush_type, $brush_size, $colour, $offset)
 
 output ()
 
 plot ($x, $y, $type, $size, $colour, $offset)
 
 print_TTF ($message)
 
 update_boundaryBox (&$boundaryBox, $coords)
 

Public Attributes

 $calculated = array()
 
array $colour = []
 colour.
 
 $debug = FALSE
 
 $image
 
 $offset_relation = null
 
 $parameter
 
array $x_data = []
 x_data data.
 
array $y_data = []
 y_data data.
 
array $y_format = []
 y_format data.
 
array $y_order = []
 y_order data.
 
 $y_tick_labels = null
 

Member Function Documentation

◆ graph()

graph::graph ( )

Old syntax of class constructor.

Deprecated in PHP7.

Deprecated
since Moodle 3.1

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