forked from Wavyzz/dolibarr
Doc: Documentation doxygen
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (c) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (c) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (c) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (c) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -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<EFBFBD>re le fichier graphique sur le disque
|
||||||
*
|
* \param file Nom du fichier image
|
||||||
|
* \param data Tableau des donn<6E>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<EFBFBD>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<50>pare le graphique
|
* \brief Pr<50>pare le graphique
|
||||||
*
|
* \param file Nom du fichier image
|
||||||
|
* \param data Tableau des donn<6E>es
|
||||||
|
* \param title Titre de l'image
|
||||||
*/
|
*/
|
||||||
function prepare($file, $data, $title='')
|
function prepare($file, $data, $title='')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user