dolibarr 18.0.6
AccountancySystem Class Reference

Class to manage accountancy systems. More...

Public Member Functions

 __construct ($db)
 Constructor.
 
 fetch ($rowid=0, $ref='')
 Load record in memory.
 
 create ($user)
 Insert accountancy system name into database.
 

Detailed Description

Class to manage accountancy systems.

Definition at line 29 of file accountancysystem.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancySystem::__construct ( $db)

Constructor.

Parameters
DoliDB$dbhandler

Definition at line 86 of file accountancysystem.class.php.

Member Function Documentation

◆ create()

AccountancySystem::create ( $user)

Insert accountancy system name into database.

Parameters
User$usermaking insert
Returns
int if KO, Id of line if OK

Definition at line 145 of file accountancysystem.class.php.

References dol_now(), dol_syslog(), and rowid.

◆ fetch()

AccountancySystem::fetch ( $rowid = 0,
$ref = '' )

Load record in memory.

Parameters
int$rowidId
string$refref
Returns
int <0 if KO, Id of record if OK and found

Definition at line 99 of file accountancysystem.class.php.

References dol_syslog(), ref, and rowid.


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