C# Class formulate.app.Helpers.EntityHelper

Helps with entities.
显示文件 Open project: rhythmagency/formulate

Public Methods

Method Description
GetClientPath ( System.Guid path ) : string[]

Converts a server-side entity path to a client-side entity path.

The client-side entity path expects an extra root ID of "-1", which this method includes.

GetGroupIconByRoot ( System.Guid id ) : string

Gets the group tree icon for the entities under the root with the specified ID.

GetIconForRoot ( System.Guid id ) : string

Gets the tree icon for the root entity with the specified ID.

GetNameForRoot ( System.Guid id ) : string

Gets the name for the root entity with the specified ID.

GetString ( EntityKind kind ) : string

Converts an entity kind to a string.

IsRoot ( System.Guid id ) : bool

Indicates whether or not the entity with the specified ID is a root entity.

Private Methods

Method Description
EntityHelper ( ) : Umbraco.Core.Constants.System

Static constructor.

Method Details

GetClientPath() public static method

Converts a server-side entity path to a client-side entity path.
The client-side entity path expects an extra root ID of "-1", which this method includes.
public static GetClientPath ( System.Guid path ) : string[]
path System.Guid /// The server-side entity path. ///
return string[]

GetGroupIconByRoot() public static method

Gets the group tree icon for the entities under the root with the specified ID.
public static GetGroupIconByRoot ( System.Guid id ) : string
id System.Guid /// The root entity ID. ///
return string

GetIconForRoot() public static method

Gets the tree icon for the root entity with the specified ID.
public static GetIconForRoot ( System.Guid id ) : string
id System.Guid /// The root entity ID. ///
return string

GetNameForRoot() public static method

Gets the name for the root entity with the specified ID.
public static GetNameForRoot ( System.Guid id ) : string
id System.Guid /// The root entity ID. ///
return string

GetString() public static method

Converts an entity kind to a string.
public static GetString ( EntityKind kind ) : string
kind EntityKind The entity kind.
return string

IsRoot() public static method

Indicates whether or not the entity with the specified ID is a root entity.
public static IsRoot ( System.Guid id ) : bool
id System.Guid The entity ID.
return bool