__construct() public méthode

public __construct ( $entity = '', $event = '', $object = null, $options = [] )
$entity (default '')
$event (default '')
$object (default null)
$options array
 /**
  * @param $entity          (default '')
  * @param $event           (default '')
  * @param $object          (default null)
  * @param $options   array
  */
 function __construct($entity = '', $event = '', $object = null, $options = array())
 {
     parent::__construct($entity, $event, $object, $options);
     $this->options['sendprivate'] = false;
     if (isset($options['followup_id'])) {
         $this->options['sendprivate'] = $options['is_private'];
     }
     if (isset($options['task_id'])) {
         $this->options['sendprivate'] = $options['is_private'];
     }
 }
 /**
  * @param $entity          (default '')
  * @param $event           (default '')
  * @param $object          (default null)
  * @param $options   array
  */
 function __construct($entity = '', $event = '', $object = null, $options = array())
 {
     global $CFG_GLPI;
     parent::__construct($entity, $event, $object, $options);
     $this->options['sendprivate'] = false;
     if (isset($options['followup_id'])) {
         $this->options['sendprivate'] = $options['is_private'];
     }
     if (isset($options['task_id'])) {
         $this->options['sendprivate'] = $options['is_private'];
     }
     if ($CFG_GLPI["use_rich_text"]) {
         $this->html_tags[] = '##ticket.content##';
     }
 }