dolibarr 20.0.0
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 83 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 Return integer <0 if KO, >=0 if OK

Definition at line 103 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 149 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 Return status label (or null if $mode != 0, 1, 2, 3 or 4)

Definition at line 162 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 206 of file ligneprelevement.class.php.

References CommonObject\commonReplaceThirdparty().


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