src/Entity/XiboGoogleTraffic.php
public function create($name, $duration, $useDuration, $useDisplayLocation, $longitude, $latitude, $zoom, $playlistId)
    {
        $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->playlistId = $playlistId;
        $this->getLogger()->info('Creating Google Traffic widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/googleTraffic/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($name, $duration, $useDuration, $useDisplayLocation, $longitude, $latitude, $zoom, $playlistId)
    {
        $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->playlistId = $playlistId;
        $this->getLogger()->info('Creating Google Traffic widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/googleTraffic/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ name , $ duration , $ useDuration , $ useDisplayLocation , $ longitude , $ latitude , $ zoom , $ playlistId ) { $ 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 -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating Google Traffic widget in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/googleTraffic/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create 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 $playlistId Playlist ID
@return XiboGoogleTraffic
Create Google Traffic Widget .