Cchargesociales
class Cchargesociales (View source)
Class Cchargesociales
Properties
| DoliDB | $db | ||
| int | $id | ||
| string | $element | ||
| string | $table_element | ||
| string deprecated | $libelle | ||
| string | $label | ||
| string | $deductible | ||
| ?int<0, 1> | $active | ||
| string | $code | ||
| ?int | $fk_pays | ||
| string | $module | ||
| string | $accountancy_code | ||
| string[] | $errors |
Methods
int
fetch(int $id, string $ref = null)
Load object in memory from the database
LibStatut($status, int $mode = 0)
Return the label of a given status
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 $notrigger = 0)
Update object into database
int
delete(User $user, int $notrigger = 0)
Delete object in database
LibStatut($status, int $mode = 0)
Return the label of a given status
@param int $status Id status
int
initAsSpecimen()
Initialise object with example values Id must be 0 if object instance is a specimen