src/Entity/XiboCurrencies.php
public function create($templateId, $name, $duration, $useDuration, $base, $items, $reverseConversion, $effect, $speed, $backgroundColor, $noRecordsMessage, $dateFormat, $updateInterval, $durationIsPerPage, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->overrideTemplate = 0;
        $this->templateId = $templateId;
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->base = $base;
        $this->items = $items;
        $this->reverseConversion = $reverseConversion;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->backgroundColor = $backgroundColor;
        $this->noRecordsMessage = $noRecordsMessage;
        $this->dateFormat = $dateFormat;
        $this->updateInterval = $updateInterval;
        $this->durationIsPerPage = $durationIsPerPage;
        $this->playlistId = $playlistId;

        $this->getLogger()->info('Creating Currencies widget and assigning it to playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/currencies/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($templateId, $name, $duration, $useDuration, $base, $items, $reverseConversion, $effect, $speed, $backgroundColor, $noRecordsMessage, $dateFormat, $updateInterval, $durationIsPerPage, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->overrideTemplate = 0;
        $this->templateId = $templateId;
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->base = $base;
        $this->items = $items;
        $this->reverseConversion = $reverseConversion;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->backgroundColor = $backgroundColor;
        $this->noRecordsMessage = $noRecordsMessage;
        $this->dateFormat = $dateFormat;
        $this->updateInterval = $updateInterval;
        $this->durationIsPerPage = $durationIsPerPage;
        $this->playlistId = $playlistId;

        $this->getLogger()->info('Creating Currencies widget and assigning it to playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/currencies/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ templateId , $ name , $ duration , $ useDuration , $ base , $ items , $ reverseConversion , $ effect , $ speed , $ backgroundColor , $ noRecordsMessage , $ dateFormat , $ updateInterval , $ durationIsPerPage , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> overrideTemplate = 0 ; $ this -> templateId = $ templateId ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> base = $ base ; $ this -> items = $ items ; $ this -> reverseConversion = $ reverseConversion ; $ this -> effect = $ effect ; $ this -> speed = $ speed ; $ this -> backgroundColor = $ backgroundColor ; $ this -> noRecordsMessage = $ noRecordsMessage ; $ this -> dateFormat = $ dateFormat ; $ this -> updateInterval = $ updateInterval ; $ this -> durationIsPerPage = $ durationIsPerPage ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating Currencies widget and assigning it to playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/currencies/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create Currencies Widget.

@param string $templateId The template ID, currencies1, currencies2
@param string $name Optional widget name
@param int $duration Widget Duration
@param int $useDuration Flag  Select 1 only if you will provide duration parameter as well
@param string $base The base currency
@param string $items The comma separated string of wanted items
@param int $reverseConversion Flag Select 1 if you’d like your base currency to be used as the comparison currency you’ve entered
@param string $effect Effect that will be used to transitions between items, available options: fade, fadeout, scrollVert, scollHorz, flipVert, flipHorz, shuffle, tileSlide, tileBlind
@param int $speed The transition speed of the selected effect in milliseconds (1000 = normal)
@param string $backgroundColor A HEX color to use as the background color of this widget
@param string $noRecordsMessage A message to display when there are no records returned by the search query
@param string $dateFormat The format to apply to all dates returned by he widget
@param int $updateInterval Update interval in minutes, should be kept as high as possible, if data change once per hour, this should be set to 60
@param int $durationIsPerPage Flag The duration specified is per page/item, otherwise the widget duration is divided between the number of pages/items
@param int $playlistId The Playlist ID
@return XiboCurrencies
Create Currencies Widget .