knowledgeroot file manager that handle file contents

 Methods

constructor

__construct() 

delete file with hash

deleteContent(string $fileHash) : bool

Parameters

$fileHash

string

Returns

bool

get content from file with given hash

getContent(string $fileHash) : string

Parameters

$fileHash

string

Returns

stringfile content

create absolut filename from hash

getFilename(string $hash) : string

Parameters

$hash

string

Returns

stringfilename

saveContent()

saveContent(\type $content) : string

Parameters

$content

\type

Returns

stringreturn file hash

get content from file

saveContentFromFile(\type $filename, $delete) : string

Parameters

$filename

\type

$delete

Returns

stringreturn file hash

init datastore

initDatastore()