示例#1
0
        /// <summary>
        /// Implements generating the XML for the More Journal page
        /// </summary>
        /// <param name="journalID">Journal ID of the page to return</param>
        /// <param name="userID">User ID of the page to return</param>
        /// <param name="skip">Number of articles to skip</param>
        /// <param name="show">Number of articles to show</param>
        private void TryCreateMoreJournalXML(int journalID, int userID, int skip, int show)
        {
            //Clean any existing XML.
            RootElement.RemoveAll();

            XmlElement journal = AddElementTag(RootElement, "JOURNAL");
            AddAttribute(journal, "USERID", userID);

            Forum forum = new Forum(InputContext);
            forum.GetJournal(_journalID, show, skip, false);

            AddInside(forum, "JOURNAL");
        }
示例#2
0
 private bool CreateJournal(User owner, ref Forum journal)
 {
     int journalID = owner.Journal;
     journal.GetJournal(journalID, 5, 0, false);
     return true;
 }