dolibarr 20.0.0
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 30 of file accountancysystem.class.php.

Constructor & Destructor Documentation

◆ __construct()

AccountancySystem::__construct ( $db)

Constructor.

Parameters
DoliDB$dbhandler

Definition at line 109 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 168 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 Return integer <0 if KO, Id of record if OK and found

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

References dol_syslog(), ref, and rowid.


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