3
* Spring Signage Ltd - http://www.springsignage.com
4
* Copyright (C) 2015 Spring Signage Ltd
5
* (ChangeLayoutAction.php)
12
class ChangeLayoutAction extends PlayerAction
16
public $downloadRequired;
20
* Set details for this layout
21
* @param int $layoutId the layoutId to change to
22
* @param int $duration the duration this layout should be shown
23
* @param bool|false $downloadRequired flag indicating whether a download is required before changing to the layout
24
* @param string $changeMode whether to queue or replace
27
public function setLayoutDetails($layoutId, $duration = 0, $downloadRequired = false, $changeMode = 'queue')
29
if ($duration === null)
32
$this->layoutId = $layoutId;
33
$this->duration = $duration;
34
$this->downloadRequired = $downloadRequired;
35
$this->changeMode = $changeMode;
40
public function getMessage()
42
$this->action = 'changeLayout';
44
if ($this->layoutId == 0)
45
throw new PlayerActionException('Layout Details not provided');
47
return $this->serializeToJson(['layoutId', 'duration', 'downloadRequired', 'changeMode']);
b'\\ No newline at end of file'