dolibarr 21.0.0-alpha
Cpaiement Class Reference

Class Cpaiement. More...

Inheritance diagram for Cpaiement:
Collaboration diagram for Cpaiement:

Public Member Functions

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

Detailed Description

Class Cpaiement.

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

Constructor & Destructor Documentation

◆ __construct()

Cpaiement::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

Member Function Documentation

◆ create()

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

Create object into database.

Parameters
User$userUser that creates
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, Id of created object if OK

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

References dol_syslog(), getEntity(), and type.

◆ delete()

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

Delete object in database.

Parameters
User$userUser that deletes
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, >0 if OK

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

References dol_syslog().

◆ fetch()

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

Load object in memory from the database.

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

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

References dol_syslog(), and type.

◆ initAsSpecimen()

Cpaiement::initAsSpecimen ( )

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

Returns
int

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

References type.

◆ update()

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

Update object into database.

Parameters
User$userUser that modifies
int<0,1>$notrigger 0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, >0 if OK

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

References dol_syslog(), and type.


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