IconStorage
Table of Contents
-
ROOT_PATH
= 'menu_icon'
-
$filesystem
: Filesystem
-
__construct()
: mixed
-
deleteByNodeId()
: void
-
deleteFile()
: void
-
getFileList()
: DirectoryListing
-
save()
: string
-
generateIconPath()
: string
ROOT_PATH
private
mixed
ROOT_PATH
= 'menu_icon'
$filesystem
private
Filesystem
$filesystem
__construct()
public
__construct(Filesystem $filesystem) : mixed
Parameters
-
$filesystem
: Filesystem
-
Return values
mixed
—
deleteByNodeId()
public
deleteByNodeId(ObjectId $nodeId) : void
Parameters
-
$nodeId
: ObjectId
-
Return values
void
—
deleteFile()
public
deleteFile(string $path) : void
Parameters
-
$path
: string
-
Return values
void
—
getFileList()
public
getFileList() : DirectoryListing
-
throws
-
FilesystemException
Return values
DirectoryListing
—
save()
public
save(string $path, string $content) : string
Parameters
-
$path
: string
-
-
$content
: string
-
-
throws
-
FilesystemException
Return values
string
—
generateIconPath()
private
generateIconPath(string $path) : string
Parameters
-
$path
: string
-
Return values
string
—