__construct() public method

public __construct ( $entity = '', $event = '', $object = null, $options = [] )
$entity (default '')
$event (default '')
$object (default null)
$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'])) {
         $fup = new TicketFollowup();
         if ($fup->getFromDB($options['followup_id'])) {
             if ($fup->fields['is_private']) {
                 $this->options['sendprivate'] = true;
             }
         }
     }
     if (isset($options['task_id'])) {
         $fup = new TicketTask();
         if ($fup->getFromDB($options['task_id'])) {
             if ($fup->fields['is_private']) {
                 $this->options['sendprivate'] = true;
             }
         }
     }
 }
 /**
  * @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);
     // For compatibility
     $this->options['sendprivate'] = true;
 }