dolibarr  9.0.0
Public Member Functions | List of all members
Events Class Reference

Events class. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 create ($user)
 Create in database. More...
 
 update ($user=null, $notrigger=0)
 Update database. More...
 
 fetch ($id, $user=null)
 Load object in memory from database. More...
 
 delete ($user)
 Delete object in database. More...
 
 initAsSpecimen ()
 Initialise an instance with random values. More...
 

Detailed Description

Events class.

Definition at line 35 of file events.class.php.

Constructor & Destructor Documentation

◆ __construct()

Events::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 122 of file events.class.php.

Member Function Documentation

◆ create()

Events::create (   $user)

Create in database.

Parameters
User$userUser that create
Returns
int <0 if KO, >0 if OK

Definition at line 134 of file events.class.php.

◆ delete()

Events::delete (   $user)

Delete object in database.

Parameters
User$userUser that delete
Returns
int <0 if KO, >0 if OK

Definition at line 274 of file events.class.php.

◆ fetch()

Events::fetch (   $id,
  $user = null 
)

Load object in memory from database.

Parameters
int$idId object
User$userUser that load
Returns
int <0 if KO, >0 if OK

Definition at line 223 of file events.class.php.

◆ initAsSpecimen()

Events::initAsSpecimen ( )

Initialise an instance with random values.

Used to build previews or test instances. id must be 0 if object instance is a specimen.

Returns
void

Definition at line 300 of file events.class.php.

◆ update()

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

Update database.

Parameters
User$userUser that modify
int$notrigger0=no, 1=yes (no update trigger)
Returns
int <0 if KO, >0 if OK

Definition at line 186 of file events.class.php.


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