Свойство | Type | Description | |
---|---|---|---|
$_links | array | Links. |
Méthode | Description | |
---|---|---|
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(). |
public getMultiplePageInfo ( array $pagenames = [] ) : array | ||
$pagenames | array | Page names |
Résultat | array | An array of arrays of page parameters. |
public getPageHistory ( string $pagename ) : array | ||
$pagename | string | Page name |
Résultat | array | An array of page parameters. |
public getPageInfo ( string $pagename ) : array | ||
$pagename | string | Page name |
Résultat | array | An array of page parameters. |
public getPageSource ( $pagename, string $version = null ) : string | ||
$version | string | Page version |
Résultat | string | Page data. |
public getRecentChanges ( integer $days = 3 ) : array | ||
$days | integer | The number of days to look back. |
Résultat | array | Pages. |
public getTemplate ( string $name ) : string | ||
$name | string | The name of the template to fetch |
Résultat | string | Template data. |
public listTemplates ( ) : arrary | ||
Résultat | arrary | Array on success. |
public pageExists ( string $pagename ) : boolean | ||
$pagename | string | Page name |
Résultat | boolean |
public saveTemplate ( string $name, string $data ) | ||
$name | string | Name of the new or modified page |
$data | string | Text content of the populated template |