C# 클래스 WikiFunctions.SiteInfo

상속: IXmlSerializable
파일 보기 프로젝트 열기: reedy/AutoWikiBrowser 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Key string
LoadCategoryCollation void
LoadFromCache bool
LoadFromNetwork bool
SiteInfo System

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateOrLoad() 공개 정적인 메소드

public static CreateOrLoad ( IApiEdit editor ) : SiteInfo
editor IApiEdit
리턴 SiteInfo

GetMessages() 공개 메소드

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

GetSchema() 공개 메소드

public GetSchema ( ) : System.Xml.Schema.XmlSchema
리턴 System.Xml.Schema.XmlSchema

LoadSiteInfo() 공개 메소드

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

NormalizeURL() 공개 정적인 메소드

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

OpenPageHistoryInBrowser() 공개 메소드

public OpenPageHistoryInBrowser ( string title ) : void
title string
리턴 void

OpenPageInBrowser() 공개 메소드

public OpenPageInBrowser ( string title ) : void
title string
리턴 void

ParseErrorFromSiteInfoOutput() 공개 메소드

public ParseErrorFromSiteInfoOutput ( ) : object
리턴 object

ReadXml() 공개 메소드

public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader
리턴 void

SiteInfo() 공개 메소드

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

WriteXml() 공개 메소드

public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
리턴 void