Beta version

class FolderHandler

Handle operations with folders entities.

Methods

getFolder()

No description

$this
setFolder(Folder $folder)

No description

__construct(Folder $folder)

Create a new folder handler with folder to handle.

$this
removeWithChildrenAndAssociations()

Remove current folder with its children recursively and its associations.

Folder[]
getParents()

Return every folder’s parents.

string
getFullPath()

Get folder full path using folder names.

int
cleanPositions()

Clean position for current folder siblings.

int
cleanChildrenPositions()

Reset current folder children positions.

static int
cleanRootFoldersPositions()

Reset every root folders positions.

Details

at line 45
Folder getFolder()

Return Value

Folder

at line 55
$this setFolder(Folder $folder)

Parameters

Folder $folder

Return Value

$this

at line 66
__construct(Folder $folder)

Create a new folder handler with folder to handle.

Parameters

Folder $folder

at line 91
$this removeWithChildrenAndAssociations()

Remove current folder with its children recursively and its associations.

Return Value

$this

at line 110
Folder[] getParents()

Return every folder’s parents.

Return Value

Folder[]

at line 132
string getFullPath()

Get folder full path using folder names.

Return Value

string

at line 151
int cleanPositions()

Clean position for current folder siblings.

Return Value

int Return the next position after the last folder

at line 165
int cleanChildrenPositions()

Reset current folder children positions.

Return Value

int Return the next position after the last folder

at line 184
static int cleanRootFoldersPositions()

Reset every root folders positions.

Return Value

int Return the next position after the last folder