src/Entity/XiboGoogleTraffic.php
public function edit($name, $duration, $useDuration, $useDisplayLocation, $longitude, $latitude, $zoom, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->useDisplayLocation = $useDisplayLocation;
        $this->longitude = $longitude;
        $this->latitude = $latitude;
        $this->zoom = $zoom;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing Google Traffic widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit($name, $duration, $useDuration, $useDisplayLocation, $longitude, $latitude, $zoom, $widgetId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->useDisplayLocation = $useDisplayLocation;
        $this->longitude = $longitude;
        $this->latitude = $latitude;
        $this->zoom = $zoom;
        $this->widgetId = $widgetId;
        $this->getLogger()->info('Editing Google Traffic widget ID ' . $widgetId);
        $response = $this->doPut('/playlist/widget/' . $widgetId , $this->toArray());

        return $this->hydrate($response);
    }
public function edit ( $ name , $ duration , $ useDuration , $ useDisplayLocation , $ longitude , $ latitude , $ zoom , $ widgetId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> useDisplayLocation = $ useDisplayLocation ; $ this -> longitude = $ longitude ; $ this -> latitude = $ latitude ; $ this -> zoom = $ zoom ; $ this -> widgetId = $ widgetId ; $ this -> getLogger ( ) -> info ( 'Editing Google Traffic widget ID ' . $ widgetId ) ; $ response = $ this -> doPut ( '/playlist/widget/' . $ widgetId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Edit Google Traffic widget
@param string $name Optional widget name
@param int $duration Widget Duration
@param int $useDuration Flag indicating whether to use custom duration
@param int $useDisplayLocation Flag Use the location configured on the Display?
@param double $longitude The longitude for this Google Traffic widget, only pass if useDisplayLocation set to 0
@param double $latitude he latitude for this Google Traffic widget, only pass if useDisplayLocation set to 0
@param int $zoom How far should the map be zoomed in? The higher the value the closer the zoom, 1 represents the entire globe
@param int $widgetId Widget ID
@return XiboGoogleTraffic
Edit Google Traffic widget