Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890386
ConpherenceRoomSettings.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:28 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125077
Default Alt Text
ConpherenceRoomSettings.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment