ILIAS
Release_5_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilChartPie.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
"Services/Chart/classes/class.ilChart.php"
;
5
13
class
ilChartPie
extends
ilChart
14
{
15
public
function
getDataInstance
($a_type = null)
16
{
17
include_once
"Services/Chart/classes/class.ilChartDataPie.php"
;
18
return
new
ilChartDataPie
();
19
}
20
21
protected
function
isValidDataType
(
ilChartData
$a_series)
22
{
23
return
($a_series instanceof
ilChartDataPie
);
24
}
25
26
protected
function
addCustomJS
()
27
{
28
global
$tpl
;
29
30
$tpl->addJavascript(
"Services/Chart/js/flot/jquery.flot.pie.js"
);
31
}
32
33
public
function
parseGlobalOptions
(stdClass $a_options)
34
{
35
// if no inner labels set, use legend
36
if
(!isset($a_options->series->pie->label) &&
37
!$this->legend)
38
{
39
$legend
=
new
ilChartLegend
();
40
$legend
->setPosition(
"nw"
);
41
$this->
setLegend
(
$legend
);
42
}
43
}
44
}
45
Services
Chart
classes
class.ilChartPie.php
Generated on Wed Apr 27 2016 21:01:32 for ILIAS by
1.8.1.2 (using
Doxyfile
)