src/Entity/XiboDataSet.php
public function create($name, $description, $code = '', $isRemote = 0, $method = '', $uri = '', $postData = '', $authentication = '', $username = '', $password = '', $refreshRate = null, $clearRate = null, $runsAfter = null, $dataRoot = '', $summarize = '', $summarizeField = '')
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->dataSet = $name;
        $this->description = $description;
        $this->code = $code;
        $this->isRemote = $isRemote;
        $this->method = $method;
        $this->uri = $uri;
        $this->postData = $postData;
        $this->authentication = $authentication;
        $this->username = $username;
        $this->password = $password;
        $this->refreshRate = $refreshRate;
        $this->clearRate = $clearRate;
        $this->runsAfter = $runsAfter;
        $this->dataRoot = $dataRoot;
        $this->summarize = $summarize;
        $this->summarizeField = $summarizeField;

        $this->getLogger()->info('Creating dataSet ' . $name);
        $response = $this->doPost('/dataset', $this->toArray());
        
        return $this->hydrate($response);
    }
public function create($name, $description, $code = '', $isRemote = 0, $method = '', $uri = '', $postData = '', $authentication = '', $username = '', $password = '', $refreshRate = null, $clearRate = null, $runsAfter = null, $dataRoot = '', $summarize = '', $summarizeField = '')
    {
        $this->userId = $this->getEntityProvider()->getMe()->getId();
        $this->dataSet = $name;
        $this->description = $description;
        $this->code = $code;
        $this->isRemote = $isRemote;
        $this->method = $method;
        $this->uri = $uri;
        $this->postData = $postData;
        $this->authentication = $authentication;
        $this->username = $username;
        $this->password = $password;
        $this->refreshRate = $refreshRate;
        $this->clearRate = $clearRate;
        $this->runsAfter = $runsAfter;
        $this->dataRoot = $dataRoot;
        $this->summarize = $summarize;
        $this->summarizeField = $summarizeField;

        $this->getLogger()->info('Creating dataSet ' . $name);
        $response = $this->doPost('/dataset', $this->toArray());
        
        return $this->hydrate($response);
    }
public function create ( $ name , $ description , $ code = '' , $ isRemote = 0 , $ method = '' , $ uri = '' , $ postData = '' , $ authentication = '' , $ username = '' , $ password = '' , $ refreshRate = null , $ clearRate = null , $ runsAfter = null , $ dataRoot = '' , $ summarize = '' , $ summarizeField = '' ) { $ this -> userId = $ this -> getEntityProvider ( ) -> getMe ( ) -> getId ( ) ; $ this -> dataSet = $ name ; $ this -> description = $ description ; $ this -> code = $ code ; $ this -> isRemote = $ isRemote ; $ this -> method = $ method ; $ this -> uri = $ uri ; $ this -> postData = $ postData ; $ this -> authentication = $ authentication ; $ this -> username = $ username ; $ this -> password = $ password ; $ this -> refreshRate = $ refreshRate ; $ this -> clearRate = $ clearRate ; $ this -> runsAfter = $ runsAfter ; $ this -> dataRoot = $ dataRoot ; $ this -> summarize = $ summarize ; $ this -> summarizeField = $ summarizeField ; $ this -> getLogger ( ) -> info ( 'Creating dataSet ' . $ name ) ; $ response = $ this -> doPost ( '/dataset' , $ this -> toArray ( ) ) ; return $ this -> hydrate ( $ response ) ; }
Create the DataSet.

@param string $name New name for the dataSet
@param string $description New Description for the dataSet
@param string $code New code for this DataSet
@param int $isRemote Flag (0, 1) is this remote DataSet?
@param string $method For isRemote=1, The Request Method GET or POST
@param string $uri For isRemote=1, The URI, without query parameters
@param string $postData For isRemote=1, Query parameter encoded data to add to the request
@param string $authentication For isRemote=1, HTTP Authentication method None|Basic|Digest
@param string $username for isRemote=1, HTTP Authentication User Name
@param string $password for isRemote=1, HTTP Authentication Password
@param int $refreshRate for isRemote=1, How often in seconds should this remote DataSet be refreshed
@param int $clearRate for isRemote=1, How often in seconds should this remote DataSet be truncated
@param int $runsAfter for isRemote=1, Optional dataSetId which should be run before this remote DataSet
@param string $dataRoot for isRemote=1, The root of the data in the Remote source which is used as the base for all remote columns
@param string $summarize for isRemote=1, Should the data be aggregated? None|Summarize|Count
@param string $summarizeField for isRemote=1, Which field should be used to summarize
@return XiboDataSet
Create the DataSet .