예제 #1
0
 public ContentBase(FlexWiki.ContentBase contentBase)
 {
   this.Created = contentBase.Created; 
   this.LastRead = contentBase.LastRead; 
   //CA The secure property went away at some point. Need to keep it around
   //CA for backwards compatibility with existing wire format. 
   this.Secure = false; 
   this.Description = contentBase.Description; 
   this.Contact = contentBase.Contact; 
   this.ImageURL = contentBase.ImageURL; 
   this.HomePage = contentBase.HomePage; 
   this.DisplaySpacesInWikiLinks = contentBase.DisplaySpacesInWikiLinks; 
   this.Namespace = contentBase.Namespace; 
   this.Title = contentBase.Title; 
 }
예제 #2
0
 public ContentBase(FlexWiki.NamespaceManager manager)
 {
     //CA The LastRead and Created properties do not appear to be used anywhere else, 
     //CA so it was removed during the rearchitecture. We need to keep it 
     //CA for wire compatibility, so we just fake it. 
     this.Created = manager.Federation.TimeProvider.Now;
     this.LastRead = manager.Federation.TimeProvider.Now;
     //CA The secure propertyName went away at some point. Need to keep it around
     //CA for backwards compatibility with existing wire format. 
     this.Secure = false;
     this.Description = manager.Description;
     this.Contact = manager.Contact;
     this.ImageURL = manager.ImageURL;
     this.HomePage = manager.HomePage;
     this.DisplaySpacesInWikiLinks = manager.DisplaySpacesInWikiLinks;
     this.Namespace = manager.Namespace;
     this.Title = manager.Title;
 }
예제 #3
0
파일: Wiki.cs 프로젝트: zi-yu/orionsbelt
        private void WriteLocation( HtmlTextWriter writer, FlexWiki.AbsoluteTopicName topic, string display )
        {
            writer.WriteLine("<div id='wiki_nav'>");
            writer.WriteLine("<div id='wiki_search'><input type='text' name='wiki_search' value='' /> <input type='submit' value='Procurar' /></div>");
            writer.WriteLine("<a href='{0}'>Manual</a>", OrionGlobals.getSectionBaseUrl("wiki"));

            string parent = GetTopicField(topic, "Parent");
            if( parent != null ) {
                FlexWiki.AbsoluteTopicName parentTopic = new FlexWiki.AbsoluteTopicName(parent);
                writer.WriteLine(" &raquo; <a href='{0}'>{1}</a>", GetUrl(parentTopic), GetDisplay(parentTopic));
            }

            if( topic.Fullname != "Orionsbelt.Orionsbelt" ) {
                writer.WriteLine(" &raquo; <a href='{0}'>{1}</a>", GetUrl(topic), display);
            }
            writer.WriteLine("</div>");
        }
예제 #4
0
파일: Wiki.cs 프로젝트: zi-yu/orionsbelt
 public static string GetUrl(FlexWiki.AbsoluteTopicName topic)
 {
     return GetUrl( topic.Namespace, topic.Name );
 }
예제 #5
0
파일: Wiki.cs 프로젝트: zi-yu/orionsbelt
 public string GetTopicField( FlexWiki.AbsoluteTopicName topic, string field  )
 {
     Hashtable hash = GetFederation().ContentBaseForNamespace(topic.Namespace).GetFieldsForTopic(topic);
     if( hash == null ) {
         return null;
     }
     return (string) hash[field];
 }
예제 #6
0
파일: Wiki.cs 프로젝트: zi-yu/orionsbelt
 public string GetDisplay( FlexWiki.AbsoluteTopicName topic )
 {
     string display = GetTopicField(topic, "Display");
     if( display == null ) {
         return topic.FormattedName;
     }
     return display;
 }