Add X, Y, Z notification types for customization

This commit is contained in:
Kijin Sung 2016-07-24 17:49:23 +09:00
parent 679d4af0c6
commit 3245c3ae46

View file

@ -328,6 +328,26 @@ class ncenterliteModel extends ncenterlite
$type = $lang->ncenterlite_type_test;
break;
// Custom string.
case 'X':
return $notification->target_body;
// Custom language.
case 'Y':
return $lang->{$notification->target_body};
// Custom language with string interpolation.
case 'Z':
return vsprintf($lang->{$notification->target_body}, array(
$notification->target_member_srl, // %1$d
$notification->target_nick_name, // %2$s
$notification->target_user_id, // %3$s
$notification->target_email_address, // %4$s
$notification->target_browser, // %5$s
$notification->target_summary, // %6$s
$notification->target_url, // %7$s
));
// Other.
case 'U':
default: