Return the path to a sound, using the default sound if the sound does
not exist in the current theme.
public static sound ( string $name = null, mixed $options = [] ) : Horde_Themes_Sound | ||
$name | string | The sound name. If null, will return the sound directory. |
$options | mixed | Additional options. If a string, is taken to be the 'app' parameter. If an array, the following options are available: - app: (string) Use this application instead of the current app. - nohorde: (boolean) If true, do not fallback to horde for sound. - noview: (boolean) If true, do not load images from view-specific directories. (Since 2.4.0) - theme: (string) Use this theme instead of the Horde default. |
return | Horde_Themes_Sound | An object which contains the URI and filesystem location of the sound. |