Differential D25079 Diff 355 src/applications/project/trigger/PhabricatorProjectTriggerPlaySoundRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/trigger/PhabricatorProjectTriggerPlaySoundRule.php
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | return array( | ||||
'bing' => array( | 'bing' => array( | ||||
'name' => pht('Bing'), | 'name' => pht('Bing'), | ||||
'uri' => celerity_get_resource_uri('/rsrc/audio/basic/bing.mp3'), | 'uri' => celerity_get_resource_uri('/rsrc/audio/basic/bing.mp3'), | ||||
), | ), | ||||
'glass' => array( | 'glass' => array( | ||||
'name' => pht('Glass'), | 'name' => pht('Glass'), | ||||
'uri' => celerity_get_resource_uri('/rsrc/audio/basic/ting.mp3'), | 'uri' => celerity_get_resource_uri('/rsrc/audio/basic/ting.mp3'), | ||||
), | ), | ||||
'coin' => array( | |||||
'name' => pht('Coin'), | |||||
'uri' => celerity_get_resource_uri('/rsrc/audio/basic/coin.mp3'), | |||||
), | |||||
); | ); | ||||
} | } | ||||
public function getSoundEffects() { | public function getSoundEffects() { | ||||
$value = $this->getValue(); | $value = $this->getValue(); | ||||
$map = self::getSoundMap(); | $map = self::getSoundMap(); | ||||
$spec = idx($map, $value, array()); | $spec = idx($map, $value, array()); | ||||
Show All 10 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0