mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 19:02:41 +01:00
23dc686045
Summary: Introduces a new settings panel for Conpherence specific settings. Test Plan: started a thread with a test user, thus two participants total. Replied to conpherence, toggling notification settings in between. Verified 1 or 2 emails were sent as appropos to the current toggle. Toggled global setting and verified setting was updated in conpherences where nothing was specified. Verified setting conpherence setting overrides global setting. Reviewers: epriestley, chad Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2521 Differential Revision: https://secure.phabricator.com/D5391
22 lines
474 B
PHP
22 lines
474 B
PHP
<?php
|
|
|
|
final class ConpherenceSettings extends ConpherenceConstants {
|
|
|
|
const EMAIL_ALWAYS = 0;
|
|
const NOTIFICATIONS_ONLY = 1;
|
|
|
|
public static function getHumanString($constant) {
|
|
$string = pht('Unknown setting.');
|
|
|
|
switch ($constant) {
|
|
case self::EMAIL_ALWAYS:
|
|
$string = pht('Email me every update.');
|
|
break;
|
|
case self::NOTIFICATIONS_ONLY:
|
|
$string = pht('Notifications only.');
|
|
break;
|
|
}
|
|
|
|
return $string;
|
|
}
|
|
}
|