C# Class Claymore.ArchiveWikiBot.Archive

Inheritance: IArchive
Show file Open project: Claymore/WikiBots Class Usage Examples

Public Properties

Property Type Description
Processor TitleProcessor

Protected Properties

Property Type Description
_cacheDir string
timeRE System.Text.RegularExpressions.Regex

Public Methods

Method Description
Archivate ( Wiki wiki ) : void
Archive ( L10i l10i, string title, string directory, int days, string format, string header, IEnumerable lookForLines, IEnumerable onHold, string removeFromText, bool checkForResult, bool newSectionsDown, int minimalSize, int forceArchivationDelay ) : System
Process ( Wiki wiki, WikiPage page, int &diffSize, int &topics ) : string>.Dictionary
Save ( Wiki wiki, WikiPage page, string>.Dictionary archives, int topics ) : void

Protected Methods

Method Description
FilterQuotes ( string text ) : string
IsMovedSection ( WikiPageSection section ) : bool
ProcessSectionTitle ( string title ) : string
SectionsDown ( WikiPageSection x, WikiPageSection y ) : int
SectionsUp ( WikiPageSection x, WikiPageSection y ) : int

Method Details

Archivate() public method

public Archivate ( Wiki wiki ) : void
wiki Claymore.SharpMediaWiki.Wiki
return void

Archive() public method

public Archive ( L10i l10i, string title, string directory, int days, string format, string header, IEnumerable lookForLines, IEnumerable onHold, string removeFromText, bool checkForResult, bool newSectionsDown, int minimalSize, int forceArchivationDelay ) : System
l10i L10i
title string
directory string
days int
format string
header string
lookForLines IEnumerable
onHold IEnumerable
removeFromText string
checkForResult bool
newSectionsDown bool
minimalSize int
forceArchivationDelay int
return System

FilterQuotes() protected static method

protected static FilterQuotes ( string text ) : string
text string
return string

IsMovedSection() protected static method

protected static IsMovedSection ( WikiPageSection section ) : bool
section WikiPageSection
return bool

Process() public method

public Process ( Wiki wiki, WikiPage page, int &diffSize, int &topics ) : string>.Dictionary
wiki Claymore.SharpMediaWiki.Wiki
page Claymore.SharpMediaWiki.WikiPage
diffSize int
topics int
return string>.Dictionary

ProcessSectionTitle() protected method

protected ProcessSectionTitle ( string title ) : string
title string
return string

Save() public method

public Save ( Wiki wiki, WikiPage page, string>.Dictionary archives, int topics ) : void
wiki Claymore.SharpMediaWiki.Wiki
page Claymore.SharpMediaWiki.WikiPage
archives string>.Dictionary
topics int
return void

SectionsDown() protected method

protected SectionsDown ( WikiPageSection x, WikiPageSection y ) : int
x WikiPageSection
y WikiPageSection
return int

SectionsUp() protected method

protected SectionsUp ( WikiPageSection x, WikiPageSection y ) : int
x WikiPageSection
y WikiPageSection
return int

Property Details

Processor public property

public TitleProcessor Processor
return TitleProcessor

_cacheDir protected property

protected string _cacheDir
return string

timeRE protected static property

protected static Regex,System.Text.RegularExpressions timeRE
return System.Text.RegularExpressions.Regex