|
dolibarr
13.0.2
|
Class to manage different types of events. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| fetch ($id) | |
| Load action type from database. More... | |
| liste_array ($active= '', $idorcode= 'id', $excludetype= '', $onlyautoornot=0, $morefilter= '', $shortlabel=0) | |
| Return list of event types: array(id=>label) or array(code=>label) More... | |
| getNomUrl ($withpicto=0) | |
| Return name of action type as a label translated. More... | |
Class to manage different types of events.
Definition at line 29 of file cactioncomm.class.php.
| CActionComm::__construct | ( | $db | ) |
| CActionComm::fetch | ( | $id | ) |
Load action type from database.
| int | string | $id | id or code of action type to read |
Definition at line 105 of file cactioncomm.class.php.
References $resql, code, db, dol_syslog(), and type.
| CActionComm::getNomUrl | ( | $withpicto = 0 | ) |
Return name of action type as a label translated.
| int | $withpicto | 0=No picto, 1=Include picto into link, 2=Picto only |
Definition at line 245 of file cactioncomm.class.php.
References code.
| CActionComm::liste_array | ( | $active = '', |
|
$idorcode = 'id', |
|||
$excludetype = '', |
|||
$onlyautoornot = 0, |
|||
$morefilter = '', |
|||
$shortlabel = 0 |
|||
| ) |
Return list of event types: array(id=>label) or array(code=>label)
| string | int | $active | 1 or 0 to filter on event state active or not ('' by default = no filter) |
| string | $idorcode | 'id' or 'code' |
| string | $excludetype | Type to exclude ('system' or 'systemauto') |
| int | $onlyautoornot | 1=Group all type AC_XXX into 1 line AC_MANUAL. 0=Keep details of type, -1=Keep details and add a combined line "All manual" |
| string | $morefilter | Add more SQL filter |
| int | $shortlabel | 1=Get short label instead of long label |
Definition at line 152 of file cactioncomm.class.php.
References $resql, db, and dol_syslog().