function Comment Missing

This commit is contained in:
Frédéric FRANCE 2018-08-31 21:54:40 +02:00
parent b513cf57d0
commit a676f4f64f
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
3 changed files with 23 additions and 6 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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 = '');