dolibarr 21.0.0-beta
Ctypent Class Reference

Class of dictionary type of thirdparty (used by imports) More...

Inheritance diagram for Ctypent:
Collaboration diagram for Ctypent:

Public Member Functions

 __construct ($db)
 Constructor.
 
 create ($user, $notrigger=0)
 Create object into database.
 
 fetch ($id, $code='', $label='')
 Load object in memory from database.
 
 update ($user=null, $notrigger=0)
 Update object into database.
 
 delete ($user, $notrigger=0)
 Delete object in database.
 

Detailed Description

Class of dictionary type of thirdparty (used by imports)

Definition at line 32 of file ctypent.class.php.

Constructor & Destructor Documentation

◆ __construct()

Ctypent::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 53 of file ctypent.class.php.

Member Function Documentation

◆ create()

Ctypent::create ( $user,
$notrigger = 0 )

Create object into database.

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

Definition at line 66 of file ctypent.class.php.

References $conf, and dol_syslog().

◆ delete()

Ctypent::delete ( $user,
$notrigger = 0 )

Delete object in database.

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

Definition at line 252 of file ctypent.class.php.

References $conf, and dol_syslog().

◆ fetch()

Ctypent::fetch ( $id,
$code = '',
$label = '' )

Load object in memory from database.

Parameters
int$idId object
string$codeCode
string$labelLabel
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 143 of file ctypent.class.php.

◆ update()

Ctypent::update ( $user = null,
$notrigger = 0 )

Update object into database.

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

Definition at line 190 of file ctypent.class.php.

References $conf, and dol_syslog().


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