From a676f4f64f5b535ac6b0b4215ec9af0633112756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Fri, 31 Aug 2018 21:54:40 +0200 Subject: [PATCH] function Comment Missing --- .../class/expensereport_ik.class.php | 15 +++++++++++---- htdocs/projet/class/projectstats.class.php | 7 ++++++- htdocs/ticket/class/ticket.class.php | 7 ++++++- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/htdocs/expensereport/class/expensereport_ik.class.php b/htdocs/expensereport/class/expensereport_ik.class.php index 609ba42c5f5..425851cb6e4 100644 --- a/htdocs/expensereport/class/expensereport_ik.class.php +++ b/htdocs/expensereport/class/expensereport_ik.class.php @@ -33,12 +33,12 @@ class ExpenseReportIk extends CoreObject * @var string ID to identify managed object */ public $element='expenseik'; - + /** * @var string Name of table without prefix where object is stored */ public $table_element='expensereport_ik'; - + public $fk_element='fk_expense_ik'; /** @@ -128,8 +128,15 @@ class ExpenseReportIk extends CoreObject return $categories; } - public static function getRangeByUser(User $userauthor, $fk_c_exp_tax_cat) - { + /** + * Return an array of ranges for a user + * + * @param User $userauthor user author id + * @param int $fk_c_exp_tax_cat category + * @return boolean|array + */ + public static function getRangeByUser(User $userauthor, $fk_c_exp_tax_cat) + { $default_range = (int) $userauthor->default_range; // if not defined, then 0 $ranges = self::getRangesByCategory($fk_c_exp_tax_cat); diff --git a/htdocs/projet/class/projectstats.class.php b/htdocs/projet/class/projectstats.class.php index 22793fd844e..472fb26eaf0 100644 --- a/htdocs/projet/class/projectstats.class.php +++ b/htdocs/projet/class/projectstats.class.php @@ -29,7 +29,12 @@ class ProjectStats extends Stats public $socid; public $year; - function __construct($db) + /** + * Constructor + * + * @param DoliDB $db Database handler + */ + function __construct($db) { global $conf, $user; diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index c1833e97d59..9aeb6b2e58a 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -1025,7 +1025,12 @@ class Ticket extends CommonObject $this->tms = ''; } - + /** + * print selected status + * + * @param string $selected selected status + * @return void + */ public function printSelectStatus($selected = "") { print Form::selectarray('search_fk_statut', $this->statuts_short, $selected, $show_empty = 1, $key_in_label = 0, $value_as_key = 0, $option = '', $translate = 1, $maxlen = 0, $disabled = 0, $sort = '', $morecss = '');