dolibarr  19.0.0-dev
Public Member Functions | List of all members
InterfaceContactRoles Class Reference

Class of triggered functions for agenda module. More...

Inheritance diagram for InterfaceContactRoles:
Inheritance graph
[legend]
Collaboration diagram for InterfaceContactRoles:
Collaboration graph
[legend]

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 runTrigger ($action, $object, User $user, Translate $langs, Conf $conf)
 Function called when a Dolibarrr business event is done. More...
 
- Public Member Functions inherited from DolibarrTriggers
 __construct (DoliDB $db)
 Constructor. More...
 
 getName ()
 Returns the name of the trigger file. More...
 
 getDesc ()
 Returns the description of trigger file. More...
 
 getVersion ()
 Returns the version of the trigger file. More...
 

Detailed Description

Class of triggered functions for agenda module.

Definition at line 34 of file interface_90_modSociete_ContactRoles.class.php.

Constructor & Destructor Documentation

◆ __construct()

InterfaceContactRoles::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 41 of file interface_90_modSociete_ContactRoles.class.php.

References name.

Member Function Documentation

◆ runTrigger()

InterfaceContactRoles::runTrigger (   $action,
  $object,
User  $user,
Translate  $langs,
Conf  $conf 
)

Function called when a Dolibarrr business event is done.

All functions "runTrigger" are triggered if file is inside directory htdocs/core/triggers or htdocs/module/code/triggers (and declared)

Following properties may be set before calling trigger. The may be completed by this trigger to be used for writing the event into database: $object->socid or $object->fk_soc(id of thirdparty) $object->element (element type of object)

Parameters
string$actionEvent action code
Object$objectObject
User$userObject user
Translate$langsObject langs
conf$confObject conf
Returns
int <0 if KO, 0 if no triggered ran, >0 if OK

Reimplemented from DolibarrTriggers.

Definition at line 68 of file interface_90_modSociete_ContactRoles.class.php.


The documentation for this class was generated from the following file: