class FolderManager (View source)

Methods

create()

Creates everything necessary to store files in folders.

FileFolder|null
getFolder(mixed $folderID)

Get a folder given its ID.

getRootFolder()

Get the root folder.

addFolder(GroupFolder $folder, string $name)

Create a new folder.

Details

Group create()

Creates everything necessary to store files in folders.

Return Value

Group

Exceptions

Exception

FileFolder|null getFolder(mixed $folderID)

Get a folder given its ID.

Parameters

mixed $folderID

Return Value

FileFolder|null

GroupFolder|null getRootFolder()

Get the root folder.

Return Value

GroupFolder|null

GroupFolder addFolder(GroupFolder $folder, string $name)

Create a new folder.

Parameters

GroupFolder $folder

The parent folder

string $name

The name of the new folder

Return Value

GroupFolder