38if (((!empty(
$id) &&
$id > 0) || (!empty($ref) && !in_array($action, array(
'create',
'createtask',
'add')))) && (empty($cancel) ||
$id > 0)) {
39 if ((
$id > 0 && is_numeric(
$id)) || !empty($ref)) {
40 if (
$object->element ==
'usergroup') {
42 '@phan-var-force UserGroup $object';
43 $ret =
$object->fetch(
$id, (empty($ref) ?
'' : $ref), true);
45 $ret =
$object->fetch(
$id, (empty($ref) ?
'' : $ref));
53 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.