|
dolibarr
x.y.z
|
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 (User $user, $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... | |
Private Member Functions | |
| trimParameters ($parameters) | |
| Trim object parameters. More... | |
Class Cchargesociales.
Definition at line 35 of file cchargesociales.class.php.
| Cchargesociales::__construct | ( | DoliDB | $db | ) |
Constructor.
| DoliDb | $db | Database handler |
Definition at line 79 of file cchargesociales.class.php.
| Cchargesociales::create | ( | User | $user, |
$notrigger = false |
|||
| ) |
Create object into database.
| User | $user | User that creates |
| bool | $notrigger | false=launch triggers after, true=disable triggers |
Definition at line 92 of file cchargesociales.class.php.
| Cchargesociales::createFromClone | ( | User | $user, |
| $fromid | |||
| ) |
Load an object from its id and create a new one in database.
Definition at line 361 of file cchargesociales.class.php.
| Cchargesociales::delete | ( | User | $user, |
$notrigger = false |
|||
| ) |
Delete object in database.
| User | $user | User that deletes |
| bool | $notrigger | false=launch triggers after, true=disable triggers |
Definition at line 310 of file cchargesociales.class.php.
| Cchargesociales::fetch | ( | $id, | |
$ref = null |
|||
| ) |
Load object in memory from the database.
| int | $id | Id object |
| string | $ref | Ref |
Definition at line 176 of file cchargesociales.class.php.
| Cchargesociales::getLibStatut | ( | $mode = 0 | ) |
Retourne le libelle du status d'un user (actif, inactif)
| int | $mode | 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto |
Definition at line 449 of file cchargesociales.class.php.
| 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.
| int | $withpicto | Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto) |
| string | $option | On what the link point to |
| integer | $notooltip | 1=Disable tooltip |
| int | $maxlen | Max length of visible user name |
| string | $morecss | Add more css on link |
Definition at line 414 of file cchargesociales.class.php.
| Cchargesociales::initAsSpecimen | ( | ) |
Initialise object with example values Id must be 0 if object instance is a specimen.
Definition at line 513 of file cchargesociales.class.php.
| Cchargesociales::LibStatut | ( | $status, | |
$mode = 0 |
|||
| ) |
Renvoi le libelle d'un status donne.
| int | $status | Id status |
| int | $mode | 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto |
Definition at line 462 of file cchargesociales.class.php.
|
private |
Trim object parameters.
| string[] | $parameters | array of parameters to trim |
Definition at line 533 of file cchargesociales.class.php.
| Cchargesociales::update | ( | User | $user, |
$notrigger = false |
|||
| ) |
Update object into database.
| User | $user | User that modifies |
| bool | $notrigger | false=launch triggers after, true=disable triggers |
Definition at line 236 of file cchargesociales.class.php.