Overview

Packages

  • None
  • Wicked

Classes

  • Text_Wiki_Parse_Heading2
  • Text_Wiki_Parse_Toc2
  • Text_Wiki_Render_Latex_Heading2
  • Text_Wiki_Render_Latex_Toc2
  • Text_Wiki_Render_Plain_Heading2
  • Text_Wiki_Render_Plain_Toc2
  • Text_Wiki_Render_Rst
  • Text_Wiki_Render_Rst_Blockquote
  • Text_Wiki_Render_Rst_Bold
  • Text_Wiki_Render_Rst_Code
  • Text_Wiki_Render_Rst_Deflist
  • Text_Wiki_Render_Rst_Emphasis
  • Text_Wiki_Render_Rst_Freelink
  • Text_Wiki_Render_Rst_Heading2
  • Text_Wiki_Render_Rst_Links
  • Text_Wiki_Render_Rst_List
  • Text_Wiki_Render_Rst_Newline
  • Text_Wiki_Render_Rst_Paragraph
  • Text_Wiki_Render_Rst_Raw
  • Text_Wiki_Render_Rst_Toc2
  • Text_Wiki_Render_Rst_Tt
  • Text_Wiki_Render_Rst_Url
  • Text_Wiki_Render_Xhtml_Attribute
  • Text_Wiki_Render_Xhtml_Code2
  • Text_Wiki_Render_Xhtml_Freelink2
  • Text_Wiki_Render_Xhtml_Heading2
  • Text_Wiki_Render_Xhtml_Image2
  • Text_Wiki_Render_Xhtml_Interwiki
  • Text_Wiki_Render_Xhtml_Registrylink
  • Text_Wiki_Render_Xhtml_Toc2
  • Text_Wiki_Render_Xhtml_Url
  • Text_Wiki_Render_Xhtml_Wickedblock
  • Text_Wiki_Render_Xhtml_Wikilink2
  • Wicked
  • Wicked_Api
  • Wicked_Driver
  • Wicked_Driver_Sql
  • Wicked_Exception
  • Wicked_Factory_Driver
  • Wicked_Page
  • Wicked_Page_AddPage
  • Wicked_Page_AllPages
  • Wicked_Page_AttachedFiles
  • Wicked_Page_BackLinks
  • Wicked_Page_DeletePage
  • Wicked_Page_EditPage
  • Wicked_Page_LeastPopular
  • Wicked_Page_LikePages
  • Wicked_Page_MergeOrRename
  • Wicked_Page_MostPopular
  • Wicked_Page_NewPage
  • Wicked_Page_RecentChanges
  • Wicked_Page_RevertPage
  • Wicked_Page_Search
  • Wicked_Page_StandardHistoryPage
  • Wicked_Page_StandardPage
  • Wicked_Page_SyncDiff
  • Wicked_Page_SyncPages
  • Wicked_Sync
  • Wicked_Sync_Wicked
  • Wicked_Test
  • Overview
  • Package
  • Class
  • Tree

Class Wicked_Sync

Wicked_Sync defines an API for implementing synchronization backends for Wicked.

Copyright 2008-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Direct known subclasses

Wicked_Sync_Wicked
Abstract
Package: Wicked
Author: Duck duck@obala.net
Located at Sync.php
Methods summary
public Wicked_Sync
# factory( string $driver = 'Wicked', array $params = array() )

Attempts to return a concrete Wicked_Sync instance based on $driver.

Attempts to return a concrete Wicked_Sync instance based on $driver.

Parameters

$driver
<p>The type of the concrete Wicked_Sync subclass to return. The class name is based on the sync driver ($driver). The code is dynamically included.</p>
$params
<p>A hash containing any additional configuration or connection parameters a subclass might need.</p>

Returns

Wicked_Sync

The newly created concrete Wicked_Sync instance, or false on an error.

public
# __construct( array $params = array() )

Constructs a new Wicked driver object.

Constructs a new Wicked driver object.

Parameters

$params
A hash containing connection parameters.
abstract public array
# listPages( )

Returns a list of available pages.

Returns a list of available pages.

Returns

array
An array of all available pages.

Throws

Wicked_Exception
abstract public array
# getPageSource( string $pageName )

Get the wiki source of a page specified by its name.

Get the wiki source of a page specified by its name.

Parameters

$pageName
$name The name of the page to fetch

Returns

array
Page data.

Throws

Wicked_Exception
abstract public array
# getPageInfo( string $pageName )

Return basic page information.

Return basic page information.

Parameters

$pageName
Page name

Returns

array
Page data.

Throws

Wicked_Exception
abstract public array
# getMultiplePageInfo( array $pages = array() )

Return basic information of .multiple pages

Return basic information of .multiple pages

Parameters

$pages
Page names to get info for

Returns

array
Pages data.

Throws

Wicked_Exception
abstract public array
# getPageHistory( string $pagename )

Return page history.

Return page history.

Parameters

$pagename
Page name

Returns

array
An array of page parameters.

Throws

Wicked_Exception
abstract public
# editPage( string $pagename, string $text, string $changelog = '' )

Updates content of a wiki page. If the page does not exist it is created.

Updates content of a wiki page. If the page does not exist it is created.

Parameters

$pagename
Page to edit
$text
Page content
$changelog
Description of the change

Throws

Wicked_Exception
API documentation generated by ApiGen