class FolderTreeWidget extends AbstractWidget (View source)

Prepare a Folder tree according to Folder hierarchy and given options.

Properties

protected $controller from AbstractWidget
protected $request from AbstractWidget
protected $parentFolder
protected $translation
protected $folders

Methods

Request
getRequest()

No description

getController()

No description

__construct(Request $request, Controller $refereeController, Folder $parent = null)

No description

getFolderTreeAssignationForParent()

Fill twig assignation array with FolderTree entities.

array
getChildrenFolders(Folder $parent)

No description

getRootFolder()

No description

array
getFolders()

No description

Details

protected Request getRequest()

Return Value

Request

protected Controller getController()

Return Value

Controller

__construct(Request $request, Controller $refereeController, Folder $parent = null)

Parameters

Request $request Current kernel request
Controller $refereeController Referee controller to get Twig, security context from.
Folder $parent

protected getFolderTreeAssignationForParent()

Fill twig assignation array with FolderTree entities.

array getChildrenFolders(Folder $parent)

Parameters

Folder $parent

Return Value

array

Folder getRootFolder()

Return Value

Folder

array getFolders()

Return Value

array