dolibarr  17.0.4
Public Member Functions | Public Attributes | List of all members
Cpaiement Class Reference

Class Cpaiement. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor. More...
 
 create (User $user, $notrigger=false)
 Create object into database. More...
 
 fetch ($id, $ref=null)
 Load object in memory from the database. More...
 
 update (User $user, $notrigger=false)
 Update object into database. More...
 
 delete (User $user, $notrigger=false)
 Delete object in database. More...
 
 initAsSpecimen ()
 Initialise object with example values Id must be 0 if object instance is a specimen. More...
 

Public Attributes

 $libelle
 

Detailed Description

Class Cpaiement.

Definition at line 31 of file cpaiement.class.php.

Constructor & Destructor Documentation

◆ __construct()

Cpaiement::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

Definition at line 63 of file cpaiement.class.php.

Member Function Documentation

◆ create()

Cpaiement::create ( User  $user,
  $notrigger = false 
)

Create object into database.

Parameters
User$userUser that creates
bool$notriggerfalse=launch triggers after, true=disable triggers
Returns
int <0 if KO, Id of created object if OK

Definition at line 76 of file cpaiement.class.php.

◆ delete()

Cpaiement::delete ( User  $user,
  $notrigger = false 
)

Delete object in database.

Parameters
User$userUser that deletes
bool$notriggerfalse=launch triggers after, true=disable triggers
Returns
int <0 if KO, >0 if OK

Definition at line 317 of file cpaiement.class.php.

◆ fetch()

Cpaiement::fetch (   $id,
  $ref = null 
)

Load object in memory from the database.

Parameters
int$idId object
string$refRef
Returns
int <0 if KO, 0 if not found, >0 if OK

Definition at line 173 of file cpaiement.class.php.

◆ initAsSpecimen()

Cpaiement::initAsSpecimen ( )

Initialise object with example values Id must be 0 if object instance is a specimen.

Returns
void

Definition at line 366 of file cpaiement.class.php.

References code.

◆ update()

Cpaiement::update ( User  $user,
  $notrigger = false 
)

Update object into database.

Parameters
User$userUser that modifies
bool$notriggerfalse=launch triggers after, true=disable triggers
Returns
int <0 if KO, >0 if OK

Definition at line 232 of file cpaiement.class.php.

Member Data Documentation

◆ $libelle

Cpaiement::$libelle
Deprecated:
See also
$label

Definition at line 49 of file cpaiement.class.php.


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