dolibarr 19.0.4
BankCateg Class Reference

Class to manage bank categories. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor.
 
 create (User $user, $notrigger=0)
 Create in database.
 
 fetch ($id)
 Load object in memory from database.
 
 update (User $user=null, $notrigger=0)
 Update database.
 
 delete (User $user, $notrigger=0)
 Delete object in database.
 
 createFromClone (User $user, $fromid)
 Load an object from its id and create a new one in database.
 
 fetchAll ()
 Returns all bank categories.
 
 initAsSpecimen ()
 Initialise an instance with random values.
 

Detailed Description

Class to manage bank categories.

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

Constructor & Destructor Documentation

◆ __construct()

BankCateg::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 74 of file bankcateg.class.php.

Member Function Documentation

◆ create()

BankCateg::create ( User $user,
$notrigger = 0 )

Create in 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 87 of file bankcateg.class.php.

References dol_syslog().

◆ createFromClone()

BankCateg::createFromClone ( User $user,
$fromid )

Load an object from its id and create a new one in database.

Parameters
User$userUser making the clone
int$fromidId of object to clone
Returns
int New id of clone

Definition at line 290 of file bankcateg.class.php.

◆ delete()

BankCateg::delete ( User $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 226 of file bankcateg.class.php.

References dol_syslog().

◆ fetch()

BankCateg::fetch ( $id)

Load object in memory from database.

Parameters
int$idId object
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 141 of file bankcateg.class.php.

References dol_syslog().

◆ fetchAll()

BankCateg::fetchAll ( )

Returns all bank categories.

Returns
BankCateg[]

Definition at line 330 of file bankcateg.class.php.

◆ initAsSpecimen()

BankCateg::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 359 of file bankcateg.class.php.

◆ update()

BankCateg::update ( User $user = null,
$notrigger = 0 )

Update database.

Parameters
User | null$userUser that modify
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 177 of file bankcateg.class.php.

References dol_syslog().


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