src/Entity/XiboDataSet.php
public function copy($dataSetId, $dataSet, $description = '', $code ='')
    {
        $this->dataSetId = $dataSetId;
        $this->dataSet = $dataSet;
        $this->description = $description;
        $this->code = $code;

        $this->getLogger()->info('Copy dataSet ID ' . $dataSetId);
        $response = $this->doPost('/dataset/copy/' . $dataSetId, $this->toArray());

        return $this->hydrate($response);
    }
public function copy($dataSetId, $dataSet, $description = '', $code ='')
    {
        $this->dataSetId = $dataSetId;
        $this->dataSet = $dataSet;
        $this->description = $description;
        $this->code = $code;

        $this->getLogger()->info('Copy dataSet ID ' . $dataSetId);
        $response = $this->doPost('/dataset/copy/' . $dataSetId, $this->toArray());

        return $this->hydrate($response);
    }
public function copy ( $ dataSetId , $ dataSet , $ description = '' , $ code = '' ) { $ this -> dataSetId = $ dataSetId ; $ this -> dataSet = $ dataSet ; $ this -> description = $ description ; $ this -> code = $ code ; $ this -> getLogger ( ) -> info ( 'Copy dataSet ID ' . $ dataSetId ) ; $ response = $ this -> doPost ( '/dataset/copy/' . $ dataSetId , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Copy DataSet.

@param int $dataSetId Id of the dataSet to copy
@param string $dataSet Name of the copied dataSet
@param string $description Description of the copied dataSet
@param string $code Code for the new dataSet
@return XiboDataSet
Copy DataSet .