commit
d14789f493
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (c) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (c) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (c) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -46,10 +47,9 @@ class PropaleStats extends Stats
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param $DB Database handler
|
* @param DoliDB $DB Database handler
|
||||||
* @param $socid Id third party
|
* @param int $socid Id third party
|
||||||
* @param $userid Id user for filter
|
* @param int $userid Id user for filter
|
||||||
* @return PropaleStats
|
|
||||||
*/
|
*/
|
||||||
function PropaleStats($DB, $socid=0, $userid=0)
|
function PropaleStats($DB, $socid=0, $userid=0)
|
||||||
{
|
{
|
||||||
@ -78,8 +78,10 @@ class PropaleStats extends Stats
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renvoie le nombre de proposition par mois pour une ann<EFBFBD>e donn<EFBFBD>e
|
* Return propals number by month for a year
|
||||||
*
|
*
|
||||||
|
* @param int $year year for stats
|
||||||
|
* @return array array with number by month
|
||||||
*/
|
*/
|
||||||
function getNbByMonth($year)
|
function getNbByMonth($year)
|
||||||
{
|
{
|
||||||
@ -97,7 +99,9 @@ class PropaleStats extends Stats
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renvoie le nombre de propale par annee
|
* Return propals number by year
|
||||||
|
*
|
||||||
|
* @return array array with number by year
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function getNbByYear()
|
function getNbByYear()
|
||||||
@ -113,9 +117,12 @@ class PropaleStats extends Stats
|
|||||||
|
|
||||||
return $this->_getNbByYear($sql);
|
return $this->_getNbByYear($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renvoie le nombre de propale par mois pour une annee donnee
|
* Return the propals amount by month for a year
|
||||||
*
|
*
|
||||||
|
* @param int $year year for stats
|
||||||
|
* @return array array with number by month
|
||||||
*/
|
*/
|
||||||
function getAmountByMonth($year)
|
function getAmountByMonth($year)
|
||||||
{
|
{
|
||||||
@ -131,9 +138,12 @@ class PropaleStats extends Stats
|
|||||||
|
|
||||||
return $this->_getAmountByMonth($year, $sql);
|
return $this->_getAmountByMonth($year, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Return the propals amount average by month for a year
|
||||||
*
|
*
|
||||||
*
|
* @param int $year year for stats
|
||||||
|
* @return array array with number by month
|
||||||
*/
|
*/
|
||||||
function getAverageByMonth($year)
|
function getAverageByMonth($year)
|
||||||
{
|
{
|
||||||
@ -150,10 +160,10 @@ class PropaleStats extends Stats
|
|||||||
return $this->_getAverageByMonth($year, $sql);
|
return $this->_getAverageByMonth($year, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Return nb, total and average
|
* Return nb, total and average
|
||||||
* \return array Array of values
|
*
|
||||||
|
* @return array Array of values
|
||||||
*/
|
*/
|
||||||
function getAllByYear()
|
function getAllByYear()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user