39@phan-var-force string $action
40@phan-var-force string $cancel
41@phan-var-force string $ref
42@phan-var-force int $id
45if (((!empty(
$id) &&
$id > 0) || (!empty($ref) && !in_array($action, array(
'create',
'createtask',
'add')))) && (empty($cancel) ||
$id > 0)) {
46 if ((
$id > 0 && is_numeric(
$id)) || !empty($ref)) {
47 if (
$object->element ==
'usergroup') {
49 '@phan-var-force UserGroup $object';
50 $ret =
$object->fetch(
$id, (empty($ref) ?
'' : $ref), true);
52 $ret =
$object->fetch(
$id, (empty($ref) ?
'' : $ref));
60 setEventMessages(
'Fetch on object (type '.get_class(
$object).
') return an error without filling $object->error nor $object->errors',
null,
'errors');
$id
Support class for third parties, contacts, members, users or resources.
if(! $sortfield) if(! $sortorder) $object
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.