Diff of /contrib/plugins/grade/report/visual/visualizations/visualization.php
Parent Directory
|
Revision Log
|
Patch
|
By dservos:
CONTRIB-497
*Added more visualizations
*Added selector UI Widget for flex/flare visualization
*Refactored some of flex actionscript code.
*Added defaults for selected group and items in visualizations.
*Improved removal of nodes and edges when an item or group is deselected in a legend.
*Fixed a memory leak realting to the removal and addtion of nodes.
*Added more options for and control of the flex/flare based visualization from the Moodle back end.
|
| 1 |
<?php |
<?php |
| 2 |
|
class selector { |
| 3 |
|
public $param; |
| 4 |
|
public $options; |
| 5 |
|
public $active; |
| 6 |
|
|
| 7 |
|
public function __construct($param, array $options, $active = null) { |
| 8 |
|
$this->param = $param; |
| 9 |
|
$this->options = $options; |
| 10 |
|
$this->active = $active; |
| 11 |
|
} |
| 12 |
|
} |
| 13 |
|
|
| 14 |
class edge { |
class edge { |
| 15 |
public $sortby; |
public $sortby; |
| 48 |
class legend { |
class legend { |
| 49 |
public $encoder; |
public $encoder; |
| 50 |
|
|
| 51 |
public function __construct($encoder) { |
public $show; |
| 52 |
|
|
| 53 |
|
public function __construct($encoder, $show = null) { |
| 54 |
$this->encoder = $encoder; |
$this->encoder = $encoder; |
| 55 |
|
$this->show = $show; |
| 56 |
} |
} |
| 57 |
} |
} |
| 58 |
|
|
| 88 |
|
|
| 89 |
public $layoutsettings = null; |
public $layoutsettings = null; |
| 90 |
|
|
| 91 |
|
public $usegroups = false; |
| 92 |
|
|
| 93 |
public $edges = null; |
public $edges = null; |
| 94 |
|
|
| 95 |
public $nodeshape = null; |
public $nodeshape = null; |
| 96 |
|
|
| 97 |
public $edgeshape = null; |
public $edgeshape = null; |
| 98 |
|
|
| 99 |
|
public $selectors = null; |
| 100 |
|
|
| 101 |
public $font = 'monospace'; |
public $font = 'monospace'; |
| 102 |
|
|
| 103 |
public $fontsize = 20; |
public $fontsize = 20; |
|
|
Legend:
| Removed from v.1.1 |
|
| changed lines |
| |
Added in v.1.2 |
|
|