public addTarget ( $target = '', $label = '', $type = Notification::USER_TYPE ) | ||
$target | (default '') | |
$label | (default '') | |
$type | (=Notification::USER_TYPE) |
function addTarget($target = '', $label = '', $type = Notification::USER_TYPE)
{
$key = $type . '_' . $target;
// Value used for sort
$this->notification_targets[$key] = $type . '_' . $label;
// Displayed value
$this->notification_targets_labels[$type][$target] = $label;
}