src/Entity/XiboDataSetView.php
public function create($dataSetId, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->dataSetId = $dataSetId;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating DataSet View widget and assigning it to playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/dataSetView/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create($dataSetId, $playlistId)
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->dataSetId = $dataSetId;
        $this->playlistId = $playlistId;
        $this->getLogger()->info('Creating DataSet View widget and assigning it to playlist ID ' . $playlistId);
        $response = $this->doPost('/playlist/widget/dataSetView/' . $playlistId , $this->toArray());

        return $this->hydrate($response);
    }
public function create ( $ dataSetId , $ playlistId ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> dataSetId = $ dataSetId ; $ this -> playlistId = $ playlistId ; $ this -> getLogger ( ) -> info ( 'Creating DataSet View widget and assigning it to playlist ID ' . $ playlistId ) ; $ response = $ this -> doPost ( '/playlist/widget/dataSetView/' . $ playlistId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create a new dataSetView widget.

@param int $dataSetId The dataSet ID to use as a source for dataSetView widget
@param int $playlistId The playlist ID to which this dataSetView widget should be added
@return XiboDataSetView
Create a new dataSetView widget .