dolibarr  7.0.0-beta
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

BankCateg::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

Member Function Documentation

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 57 of file bankcateg.class.php.

References $resql, and dol_syslog().

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 265 of file bankcateg.class.php.

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 196 of file bankcateg.class.php.

References $resql, and dol_syslog().

BankCateg::fetch (   $id)

Load object in memory from database.

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

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

References $resql, and dol_syslog().

BankCateg::fetchAll ( )

Returns all bank categories.

Returns
BankCateg[]

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

References $resql.

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 337 of file bankcateg.class.php.

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 147 of file bankcateg.class.php.

References $resql, and dol_syslog().


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