C# Class EPiCode.Relations.Helpers.PageHelper

显示文件 Open project: BVNetwork/Relations

Public Methods

Method Description
GetPagesRelated ( PageReference page, string ruleName ) : PageDataCollection

Getting related pages through one rule

GetPagesRelated ( PageReference page, string ruleName, Rule direction ) : PageDataCollection
GetPagesRelated ( PageReference page, string firstRuleName, Rule firstRuleDirection, string secondRuleName, Rule secondRuleDirection ) : PageDataCollection

Getting related pages through two rules.

GetPagesRelated ( PageReference page, string firstRuleName, string secondRuleName ) : PageDataCollection
PageIDListToPages ( List pageIDList ) : PageDataCollection

Helper method for page relation getters to convert relations to pages.

Method Details

GetPagesRelated() public static method

Getting related pages through one rule
public static GetPagesRelated ( PageReference page, string ruleName ) : PageDataCollection
page PageReference The page to find relations to
ruleName string The relation rule to search through
return PageDataCollection

GetPagesRelated() public static method

public static GetPagesRelated ( PageReference page, string ruleName, Rule direction ) : PageDataCollection
page PageReference
ruleName string
direction Rule
return PageDataCollection

GetPagesRelated() public static method

Getting related pages through two rules.
public static GetPagesRelated ( PageReference page, string firstRuleName, Rule firstRuleDirection, string secondRuleName, Rule secondRuleDirection ) : PageDataCollection
page PageReference Page to find relations to
firstRuleName string The first relation rule to search through
firstRuleDirection Rule
secondRuleName string The second relation rule to search through
secondRuleDirection Rule
return PageDataCollection

GetPagesRelated() public static method

public static GetPagesRelated ( PageReference page, string firstRuleName, string secondRuleName ) : PageDataCollection
page PageReference
firstRuleName string
secondRuleName string
return PageDataCollection

PageIDListToPages() public static method

Helper method for page relation getters to convert relations to pages.
public static PageIDListToPages ( List pageIDList ) : PageDataCollection
pageIDList List Collection of page IDs
return PageDataCollection