Page MenuHomec4science

ConpherenceRoomSettings.php
No OneTemporary

File Metadata

Created
Wed, Feb 12, 05:54

ConpherenceRoomSettings.php

<?php
final class ConpherenceRoomSettings extends ConpherenceConstants {
const SOUND_RECEIVE = 'receive';
const SOUND_MENTION = 'mention';
const DEFAULT_RECEIVE_SOUND = 'tap';
const DEFAULT_MENTION_SOUND = 'alert';
const DEFAULT_NO_SOUND = 'none';
const COLOR_LIGHT = 'light';
const COLOR_BLUE = 'blue';
const COLOR_INDIGO = 'indigo';
const COLOR_PEACH = 'peach';
const COLOR_GREEN = 'green';
const COLOR_PINK = 'pink';
public static function getSoundMap() {
return array(
'none' => array(
'name' => pht('No Sound'),
'rsrc' => '',
),
'alert' => array(
'name' => pht('Alert'),
'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/alert.mp3'),
),
'bing' => array(
'name' => pht('Bing'),
'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/bing.mp3'),
),
'pock' => array(
'name' => pht('Pock'),
'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/pock.mp3'),
),
'tap' => array(
'name' => pht('Tap'),
'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/tap.mp3'),
),
'ting' => array(
'name' => pht('Ting'),
'rsrc' => celerity_get_resource_uri('/rsrc/audio/basic/ting.mp3'),
),
);
}
public static function getDropdownSoundMap() {
$map = self::getSoundMap();
return ipull($map, 'name');
}
public static function getThemeMap() {
return array(
self::COLOR_LIGHT => pht('Light'),
self::COLOR_BLUE => pht('Blue'),
self::COLOR_INDIGO => pht('Indigo'),
self::COLOR_PEACH => pht('Peach'),
self::COLOR_GREEN => pht('Green'),
self::COLOR_PINK => pht('Pink'),
);
}
public static function getThemeClass($theme) {
return 'conpherence-theme-'.$theme;
}
}

Event Timeline