src/Entity/XiboClock.php
public function edit($name, $duration, $useDuration, $themeId, $clockTypeId, $offset, $format, $showSeconds, $clockFace, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->themeId = $themeId;
        $this->clockTypeId = $clockTypeId;
        $this->offset = $offset;
        $this->format = $format;
        $this->showSeconds = $showSeconds;
        $this->clockFace = $clockFace;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit($name, $duration, $useDuration, $themeId, $clockTypeId, $offset, $format, $showSeconds, $clockFace, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->themeId = $themeId;
        $this->clockTypeId = $clockTypeId;
        $this->offset = $offset;
        $this->format = $format;
        $this->showSeconds = $showSeconds;
        $this->clockFace = $clockFace;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit ( $ name , $ duration , $ useDuration , $ themeId , $ clockTypeId , $ offset , $ format , $ showSeconds , $ clockFace , $ widgetId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> themeId = $ themeId ; $ this -> clockTypeId = $ clockTypeId ; $ this -> offset = $ offset ; $ this -> format = $ format ; $ this -> showSeconds = $ showSeconds ; $ this -> clockFace = $ clockFace ; $ this -> widgetId = $ widgetId ; $ this -> getLogger ( ) -> info ( 'Editing widget ID ' . $ widgetId ) ; $ response = $ this -> doPut ( '/playlist/widget/' . $ widgetId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Edit the Clock widget.

@param string $name widget name
@param int $duration widget duration
@param int $useDuration flag (0, 1) set to 1 if the duration parameter is passed as well
@param int $themeId For Analogue clock, light and dark themes
@param int $clockTypeId Type of the clock 1- Analogue, 2- Digital, 3- Flip Clock
@param string $offset The offset in minutes that should be applied to the current time, if a counter is selected then date/time to run from in format Y-m-d H:i:s
@param string $format For digital clock, format in which the time should be displayed
@param int $showSeconds For Flip Clock, should the clock show seconds or not
@param string $clockFace For Flip Clock, supported options are: TwelveHourClock, TwentyFourHourClock, DailyCounter, HourlyCounter, MinuteCounter
@param int $widgetId Widget Id to Edit
@return XiboClock
Edit the Clock widget .