Ctypent
class Ctypent extends CommonDict (View source)
Class of dictionary type of thirdparty (used by imports)
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 | |
| int | $country_id | ||
| string | $libelle | ||
| string | $module |
Methods
__construct($db)
Constructor
create($user, int $notrigger = 0)
Create object into database
fetch($id, string $code = '', $label = '')
Load object in memory from database
update($user = null, int $notrigger = 0)
Update object into database
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
create($user, int $notrigger = 0)
Create object into database
@param User $user User that create
fetch($id, string $code = '', $label = '')
Load object in memory from database
@param int $id Id object
update($user = null, int $notrigger = 0)
Update object into database
@param User $user User that modify
delete(User $user, $notrigger = 0)
Delete object in database