public function getRequestByOffset( $offset ) {
		$reqs = glob($this->tmpDir . DIRECTORY_SEPARATOR . 'request.*');
		natsort($reqs);

		$item = array_slice($reqs, $offset, 1);
		if( !$item ) {
			return null;
		}

		$path    = reset($item);
		$content = file_get_contents($path);
		$data    = @unserialize($content);
		if( $data instanceof RequestInfo ) {
			return $data;
		}

		return null;
	}
public function getRequestByOffset( $offset ) {
		$reqs = glob($this->tmpDir . DIRECTORY_SEPARATOR . 'request.*');
		natsort($reqs);

		$item = array_slice($reqs, $offset, 1);
		if( !$item ) {
			return null;
		}

		$path    = reset($item);
		$content = file_get_contents($path);
		$data    = @unserialize($content);
		if( $data instanceof RequestInfo ) {
			return $data;
		}

		return null;
	}
public function getRequestByOffset ( $ offset ) { $ reqs = glob ( $ this -> tmpDir . DIRECTORY_SEPARATOR . 'request.*' ) ; natsort ( $ reqs ) ; $ item = array_slice ( $ reqs , $ offset , 1 ) ; if ( ! $ item ) { return null ; } $ path = reset ( $ item ) ; $ content = file_get_contents ( $ path ) ; $ data = @ unserialize ( $ content ) ; if ( $ data instanceof RequestInfo ) { return $ data ; } return null ; }
Get request by offset

If offset is non-negative, the request will be the index from the start of the server.
If offset is negative, the request will be that from the end of the requests.

@param int $offset
@return RequestInfo|null
Get request by offset