dolibarr  16.0.1
Public Member Functions | List of all members
Ctypent Class Reference

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

Public Member Functions

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

Detailed Description

Class of dictionary type of thirdparty (used by imports)

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

Constructor & Destructor Documentation

Ctypent::__construct (   $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

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

References db.

Member Function Documentation

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

Create object into database.

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

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

References $resql, code, db, and dol_syslog().

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

Delete object in database.

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

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

References $resql, db, and dol_syslog().

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

Load object in memory from database.

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

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

References $resql, code, and db.

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 <0 if KO, >0 if OK

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

References $resql, code, db, and dol_syslog().


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