C# Class formulate.app.Trees.Helpers.FolderHelper

Helps with folders in the Formulate tree.
显示文件 Open project: rhythmagency/formulate Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddCreateFolderAction ( Umbraco.Web.Models.Trees.MenuItemCollection menu ) : void

Adds the "Create Folder" action to the folder's menu.

AddDeleteFolderAction ( Umbraco.Web.Models.Trees.MenuItemCollection menu ) : void

Adds the "Delete Form" action to the menu.

AddFolderToTree ( TreeNodeCollection nodes, FormDataCollection queryStrings, Folder folder, string icon ) : void

Adds a folder node to the tree.

AddMoveFolderAction ( Umbraco.Web.Models.Trees.MenuItemCollection menu, Folder folder ) : void

Adds the "Move" action to the menu.

FolderHelper ( IEntityPersistence persistence, Umbraco.Web.Trees.TreeController tree ) : System.Linq

Primary constructor.

Method Details

AddCreateFolderAction() public method

Adds the "Create Folder" action to the folder's menu.
public AddCreateFolderAction ( Umbraco.Web.Models.Trees.MenuItemCollection menu ) : void
menu Umbraco.Web.Models.Trees.MenuItemCollection /// The menu items. ///
return void

AddDeleteFolderAction() public method

Adds the "Delete Form" action to the menu.
public AddDeleteFolderAction ( Umbraco.Web.Models.Trees.MenuItemCollection menu ) : void
menu Umbraco.Web.Models.Trees.MenuItemCollection /// The menu items to add the action to. ///
return void

AddFolderToTree() public method

Adds a folder node to the tree.
public AddFolderToTree ( TreeNodeCollection nodes, FormDataCollection queryStrings, Folder folder, string icon ) : void
nodes TreeNodeCollection The tree nodes to add to.
queryStrings FormDataCollection The query string.
folder Folder The folder.
icon string The folder's icon.
return void

AddMoveFolderAction() public method

Adds the "Move" action to the menu.
public AddMoveFolderAction ( Umbraco.Web.Models.Trees.MenuItemCollection menu, Folder folder ) : void
menu Umbraco.Web.Models.Trees.MenuItemCollection /// The menu items to add the action to. ///
folder Folder /// The folder. ///
return void

FolderHelper() public method

Primary constructor.
public FolderHelper ( IEntityPersistence persistence, Umbraco.Web.Trees.TreeController tree ) : System.Linq
persistence IEntityPersistence /// The entity persistence. ///
tree Umbraco.Web.Trees.TreeController /// The tree controller. ///
return System.Linq