dolibarr 18.0.6
LignePrelevement Class Reference

Class to manage withdrawals. More...

Collaboration diagram for LignePrelevement:

Public Member Functions

 __construct ($db)
 Constructor.
 
 fetch ($rowid)
 Recupere l'objet prelevement.
 
 getLibStatut ($mode=0)
 Return status label of object.
 
 LibStatut ($status, $mode=0)
 Return status label for a status.
 

Static Public Member Functions

static replaceThirdparty (DoliDB $dbs, $origin_id, $dest_id)
 Function used to replace a thirdparty id with another one.
 

Detailed Description

Class to manage withdrawals.

Definition at line 32 of file ligneprelevement.class.php.

Constructor & Destructor Documentation

◆ __construct()

LignePrelevement::__construct ( $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

Definition at line 58 of file ligneprelevement.class.php.

Member Function Documentation

◆ fetch()

LignePrelevement::fetch ( $rowid)

Recupere l'objet prelevement.

Parameters
int$rowidId de la facture a recuperer
Returns
integer <0 if KO, >=0 if OK

Definition at line 78 of file ligneprelevement.class.php.

References dol_syslog(), and statut.

◆ getLibStatut()

LignePrelevement::getLibStatut ( $mode = 0)

Return status label of object.

Parameters
int$mode0=Label, 1=Picto + label, 2=Picto, 3=Label + Picto
Returns
string Label

Definition at line 124 of file ligneprelevement.class.php.

References LibStatut(), and statut.

◆ LibStatut()

LignePrelevement::LibStatut ( $status,
$mode = 0 )

Return status label for a status.

Parameters
int$statusId status
int$mode0=Label, 1=Picto + label, 2=Picto, 3=Label + Picto
Returns
null|string Label

Definition at line 137 of file ligneprelevement.class.php.

References img_picto().

Referenced by getLibStatut().

◆ replaceThirdparty()

static LignePrelevement::replaceThirdparty ( DoliDB $dbs,
$origin_id,
$dest_id )
static

Function used to replace a thirdparty id with another one.

Parameters
DoliDB$dbsDatabase handler, because function is static we name it $dbs not $db to avoid breaking coding test
int$origin_idOld thirdparty id
int$dest_idNew thirdparty id
Returns
bool

Definition at line 180 of file ligneprelevement.class.php.

References CommonObject\commonReplaceThirdparty().


The documentation for this class was generated from the following file: