CActionComm
class CActionComm (View source)
Class to manage different types of events
Properties
| string | $error | ||
| DoliDB | $db | ||
| int | $id | ||
| string | $code | ||
| string | $type | ||
| $libelle | |||
| string | $label | ||
| int | $active | ||
| string | $color | ||
| string | $picto | ||
| array{id: array<int, string>, code: array<string, string>, all: array<string, array{id: string, label: string, type: string, color: mixed, picto: string}>} | $liste_array |
Methods
__construct($db)
Constructor
int
fetch($id)
Load action type from database
int<-1, -1>|array{id: array<int, string>, code: array<string, string>, all: array<string, array{id: string, label: string, type: string, color: mixed, picto: string}>, AC_OTH_AUTO?: mixed}
liste_array($active = '', "id"|"code"|"all" $idorcode = 'id', $excludetype = '', $onlyautoornot = 0, $morefilter = '', $shortlabel = 0)
Return list of event types: array(id=>label) or array(code=>label)
getNomUrl(int $withpicto = 0)
Return name of action type as a label translated
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
int
fetch($id)
Load action type from database
@param int|string $id id or code of action type to read
int<-1, -1>|array{id: array<int, string>, code: array<string, string>, all: array<string, array{id: string, label: string, type: string, color: mixed, picto: string}>, AC_OTH_AUTO?: mixed}
liste_array($active = '', "id"|"code"|"all" $idorcode = 'id', $excludetype = '', $onlyautoornot = 0, $morefilter = '', $shortlabel = 0)
Return list of event types: array(id=>label) or array(code=>label)
@param ''|int<0,1> $active 1 or 0 to filter on event state active or not ('' by default = no filter)
getNomUrl(int $withpicto = 0)
Return name of action type as a label translated