dolibarr  7.0.0-beta
Public Member Functions | List of all members
Cchargesociales Class Reference

Class Cchargesociales. More...

Public Member Functions

 __construct (DoliDB $db)
 Constructor. More...
 
 create (User $user, $notrigger=false)
 Create object into database. More...
 
 fetch ($id, $ref=null)
 Load object in memory from the database. More...
 
 update (User $user, $notrigger=false)
 Update object into database. More...
 
 delete (User $user, $notrigger=false)
 Delete object in database. More...
 
 createFromClone ($fromid)
 Load an object from its id and create a new one in database. More...
 
 getNomUrl ($withpicto=0, $option='', $notooltip=0, $maxlen=24, $morecss='')
 Return a link to the user card (with optionaly the picto) Use this->id,this->lastname, this->firstname. More...
 
 getLibStatut ($mode=0)
 Retourne le libelle du status d'un user (actif, inactif) More...
 
 LibStatut ($status, $mode=0)
 Renvoi le libelle d'un status donne. More...
 
 initAsSpecimen ()
 Initialise object with example values Id must be 0 if object instance is a specimen. More...
 

Detailed Description

Class Cchargesociales.

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

Constructor & Destructor Documentation

Cchargesociales::__construct ( DoliDB  $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

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

Member Function Documentation

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

Create object into database.

Parameters
User$userUser that creates
bool$notriggerfalse=launch triggers after, true=disable triggers
Returns
int <0 if KO, Id of created object if OK

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

References $resql, and dol_syslog().

Cchargesociales::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 379 of file cchargesociales.class.php.

References dol_syslog().

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

Delete object in database.

Parameters
User$userUser that deletes
bool$notriggerfalse=launch triggers after, true=disable triggers
Returns
int <0 if KO, >0 if OK

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

References $resql, and dol_syslog().

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

Load object in memory from the database.

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

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

References $resql, and dol_syslog().

Cchargesociales::getLibStatut (   $mode = 0)

Retourne le libelle du status d'un user (actif, inactif)

Parameters
int$mode0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
Returns
string Label of status

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

References LibStatut().

Cchargesociales::getNomUrl (   $withpicto = 0,
  $option = '',
  $notooltip = 0,
  $maxlen = 24,
  $morecss = '' 
)

Return a link to the user card (with optionaly 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

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

Cchargesociales::initAsSpecimen ( )

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

Returns
void

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

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

Renvoi le libelle d'un status donne.

Parameters
int$statusId status
int$mode0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
Returns
string Label of status

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

References img_picto().

Referenced by getLibStatut().

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

Update object into database.

Parameters
User$userUser that modifies
bool$notriggerfalse=launch triggers after, true=disable triggers
Returns
int <0 if KO, >0 if OK

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

References $resql, and dol_syslog().


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