PHP 클래스 Wicked_Api, horde

This file defines Wicked's external API interface. Other applications can interact with Wicked through this API.
상속: extends Horde_Registry_Api
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_links array Links.

공개 메소드들

메소드 설명
display ( string $pagename ) : array Returns a rendered wiki page.
edit ( string $pagename, string $text, string $changelog = '' ) Updates content of a wiki page. If the page does not exist it is created.
getMultiplePageInfo ( array $pagenames = [] ) : array Return basic information for multiple pages.
getPageHistory ( string $pagename ) : array Return page history.
getPageInfo ( string $pagename ) : array Return basic page information.
getPageSource ( $pagename, string $version = null ) : string Get the wiki source of a page specified by its name.
getRecentChanges ( integer $days = 3 ) : array Returns the most recently changed pages.
getTemplate ( string $name ) : string Get a template specified by its name. This is effectively an alias for getPageSource() since Wicked templates are also normal pages.
listPages ( boolean $special = true, boolean $no_cache = false ) : array Returns a list of available pages.
listTemplates ( ) : arrary Get a list of templates provided by Wicked. A template is any page whose name begins with "Template"
pageExists ( string $pagename ) : boolean Chech if a page exists
renderPage ( string $pagename, string $format = 'Plain' ) : array Returns a rendered wiki page.
saveTemplate ( string $name, string $data ) Process a completed template to update the named Wiki page. This method is basically a passthrough to edit().

메소드 상세

display() 공개 메소드

Returns a rendered wiki page.
public display ( string $pagename ) : array
$pagename string Page to display
리턴 array Page without CSS link

edit() 공개 메소드

Updates content of a wiki page. If the page does not exist it is created.
public edit ( string $pagename, string $text, string $changelog = '' )
$pagename string Page to edit
$text string Page content
$changelog string Description of the change

getMultiplePageInfo() 공개 메소드

Return basic information for multiple pages.
public getMultiplePageInfo ( array $pagenames = [] ) : array
$pagenames array Page names
리턴 array An array of arrays of page parameters.

getPageHistory() 공개 메소드

Return page history.
public getPageHistory ( string $pagename ) : array
$pagename string Page name
리턴 array An array of page parameters.

getPageInfo() 공개 메소드

Return basic page information.
public getPageInfo ( string $pagename ) : array
$pagename string Page name
리턴 array An array of page parameters.

getPageSource() 공개 메소드

Get the wiki source of a page specified by its name.
public getPageSource ( $pagename, string $version = null ) : string
$version string Page version
리턴 string Page data.

getRecentChanges() 공개 메소드

Returns the most recently changed pages.
public getRecentChanges ( integer $days = 3 ) : array
$days integer The number of days to look back.
리턴 array Pages.

getTemplate() 공개 메소드

Wicked templates are pages that include "Template" at the beginning of the name.
public getTemplate ( string $name ) : string
$name string The name of the template to fetch
리턴 string Template data.

listPages() 공개 메소드

Returns a list of available pages.
public listPages ( boolean $special = true, boolean $no_cache = false ) : array
$special boolean Include special pages
$no_cache boolean Always retreive pages from backed
리턴 array An array of all available pages.

listTemplates() 공개 메소드

Get a list of templates provided by Wicked. A template is any page whose name begins with "Template"
public listTemplates ( ) : arrary
리턴 arrary Array on success.

pageExists() 공개 메소드

Chech if a page exists
public pageExists ( string $pagename ) : boolean
$pagename string Page name
리턴 boolean

renderPage() 공개 메소드

Returns a rendered wiki page.
public renderPage ( string $pagename, string $format = 'Plain' ) : array
$pagename string Page to display
$format string Format to render page to (Plain, XHtml)
리턴 array Rendered page

saveTemplate() 공개 메소드

Process a completed template to update the named Wiki page. This method is basically a passthrough to edit().
public saveTemplate ( string $name, string $data )
$name string Name of the new or modified page
$data string Text content of the populated template

프로퍼티 상세