Doc: Documentation doxygen
This commit is contained in:
parent
c0316196e5
commit
1e137416bc
@ -20,18 +20,30 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT . "/graph.class.php";
|
/**
|
||||||
|
\file htdocs/bargraph.class.php
|
||||||
|
\brief Fichier de la classe de gestion de graphs phplot
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once(DOL_DOCUMENT_ROOT."/graph.class.php");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
\class BarGraph
|
||||||
|
\brief Classe permettant la gestion des graphs phplot
|
||||||
|
*/
|
||||||
|
|
||||||
class BarGraph extends Graph
|
class BarGraph extends Graph
|
||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $errorstr;
|
var $errorstr;
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialisation
|
|
||||||
* Retour: 0 si ko, 1 si ok
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Initialisation
|
||||||
|
* \return int Retour: 0 si ko, 1 si ok
|
||||||
|
*/
|
||||||
function BarGraph($data=array()) {
|
function BarGraph($data=array()) {
|
||||||
|
|
||||||
$modules_list = get_loaded_extensions();
|
$modules_list = get_loaded_extensions();
|
||||||
@ -47,8 +59,6 @@ class BarGraph extends Graph
|
|||||||
|
|
||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/includes/phplot/phplot.php");
|
|
||||||
|
|
||||||
$this->bgcolor = array(235,235,224);
|
$this->bgcolor = array(235,235,224);
|
||||||
//$this->bgcolor = array(235,235,200);
|
//$this->bgcolor = array(235,235,200);
|
||||||
$this->bordercolor = array(235,235,224);
|
$this->bordercolor = array(235,235,224);
|
||||||
@ -79,8 +89,10 @@ class BarGraph extends Graph
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dessine le graphique
|
* \brief Génère le fichier graphique sur le disque
|
||||||
*
|
* \param file Nom du fichier image
|
||||||
|
* \param data Tableau des données
|
||||||
|
* \param title Titre de l'image
|
||||||
*/
|
*/
|
||||||
function draw($file, $data, $title='') {
|
function draw($file, $data, $title='') {
|
||||||
$this->prepare($file, $data, $title);
|
$this->prepare($file, $data, $title);
|
||||||
@ -106,8 +118,7 @@ class BarGraph extends Graph
|
|||||||
$this->graph->SetNumVertTicks(substr($this->MaxValue,0,1));
|
$this->graph->SetNumVertTicks(substr($this->MaxValue,0,1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Génère le fichier $file
|
||||||
|
|
||||||
$this->graph->DrawGraph();
|
$this->graph->DrawGraph();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,14 +19,30 @@
|
|||||||
* $Source$
|
* $Source$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/graph.class.php
|
||||||
|
\brief Fichier de la classe mère de gestion des graph phplot
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
include_once(DOL_DOCUMENT_ROOT."/includes/phplot/phplot.php");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
\class Graph
|
||||||
|
\brief Classe mère permettant la gestion des graph phplot
|
||||||
|
*/
|
||||||
|
|
||||||
class Graph
|
class Graph
|
||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $errorstr;
|
var $errorstr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prépare le graphique
|
* \brief Prépare le graphique
|
||||||
*
|
* \param file Nom du fichier image
|
||||||
|
* \param data Tableau des données
|
||||||
|
* \param title Titre de l'image
|
||||||
*/
|
*/
|
||||||
function prepare($file, $data, $title='')
|
function prepare($file, $data, $title='')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user