CollectionBinariesObject
extends MainObject
in package
Description of CollectionBinariesObject
Tags
Table of Contents
Properties
- $model : mixed
- $repoDb : mixed
- $repoid : mixed
- $result : mixed
- $siteLang : mixed
- $collectionDate : mixed
- $collectionTmpDir : mixed
- $repoUrl : mixed
- $tmpDir : mixed
- $turtle : mixed
Methods
- __construct() : mixed
- collectionDownloadFiles() : mixed
- Download the selected binaries
- getData() : array<string|int, mixed>
- init() : string
- turtleDissService() : type
- Create turtle file from the resource
- createModel() : void
- collectionCreateDlDirectory() : string
- Setup the collection directory for the downloads
- collectionGetTurtle() : bool
- Get the turtle file and copy it to the collection download directory
- collectionRemoveTempFiles() : mixed
- Remove the files from the collections directory
- collectionTarFiles() : bool
- TAR the downloaded collection files
- createCollectionDir() : string
- Create the directory for the collection
- createFileNameForCollectionDownload() : string
- Remove the white spaces from the filename
- createPathString() : string
- We have to remove the special chars from the path string
- createTarFileName() : string
- Create the filename
- setTmpDir() : mixed
- update TmpDir value
Properties
$model
protected
mixed
$model
$repoDb
protected
mixed
$repoDb
$repoid
protected
mixed
$repoid
$result
protected
mixed
$result
= array()
$siteLang
protected
mixed
$siteLang
= "en"
$collectionDate
private
mixed
$collectionDate
$collectionTmpDir
private
mixed
$collectionTmpDir
$repoUrl
private
mixed
$repoUrl
$tmpDir
private
mixed
$tmpDir
$turtle
private
mixed
$turtle
Methods
__construct()
public
__construct() : mixed
collectionDownloadFiles()
Download the selected binaries
public
collectionDownloadFiles(array<string|int, mixed> $binaries[, string $username = '' ][, string $password = '' ]) : mixed
Parameters
- $binaries : array<string|int, mixed>
- $username : string = ''
- $password : string = ''
getData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>init()
public
init(array<string|int, mixed> $binaries, string $repoid[, string $username = "" ][, string $password = "" ]) : string
Parameters
- $binaries : array<string|int, mixed>
- $repoid : string
- $username : string = ""
- $password : string = ""
Return values
stringturtleDissService()
Create turtle file from the resource
public
turtleDissService() : type
Return values
typecreateModel()
protected
createModel() : void
collectionCreateDlDirectory()
Setup the collection directory for the downloads
private
collectionCreateDlDirectory() : string
Return values
stringcollectionGetTurtle()
Get the turtle file and copy it to the collection download directory
private
collectionGetTurtle(string $repoid) : bool
Parameters
- $repoid : string
Return values
boolcollectionRemoveTempFiles()
Remove the files from the collections directory
private
collectionRemoveTempFiles() : mixed
collectionTarFiles()
TAR the downloaded collection files
private
collectionTarFiles() : bool
Return values
boolcreateCollectionDir()
Create the directory for the collection
private
createCollectionDir(string $path) : string
Parameters
- $path : string
Return values
stringcreateFileNameForCollectionDownload()
Remove the white spaces from the filename
private
createFileNameForCollectionDownload(string $filename) : string
Parameters
- $filename : string
Return values
stringcreatePathString()
We have to remove the special chars from the path string
private
createPathString(string $path) : string
Parameters
- $path : string
Return values
stringcreateTarFileName()
Create the filename
private
createTarFileName(string $ext, string $d) : string
Parameters
- $ext : string
- $d : string
Return values
stringsetTmpDir()
update TmpDir value
private
setTmpDir() : mixed