dolibarr  9.0.0
Public Member Functions | List of all members
BankCateg Class Reference

Class to manage bank categories. More...

Public Member Functions

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

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 54 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 <0 if KO, Id of created object if OK

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

◆ createFromClone()

BankCateg::createFromClone (   $fromid)

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

Parameters
int$fromidId of object to clone
Returns
int New id of clone

Definition at line 275 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 <0 if KO, >0 if OK

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

◆ fetch()

BankCateg::fetch (   $id)

Load object in memory from database.

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

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

◆ fetchAll()

BankCateg::fetchAll ( )

Returns all bank categories.

Returns
BankCateg[]

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

References label.

◆ update()

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

Update database.

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

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


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