dolibarr 21.0.0-alpha
CLeadStatus Class Reference

Class of dictionary of opportunity status. More...

Inheritance diagram for CLeadStatus:
Collaboration diagram for CLeadStatus:

Public Member Functions

 __construct ($db)
 Constructor.
 
 create ($user, $notrigger=0)
 Create object into database.
 
 fetch ($id, $code='')
 Load object in memory from database.
 
 fetchAll ($sortorder='', $sortfield='', $limit=0, $offset=0, $filter='', $filtermode='AND')
 Load list of objects in memory from the database.
 
 update ($user=null, $notrigger=0)
 Update object into database.
 
 delete ($user, $notrigger=0)
 Delete object in database.
 

Detailed Description

Class of dictionary of opportunity status.

Definition at line 33 of file cleadstatus.class.php.

Constructor & Destructor Documentation

◆ __construct()

CLeadStatus::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 66 of file cleadstatus.class.php.

Member Function Documentation

◆ create()

CLeadStatus::create ( $user,
$notrigger = 0 )

Create object into 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 79 of file cleadstatus.class.php.

References dol_syslog(), and position.

◆ delete()

CLeadStatus::delete ( $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 301 of file cleadstatus.class.php.

References dol_syslog().

◆ fetch()

CLeadStatus::fetch ( $id,
$code = '' )

Load object in memory from database.

Parameters
int$idId of CUnit object to fetch (rowid)
string$codeCode
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 123 of file cleadstatus.class.php.

References position.

◆ fetchAll()

CLeadStatus::fetchAll ( $sortorder = '',
$sortfield = '',
$limit = 0,
$offset = 0,
$filter = '',
$filtermode = 'AND' )

Load list of objects in memory from the database.

Parameters
string$sortorderSort Order
string$sortfieldSort field
int$limitLimit
int$offsetOffset
string$filterFilter USF
string$filtermodeFilter mode (AND or OR)
Returns
array|int int <0 if KO, array of pages if OK

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

References dol_syslog(), and forgeSQLFromUniversalSearchCriteria().

◆ update()

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

Update object into database.

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

Definition at line 266 of file cleadstatus.class.php.

References dol_syslog(), and position.


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