C# Class WikiFunctions.SiteInfo

Inheritance: IXmlSerializable
显示文件 Open project: reedy/AutoWikiBrowser Class Usage Examples

Private Properties

Property Type Description
Key string
LoadCategoryCollation void
LoadFromCache bool
LoadFromNetwork bool
SiteInfo System

Public Methods

Method Description
CreateOrLoad ( IApiEdit editor ) : SiteInfo
GetMessages ( ) : string>.Dictionary

Only called if language != en

GetSchema ( ) : System.Xml.Schema.XmlSchema
LoadSiteInfo ( ) : bool

Loads SiteInfo from local cache or API call, processes data returned

NormalizeURL ( string url ) : string

Ensures URL ends with /

OpenPageHistoryInBrowser ( string title ) : void
OpenPageInBrowser ( string title ) : void
ParseErrorFromSiteInfoOutput ( ) : object
ReadXml ( XmlReader reader ) : void
SiteInfo ( IApiEdit editor ) : System

Creates an instance of the class

WriteXml ( XmlWriter writer ) : void

Private Methods

Method Description
Key ( string scriptPath ) : string

For object caching support

LoadCategoryCollation ( ) : void

Loads the category collation information (value of wgCategoryCollation parameter) from https://noc.wikimedia.org/conf/InitialiseSettings.php.txt Stores result in object cache

LoadFromCache ( ) : bool

Loads siteinfo XML from Global cache on disk if available

LoadFromNetwork ( ) : bool

Loads siteinfo XML from network via API call

SiteInfo ( ) : System

Method Details

CreateOrLoad() public static method

public static CreateOrLoad ( IApiEdit editor ) : SiteInfo
editor IApiEdit
return SiteInfo

GetMessages() public method

Only called if language != en
public GetMessages ( ) : string>.Dictionary
return string>.Dictionary

GetSchema() public method

public GetSchema ( ) : System.Xml.Schema.XmlSchema
return System.Xml.Schema.XmlSchema

LoadSiteInfo() public method

Loads SiteInfo from local cache or API call, processes data returned
public LoadSiteInfo ( ) : bool
return bool

NormalizeURL() public static method

Ensures URL ends with /
public static NormalizeURL ( string url ) : string
url string URL.
return string

OpenPageHistoryInBrowser() public method

public OpenPageHistoryInBrowser ( string title ) : void
title string
return void

OpenPageInBrowser() public method

public OpenPageInBrowser ( string title ) : void
title string
return void

ParseErrorFromSiteInfoOutput() public method

public ParseErrorFromSiteInfoOutput ( ) : object
return object

ReadXml() public method

public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader
return void

SiteInfo() public method

Creates an instance of the class
public SiteInfo ( IApiEdit editor ) : System
editor IApiEdit
return System

WriteXml() public method

public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void