src/Entity/XiboTicker.php
public function create($sourceId, $uri, $dataSetId, $duration, $useDuration, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->sourceId = $sourceId;
        $this->uri = $uri;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->dataSetId = $dataSetId;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Ticker widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/ticker/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($sourceId, $uri, $dataSetId, $duration, $useDuration, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->sourceId = $sourceId;
        $this->uri = $uri;
        $this->duration = $duration;
        $this->useDuration = $useDuration;
        $this->dataSetId = $dataSetId;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating Ticker widget in playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/ticker/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ sourceId , $ uri , $ dataSetId , $ duration , $ useDuration , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> sourceId = $ sourceId ; $ this -> uri = $ uri ; $ this -> duration = $ duration ; $ this -> useDuration = $ useDuration ; $ this -> dataSetId = $ dataSetId ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating Ticker widget in playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/ticker/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create new Ticker widget.

@param int $sourceId The Ticker source ID, 1 for rss feed, 2 for dataset
@param string $uri The Feed URI, For sourceId=1, the link for the rss feed
@param int $duration The Widget Duration
@param int $useDuration Flag indicating whether to use custom duration
@param int $dataSetId The DataSet ID for sourceId=2
@param int $playlistId The playlist ID
@return XiboTicker
Create new Ticker widget .