C# Class WikiFunctions.SiteInfo

Inheritance: IXmlSerializable
Afficher le fichier Open project: reedy/AutoWikiBrowser Class Usage Examples

Private Properties

Свойство Type Description
Key string
LoadCategoryCollation void
LoadFromCache bool
LoadFromNetwork bool
SiteInfo System

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static CreateOrLoad ( IApiEdit editor ) : SiteInfo
editor IApiEdit
Résultat SiteInfo

GetMessages() public méthode

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

GetSchema() public méthode

public GetSchema ( ) : System.Xml.Schema.XmlSchema
Résultat System.Xml.Schema.XmlSchema

LoadSiteInfo() public méthode

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

NormalizeURL() public static méthode

Ensures URL ends with /
public static NormalizeURL ( string url ) : string
url string URL.
Résultat string

OpenPageHistoryInBrowser() public méthode

public OpenPageHistoryInBrowser ( string title ) : void
title string
Résultat void

OpenPageInBrowser() public méthode

public OpenPageInBrowser ( string title ) : void
title string
Résultat void

ParseErrorFromSiteInfoOutput() public méthode

public ParseErrorFromSiteInfoOutput ( ) : object
Résultat object

ReadXml() public méthode

public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader
Résultat void

SiteInfo() public méthode

Creates an instance of the class
public SiteInfo ( IApiEdit editor ) : System
editor IApiEdit
Résultat System

WriteXml() public méthode

public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
Résultat void