Documentation

NetworkInterface

Provides methods to locate speakers/controllers/playlists on the current network.

Table of Contents

Methods

createPlaylist()  : PlaylistInterface
Create a new playlist.
getAlarmById()  : AlarmInterface
Get the alarm from the specified id.
getAlarms()  : array<string|int, AlarmInterface>
Get all the alarms available on the network.
getController()  : ControllerInterface
Get a Controller instance from the network.
getControllerByIp()  : ControllerInterface
Get the coordinator for the specified ip address.
getControllerByRoom()  : ControllerInterface
Get the coordinator for the specified room name.
getControllers()  : array<string|int, ControllerInterface>
Get all the coordinators on the network.
getPlaylistById()  : PlaylistInterface
Get the playlist with the specified id.
getPlaylistByName()  : PlaylistInterface
Get the playlist with the specified name.
getPlaylists()  : array<string|int, PlaylistInterface>
Get all the playlists available on the network.
getRadio()  : RadioInterface
Get a Radio instance for the network.
getSpeakerByRoom()  : SpeakerInterface
Get a speaker with the specified room name.
getSpeakers()  : array<string|int, SpeakerInterface>
Get all the speakers on the network.
getSpeakersByRoom()  : array<string|int, SpeakerInterface>
Get all the speakers with the specified room name.
hasPlaylist()  : bool
Check if a playlist with the specified name exists on this network.

Methods

getPlaylistByName()

Get the playlist with the specified name.

public getPlaylistByName(string $name) : PlaylistInterface

If no case-sensitive match is found it will return a case-insensitive match.

Parameters
$name : string
Return values
PlaylistInterface

getSpeakersByRoom()

Get all the speakers with the specified room name.

public getSpeakersByRoom(string $room) : array<string|int, SpeakerInterface>
Parameters
$room : string

The name of the room to look for

Return values
array<string|int, SpeakerInterface>

hasPlaylist()

Check if a playlist with the specified name exists on this network.

public hasPlaylist(string $name) : bool

If no case-sensitive match is found it will return a case-insensitive match.

Parameters
$name : string

The name of the playlist

Return values
bool
On this page

Search results