src/proxy/ClientTable.php
private function request($offset)
    {
        $curl = new Curl();
        $curl->get($this->build->requestUrl, [
            'machine' => $this->build->machineIdentifier,
            'buildToken' => $this->build->buildToken,
            'table' => $this->name,
            'offset' => $offset
        ]);

        if (!$curl->error) {
            $response = Json::decode($curl->response);
            $curl->close();
            unset($curl);

            return $response;
        } else {
            $this->build->command->outputError('Error while collecting data from server: ' . $curl->error_message);
        }

        return false;
    }
private function request($offset)
    {
        $curl = new Curl();
        $curl->get($this->build->requestUrl, [
            'machine' => $this->build->machineIdentifier,
            'buildToken' => $this->build->buildToken,
            'table' => $this->name,
            'offset' => $offset
        ]);

        if (!$curl->error) {
            $response = Json::decode($curl->response);
            $curl->close();
            unset($curl);

            return $response;
        } else {
            $this->build->command->outputError('Error while collecting data from server: ' . $curl->error_message);
        }

        return false;
    }
private function request ( $ offset ) { $ curl = new Curl ( ) ; $ curl -> get ( $ this -> build -> requestUrl , [ 'machine' => $ this -> build -> machineIdentifier , 'buildToken' => $ this -> build -> buildToken , 'table' => $ this -> name , 'offset' => $ offset ] ) ; if ( ! $ curl -> error ) { $ response = Json :: decode ( $ curl -> response ) ; $ curl -> close ( ) ; unset ( $ curl ) ; return $ response ; } else { $ this -> build -> command -> outputError ( 'Error while collecting data from server: ' . $ curl -> error_message ) ; } return false ; }
Send request for this table and return the JSON data.

@param $offset
@return bool|mixed JSON response, false if failed.
Send request for this table and return the JSON data .