dolibarr 21.0.0-beta
AccountancyReport Class Reference

Class to manage reports for accounting categories. More...

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 to manage reports for accounting categories.

Definition at line 30 of file accountancyreport.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancyReport::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 93 of file accountancyreport.class.php.

Member Function Documentation

◆ create()

AccountancyReport::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 106 of file accountancyreport.class.php.

References $conf, and dol_syslog().

◆ delete()

AccountancyReport::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 292 of file accountancyreport.class.php.

References $conf, and dol_syslog().

◆ fetch()

AccountancyReport::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 181 of file accountancyreport.class.php.

References dol_syslog(), and getEntity().

◆ update()

AccountancyReport::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 230 of file accountancyreport.class.php.

References $conf, and dol_syslog().


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