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

Constructor & Destructor Documentation

◆ __construct()

BankCateg::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 75 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 88 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 291 of file bankcateg.class.php.

References $object.

◆ 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 227 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 142 of file bankcateg.class.php.

References dol_syslog().

◆ fetchAll()

BankCateg::fetchAll ( )

Returns all bank categories.

Returns
BankCateg[]

Definition at line 331 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
int

Definition at line 360 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 178 of file bankcateg.class.php.

References dol_syslog().


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