class FolderHandler (View source)

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

Folder getFolder()

Return Value

Folder

$this setFolder(Folder $folder)

Parameters

Folder $folder

Return Value

$this

__construct(Folder $folder)

Create a new folder handler with folder to handle.

Parameters

Folder $folder

$this removeWithChildrenAndAssociations()

Remove current folder with its children recursively and its associations.

Return Value

$this

Folder[] getParents()

Return every folder’s parents.

Return Value

Folder[]

string getFullPath()

Get folder full path using folder names.

Return Value

string

int cleanPositions()

Clean position for current folder siblings.

Return Value

int Return the next position after the last folder

int cleanChildrenPositions()

Reset current folder children positions.

Return Value

int Return the next position after the last folder

static int cleanRootFoldersPositions()

Reset every root folders positions.

Return Value

int Return the next position after the last folder