Exemple #1
0
 public static PageDataCollection GetDescendents(int page, Rule rule, Relation relation)
 {
     PageReference pr = new PageReference(GetRelatedPageID(relation, page));
     PageData referencedPage = DataFactory.Instance.GetPage(pr);
     return RuleEngine.Instance.SearchRelations(rule, referencedPage.PageLink.ID, string.Empty, pr);
 }
Exemple #2
0
 private static int GetRelatedPageID(Relation relation, int page)
 {
     return((relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft);
 }
Exemple #3
0
 private static int GetRelatedPageID(Relation relation, int page)
 {
     return (relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft;
 }