PHP Класс duncan3dc\Sonos\State

Наследование: extends duncan3dc\Sonos\Tracks\Track
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$duration string The duration of the currently active track (hh:mm:ss).
$position string The position of the currently active track (hh:mm:ss).
$queueNumber integer The zero-based number of the track in the queue.
$stream string | null The name of the stream currently currently playing (or null if we are not on a stream).
$trackNumber integer The number of the track on it's album.

Открытые методы

Метод Описание
__construct ( $uri = null ) Create a Track object.
createFromXml ( duncan3dc\DomParser\XmlElement $xml, Controller $controller ) : static Update the track properties using an xml element.

Описание методов

__construct() публичный Метод

Create a Track object.
public __construct ( $uri = null )

createFromXml() публичный статический Метод

Update the track properties using an xml element.
public static createFromXml ( duncan3dc\DomParser\XmlElement $xml, Controller $controller ) : static
$xml duncan3dc\DomParser\XmlElement The xml element representing the track meta data.
$controller Controller A controller instance on the playlist's network
Результат static

Описание свойств

$duration публичное свойство

The duration of the currently active track (hh:mm:ss).
public string $duration
Результат string

$position публичное свойство

The position of the currently active track (hh:mm:ss).
public string $position
Результат string

$queueNumber публичное свойство

The zero-based number of the track in the queue.
public int $queueNumber
Результат integer

$stream публичное свойство

The name of the stream currently currently playing (or null if we are not on a stream).
public string|null $stream
Результат string | null

$trackNumber публичное свойство

The number of the track on it's album.
public int $trackNumber
Результат integer