Doxygen
This commit is contained in:
parent
395758f213
commit
d514d72ac5
@ -7187,7 +7187,7 @@ class Form
|
||||
* @param int $limit Limit on number of returned lines
|
||||
* @param int $status Ticket status
|
||||
* @param string $selected_input_value Value of preselected input text (for use with ajax)
|
||||
* @param int $hidelabel Hide label (0=no, 1=yes, 2=show search icon (before) and placeholder, 3 search icon after)
|
||||
* @param int $hidelabel Hide label (0=no, 1=yes, 2=show search icon before and placeholder, 3 search icon after)
|
||||
* @param array $ajaxoptions Options for ajax_autocompleter
|
||||
* @param int $socid Thirdparty Id (to get also price dedicated to this customer)
|
||||
* @param string $showempty '' to not show empty line. Translation key to show an empty line. '1' show empty line with no text.
|
||||
|
||||
@ -590,6 +590,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName = '_small',
|
||||
break;
|
||||
}
|
||||
|
||||
// Before PHP8, img was a resource, With PHP8, it is a GdImage
|
||||
if (!is_resource($img) && !($img instanceof \GdImage)) {
|
||||
dol_syslog('Failed to detect type of image. We found infoImg[2]='.$infoImg[2], LOG_WARNING);
|
||||
return 0;
|
||||
|
||||
@ -1031,29 +1031,29 @@ class FactureFournisseurRec extends CommonInvoice
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a line to supplier invoice template
|
||||
* Update a line to supplier invoice template
|
||||
*
|
||||
* @param $rowid ID
|
||||
* @param int $fk_product Product/Service ID predefined
|
||||
* @param $ref Ref
|
||||
* @param string $label Label of the line
|
||||
* @param string $desc Description de la ligne
|
||||
* @param double $pu_ht Prix unitaire HT (> 0 even for credit note)
|
||||
* @param double $qty Quantity
|
||||
* @param int $remise_percent Percentage discount of the line
|
||||
* @param double $txtva Taux de tva force, sinon -1
|
||||
* @param int $txlocaltax1 Local tax 1 rate (deprecated)
|
||||
* @param int $txlocaltax2 Local tax 2 rate (deprecated)
|
||||
* @param string $price_base_type HT or TTC
|
||||
* @param int $type Type of line (0=product, 1=service)
|
||||
* @param int $date_start Date start
|
||||
* @param int $date_end Date end
|
||||
* @param int $info_bits Bits of type of lines
|
||||
* @param int $special_code Special code
|
||||
* @param int $rang Position of line
|
||||
* @param string $fk_unit Unit
|
||||
* @param int $pu_ht_devise Unit price in currency
|
||||
* @return int <0 if KO, Id of line if OK
|
||||
* @param int $rowid ID
|
||||
* @param int $fk_product Product/Service ID predefined
|
||||
* @param string $ref Ref
|
||||
* @param string $label Label of the line
|
||||
* @param string $desc Description de la ligne
|
||||
* @param double $pu_ht Prix unitaire HT (> 0 even for credit note)
|
||||
* @param double $qty Quantity
|
||||
* @param int $remise_percent Percentage discount of the line
|
||||
* @param double $txtva Taux de tva force, sinon -1
|
||||
* @param int $txlocaltax1 Local tax 1 rate (deprecated)
|
||||
* @param int $txlocaltax2 Local tax 2 rate (deprecated)
|
||||
* @param string $price_base_type HT or TTC
|
||||
* @param int $type Type of line (0=product, 1=service)
|
||||
* @param int $date_start Date start
|
||||
* @param int $date_end Date end
|
||||
* @param int $info_bits Bits of type of lines
|
||||
* @param int $special_code Special code
|
||||
* @param int $rang Position of line
|
||||
* @param string $fk_unit Unit
|
||||
* @param int $pu_ht_devise Unit price in currency
|
||||
* @return int <0 if KO, Id of line if OK
|
||||
* @throws Exception
|
||||
*/
|
||||
public function updateline($rowid, $fk_product, $ref, $label, $desc, $pu_ht, $qty, $remise_percent, $txtva, $txlocaltax1 = 0, $txlocaltax2 = 0, $price_base_type = 'HT', $type = 0, $date_start = 0, $date_end = 0, $info_bits = 0, $special_code = 0, $rang = -1, $fk_unit = null, $pu_ht_devise = 0)
|
||||
|
||||
@ -977,7 +977,7 @@ class Skill extends CommonObject
|
||||
{
|
||||
$this->lines = array();
|
||||
|
||||
$objectline = new SkillLine($this->db);
|
||||
$objectline = new Skilldet($this->db);
|
||||
$result = $objectline->fetchAll('ASC', 'rankorder', 0, 0, array('customsql'=>'fk_skill = '.$this->id));
|
||||
|
||||
if (is_numeric($result)) {
|
||||
|
||||
@ -882,27 +882,6 @@ class Skilldet extends CommonObject
|
||||
$this->initAsSpecimenCommon();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an array of lines
|
||||
*
|
||||
* @return array|int array of lines if OK, <0 if KO
|
||||
*/
|
||||
public function getLinesArray()
|
||||
{
|
||||
$this->lines = array();
|
||||
|
||||
$objectline = new SkilldetLine($this->db);
|
||||
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_skilldet = '.$this->id));
|
||||
|
||||
if (is_numeric($result)) {
|
||||
$this->error = $this->error;
|
||||
$this->errors = $this->errors;
|
||||
return $result;
|
||||
} else {
|
||||
$this->lines = $result;
|
||||
return $this->lines;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the reference to the following non used object depending on the active numbering module.
|
||||
|
||||
@ -930,6 +930,7 @@ class SkillRank extends CommonObject
|
||||
{
|
||||
$this->lines = array();
|
||||
|
||||
/*
|
||||
$objectline = new SkillRankLine($this->db);
|
||||
$result = $objectline->fetchAll('ASC', 'position', 0, 0, array('customsql'=>'fk_skillrank = '.((int) $this->id)));
|
||||
|
||||
@ -941,6 +942,7 @@ class SkillRank extends CommonObject
|
||||
$this->lines = $result;
|
||||
return $this->lines;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -49,7 +49,7 @@ class MyModuleApi extends DolibarrApi
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
global $db, $conf;
|
||||
global $db;
|
||||
$this->db = $db;
|
||||
$this->myobject = new MyObject($this->db);
|
||||
}
|
||||
|
||||
@ -37,11 +37,15 @@ dol_include_once('/recruitment/class/recruitmentcandidature.class.php');
|
||||
class Recruitment extends DolibarrApi
|
||||
{
|
||||
/**
|
||||
* @var jobposition $jobposition {@type jobposition}
|
||||
* @var RecruitmentJobPosition $jobposition {@type RecruitmentJobPosition}
|
||||
*/
|
||||
public $jobposition;
|
||||
/**
|
||||
* @var RecruitmentCandidature $candidature {@type RecruitmentCandidature}
|
||||
*/
|
||||
public $candidature;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
@ -50,12 +54,13 @@ class Recruitment extends DolibarrApi
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
global $db, $conf;
|
||||
global $db;
|
||||
$this->db = $db;
|
||||
$this->jobposition = new RecruitmentJobPosition($this->db);
|
||||
$this->candidature = new RecruitmentCandidature($this->db);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get properties of a jobposition object
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user