dolibarr 21.0.0-alpha
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=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 31 of file bankcateg.class.php.

Constructor & Destructor Documentation

◆ __construct()

BankCateg::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 76 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 89 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 302 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 238 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 149 of file bankcateg.class.php.

References dol_syslog().

◆ fetchAll()

BankCateg::fetchAll ( )

Returns all bank categories.

Returns
BankCateg[]

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

◆ update()

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

Update database.

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

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

References dol_syslog().


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