Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
d14789f4
Commit
d14789f4
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Plain Diff
Merge pull request #69 from simnandez/develop
Qual: Uniformize code
parents
644439d8
62f676f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/comm/propal/class/propalestats.class.php
+22
-12
22 additions, 12 deletions
htdocs/comm/propal/class/propalestats.class.php
with
22 additions
and
12 deletions
htdocs/comm/propal/class/propalestats.class.php
+
22
−
12
View file @
d14789f4
...
...
@@ -2,6 +2,7 @@
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (c) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
* 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
* it under the terms of the GNU General Public License as published by
...
...
@@ -46,10 +47,9 @@ class PropaleStats extends Stats
/**
* Constructor
*
* @param $DB Database handler
* @param $socid Id third party
* @param $userid Id user for filter
* @return PropaleStats
* @param DoliDB $DB Database handler
* @param int $socid Id third party
* @param int $userid Id user for filter
*/
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�e donn�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
)
{
...
...
@@ -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
()
...
...
@@ -113,9 +117,12 @@ class PropaleStats extends Stats
return
$this
->
_getNbByYear
(
$sql
);
}
/**
* Re
nvoie le nombre de propale par mois pour une annee donnee
* Re
turn the propals amount by month for a year
*
* @param int $year year for stats
* @return array array with number by month
*/
function
getAmountByMonth
(
$year
)
{
...
...
@@ -131,9 +138,12 @@ class PropaleStats extends Stats
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
)
{
...
...
@@ -150,10 +160,10 @@ class PropaleStats extends Stats
return
$this
->
_getAverageByMonth
(
$year
,
$sql
);
}
/**
* \brief Return nb, total and average
* \return array Array of values
* Return nb, total and average
*
* @return array Array of values
*/
function
getAllByYear
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment