NotificationTargetCommonITILObject::__construct PHP Method

__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);
        // For compatibility
        $this->options['sendprivate'] = true;
    }

Usage Example

コード例 #1
0
 /**
  * @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'];
     }
 }
All Usage Examples Of NotificationTargetCommonITILObject::__construct