Documentation

ThreeDObject
in package

Description of ThreeDObject

Tags
author

nczirjak

Table of Contents

Properties

$allowedExtension  : mixed
$client  : mixed
$result  : mixed
$tmpDir  : mixed

Methods

__construct()  : mixed
downloadFile()  : array<string|int, mixed>
Download the 3d model
checkTmpDirExists()  : mixed
Create the main dir if not exists
createFileTmpDir()  : mixed
Create the file temp dir
doTheRequest()  : mixed
Send the request to download the 3d file into the server
getHeaderData()  : array<string|int, mixed>
get the filename and extension
setTmpDir()  : void
writeFileContent()  : mixed
Save the 3d file content

Properties

$allowedExtension

private mixed $allowedExtension = array("ply", "nxs")

Methods

downloadFile()

Download the 3d model

public downloadFile(string $repoUrl, string $tmpDir) : array<string|int, mixed>
Parameters
$repoUrl : string
$tmpDir : string
Return values
array<string|int, mixed>

checkTmpDirExists()

Create the main dir if not exists

private checkTmpDirExists() : mixed
Tags
throws
Exception

createFileTmpDir()

Create the file temp dir

private createFileTmpDir(string $filename) : mixed
Parameters
$filename : string
Tags
throws
Exception

doTheRequest()

Send the request to download the 3d file into the server

private doTheRequest(string $repoUrl) : mixed
Parameters
$repoUrl : string

getHeaderData()

get the filename and extension

private getHeaderData(array<string|int, mixed> $cd) : array<string|int, mixed>
Parameters
$cd : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

setTmpDir()

private setTmpDir(string $tmpDir) : void
Parameters
$tmpDir : string

writeFileContent()

Save the 3d file content

private writeFileContent(type $body, string $filename) : mixed
Parameters
$body : type
$filename : string

        
On this page

Search results