C# Class Engage.Dnn.Publish.Tag

Show file Open project: EngageSoftware/Engage-Publish

Public Methods

Method Description
GetItemsFromTags ( int portalId, ArrayList tagList ) : DataTable
GetItemsFromTagsPaging ( int portalId, ArrayList tagList, int maxItems, int pageId, string sortOrder ) : DataTable
GetPopularTags ( int portalId, ArrayList tagList, bool selectTop ) : DataTable
GetPopularTagsCount ( int portalId, ArrayList tagList, bool selectTop ) : int
GetTag ( int tagId, int portalId ) : Tag
GetTag ( string tag, int portalId ) : Tag

Gets a specific tag for a specific PortalId

GetTags ( int portalId ) : DataTable

Gets all Tags for a specific PortalId

GetTagsByString ( string partialTag, int portalId ) : DataTable

Gets all tags that match a portion of a particular string for a portal

ParseTags ( string tags, int portalId ) : ArrayList
ParseTags ( string tags, int portalId, char separators, bool add ) : ArrayList
Save ( ) : void
Save ( IDbTransaction trans ) : void
Tag ( ) : System

Initializes a new instance of the Tag class.

Tag ( DataTable dt ) : System

Initializes a new instance of the Tag class.

Tag ( string tagName, string tagDescription, int tagTotalItems ) : System

Initializes a new instance of the Tag class.

Private Methods

Method Description
GetTag ( int tagId ) : Tag

Method Details

GetItemsFromTags() public static method

public static GetItemsFromTags ( int portalId, ArrayList tagList ) : DataTable
portalId int
tagList System.Collections.ArrayList
return System.Data.DataTable

GetItemsFromTagsPaging() public static method

public static GetItemsFromTagsPaging ( int portalId, ArrayList tagList, int maxItems, int pageId, string sortOrder ) : DataTable
portalId int
tagList System.Collections.ArrayList
maxItems int
pageId int
sortOrder string
return System.Data.DataTable

GetPopularTags() public static method

public static GetPopularTags ( int portalId, ArrayList tagList, bool selectTop ) : DataTable
portalId int
tagList System.Collections.ArrayList
selectTop bool
return System.Data.DataTable

GetPopularTagsCount() public static method

public static GetPopularTagsCount ( int portalId, ArrayList tagList, bool selectTop ) : int
portalId int
tagList System.Collections.ArrayList
selectTop bool
return int

GetTag() public static method

public static GetTag ( int tagId, int portalId ) : Tag
tagId int
portalId int
return Tag

GetTag() public static method

Gets a specific tag for a specific PortalId
public static GetTag ( string tag, int portalId ) : Tag
tag string The tag string.
portalId int The Portal Id.
return Tag

GetTags() public static method

Gets all Tags for a specific PortalId
public static GetTags ( int portalId ) : DataTable
portalId int The Portal Id.
return System.Data.DataTable

GetTagsByString() public static method

Gets all tags that match a portion of a particular string for a portal
public static GetTagsByString ( string partialTag, int portalId ) : DataTable
partialTag string The string to start matching from.
portalId int The Portal Id.
return System.Data.DataTable

ParseTags() public static method

public static ParseTags ( string tags, int portalId ) : ArrayList
tags string
portalId int
return System.Collections.ArrayList

ParseTags() public static method

public static ParseTags ( string tags, int portalId, char separators, bool add ) : ArrayList
tags string
portalId int
separators char
add bool
return System.Collections.ArrayList

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( IDbTransaction trans ) : void
trans IDbTransaction
return void

Tag() public method

Initializes a new instance of the Tag class.
public Tag ( ) : System
return System

Tag() public method

Initializes a new instance of the Tag class.
public Tag ( DataTable dt ) : System
dt System.Data.DataTable Data table of the tag instance info.
return System

Tag() public method

Initializes a new instance of the Tag class.
public Tag ( string tagName, string tagDescription, int tagTotalItems ) : System
tagName string The tag name.
tagDescription string The tag description.
tagTotalItems int The total items.
return System