dolibarr 21.0.0-beta
Cchargesociales Class Reference

Class Cchargesociales. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor.
 
 create (User $user, $notrigger=0)
 Create object into database.
 
 fetch ($id, $ref=null)
 Load object in memory from the database.
 
 update (User $user, $notrigger=0)
 Update object into database.
 
 delete (User $user, $notrigger=0)
 Delete object in database.
 
 LibStatut ($status, $mode=0)
 Load an object from its id and create a new one in database.
 
 initAsSpecimen ()
 Initialise object with example values Id must be 0 if object instance is a specimen.
 

Private Member Functions

 trimParameters ($parameters)
 Trim object parameters.
 

Detailed Description

Class Cchargesociales.

Definition at line 37 of file cchargesociales.class.php.

Constructor & Destructor Documentation

◆ __construct()

Cchargesociales::__construct ( DoliDB $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 107 of file cchargesociales.class.php.

Member Function Documentation

◆ create()

Cchargesociales::create ( User $user,
$notrigger = 0 )

Create object into database.

Parameters
User$userUser that creates
int$notrigger0=launch triggers after, 1=disable triggers
Returns
int Return integer <0 if KO, Id of created object if OK

Definition at line 119 of file cchargesociales.class.php.

References dol_syslog(), and trimParameters().

◆ delete()

Cchargesociales::delete ( User $user,
$notrigger = 0 )

Delete object in database.

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

Definition at line 335 of file cchargesociales.class.php.

References dol_syslog().

◆ fetch()

Cchargesociales::fetch ( $id,
$ref = null )

Load object in memory from the database.

Parameters
int$idId object
string$refRef
Returns
int Return integer <0 if KO, 0 if not found, >0 if OK

Definition at line 203 of file cchargesociales.class.php.

References dol_syslog().

◆ initAsSpecimen()

Cchargesociales::initAsSpecimen ( )

Initialise object with example values Id must be 0 if object instance is a specimen.

Returns
int

Definition at line 539 of file cchargesociales.class.php.

◆ LibStatut()

Cchargesociales::LibStatut ( $status,
$mode = 0 )

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 Return a link to the user card (with optionally the picto) Use this->id,this->lastname, this->firstname
Parameters
int$withpictoInclude picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
string$optionOn what the link point to
integer$notooltip1=Disable tooltip
int$maxlenMax length of visible user name
string$morecssAdd more css on link
Returns
string String with URL Return the label of the status
Parameters
int$mode0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
Returns
string Label of status Return the label of a given status
Parameters
int$statusId status
int$mode0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto, 6=Long label + Picto
Returns
string Label of status

Definition at line 487 of file cchargesociales.class.php.

References img_picto().

◆ trimParameters()

Cchargesociales::trimParameters ( $parameters)
private

Trim object parameters.

Parameters
string[]$parametersarray of parameters to trim
Returns
void

Definition at line 560 of file cchargesociales.class.php.

Referenced by create(), and update().

◆ update()

Cchargesociales::update ( User $user,
$notrigger = 0 )

Update object into database.

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

Definition at line 262 of file cchargesociales.class.php.

References dol_syslog(), and trimParameters().


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