Cpaiement
class Cpaiement extends CommonDict (View source)
Class Cpaiement
Properties
| DoliDB | $db | from CommonDict | |
| $error | from CommonDict | ||
| string[] | $errors | from CommonDict | |
| int | $id | from CommonDict | |
| ?int | $entity | from CommonDict | |
| ?string | $code | from CommonDict | |
| ?string | $label | from CommonDict | |
| ?int<0, 1> | $active | from CommonDict | |
| string | $element | ||
| string | $table_element | ||
| $libelle | |||
| string | $type | ||
| string | $accountancy_code | ||
| string | $module |
Methods
int
fetch(int $id, string $ref = null)
Load object in memory from the database
int
initAsSpecimen()
Initialise object with example values Id must be 0 if object instance is a specimen
Details
__construct(DoliDB $db)
Constructor
int
create(User $user, int $notrigger = 0)
Create object into database
int
fetch(int $id, string $ref = null)
Load object in memory from the database
int
update(User $user, int<0, 1> $notrigger = 0)
Update object into database
int
delete(User $user, int $notrigger = 0)
Delete object in database
int
initAsSpecimen()
Initialise object with example values Id must be 0 if object instance is a specimen