Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105856886
ConpherenceRoomSettings.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Mar 20, 07:40
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Mar 22, 07:40 (2 d)
Engine
blob
Format
Raw Data
Handle
25061001
Attached To
rPH Phabricator
ConpherenceRoomSettings.php
View Options
<?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
Log In to Comment