NotificationTargetCommonITILObject::getFollowupAuthor PHP Method

getFollowupAuthor() public method

Get author related to the followup
public getFollowupAuthor ( $options = [] )
$options array
    function getFollowupAuthor($options = array())
    {
        global $DB;
        if (isset($options['followup_id'])) {
            $followuptable = getTableForItemType($this->obj->getType() . 'Followup');
            $query = $this->getDistinctUserSql() . "\n                  FROM `{$followuptable}`\n                  INNER JOIN `glpi_users`\n                        ON (`glpi_users`.`id` = `{$followuptable}`.`users_id`)" . $this->getProfileJoinSql() . "\n                  WHERE `{$followuptable}`.`id` = '" . $options['followup_id'] . "'";
            foreach ($DB->request($query) as $data) {
                $this->addToAddressesList($data);
            }
        }
    }