src/Entity/XiboFinance.php
public function create($templateId, $name, $duration, $useDuration, $item, $effect, $speed, $backgroundColor, $noRecordsMessage, $dateFormat, $updateInterval, $durationIsPerItem, $overrideTemplate, $yql, $resultIdentifier, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->overrideTemplate = 0;
        $this->templateId = $templateId;
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->item = $item;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->backgroundColor = $backgroundColor;
        $this->noRecordsMessage = $noRecordsMessage;
        $this->dateFormat = $dateFormat;
        $this->updateInterval = $updateInterval;
        $this->durationIsPerItem = $durationIsPerItem;
        $this->overrideTemplate = $overrideTemplate;
        $this->yql = $yql;
        $this->resultIdentifier = $resultIdentifier;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Finance widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/finance/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($templateId, $name, $duration, $useDuration, $item, $effect, $speed, $backgroundColor, $noRecordsMessage, $dateFormat, $updateInterval, $durationIsPerItem, $overrideTemplate, $yql, $resultIdentifier, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->overrideTemplate = 0;
        $this->templateId = $templateId;
        $this->name = $name;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->item = $item;
        $this->effect = $effect;
        $this->speed = $speed;
        $this->backgroundColor = $backgroundColor;
        $this->noRecordsMessage = $noRecordsMessage;
        $this->dateFormat = $dateFormat;
        $this->updateInterval = $updateInterval;
        $this->durationIsPerItem = $durationIsPerItem;
        $this->overrideTemplate = $overrideTemplate;
        $this->yql = $yql;
        $this->resultIdentifier = $resultIdentifier;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Finance widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/finance/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ templateId , $ name , $ duration , $ useDuration , $ item , $ effect , $ speed , $ backgroundColor , $ noRecordsMessage , $ dateFormat , $ updateInterval , $ durationIsPerItem , $ overrideTemplate , $ yql , $ resultIdentifier , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> overrideTemplate = 0 ; $ this -> templateId = $ templateId ; $ this -> name = $ name ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> item = $ item ; $ this -> effect = $ effect ; $ this -> speed = $ speed ; $ this -> backgroundColor = $ backgroundColor ; $ this -> noRecordsMessage = $ noRecordsMessage ; $ this -> dateFormat = $ dateFormat ; $ this -> updateInterval = $ updateInterval ; $ this -> durationIsPerItem = $ durationIsPerItem ; $ this -> overrideTemplate = $ overrideTemplate ; $ this -> yql = $ yql ; $ this -> resultIdentifier = $ resultIdentifier ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating Finance widget in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/finance/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create Finance Widget.

@param string $templateId Use pre-configured templates, available options: currency-simple, stock-simple
@param string $name Widget Name
@param int $duration Widget Duration
@param int $useDuration Flag Select 1 only if you will provide duration parameter as well
@param string $item Items wanted, can be comma separated (example EURUSD, GBPUSD)
@param string $effect Effect that will be used to transitions between items, available options: fade, fadeout, scrollVert, scollHorz, flipVert, flipHorz, shuffle, tileSlide, tileBlind, marqueeUp, marqueeDown, marqueeRight, marqueeLeft
@param int $speed The transition speed of the selected effect in milliseconds (1000 = normal) or the Marquee speed in a low to high scale (normal = 1)
@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 $durationIsPerItem Flag The duration specified is per item, otherwise the widget duration is divided between the number of items
@param int $overrideTemplate flag (0, 1) set to 0 and use templateId or set to 1 and provide whole template in the next parameters
@param string $yql The YQL query to use for data, pass only with overrideTemplate set to 1
@param string $resultIdentifier The name of the result identifier returned by the YQL, pass only with overrideTemplate set to 1
@param int $playlistId Playlist ID
@return XiboFinance
Create Finance Widget .