\Wicked

Wicked Base Class.

Summary

Methods
Properties
Constants
url()
mail()
getCAPTCHA()
lockUser()
setTopbar()
addFeedLink()
No public properties found
MODE_DISPLAY
MODE_EDIT
MODE_REMOVE
MODE_HISTORY
MODE_DIFF
MODE_LOCKING
MODE_UNLOCKING
MODE_CREATE
MODE_CONTENT
MODE_BLOCK
REGEXP_WIKIWORD
VFS_ATTACH_PATH
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

MODE_DISPLAY

MODE_DISPLAY

Display mode.

MODE_EDIT

MODE_EDIT

The edit screen.

MODE_REMOVE

MODE_REMOVE

Page can be removed.

MODE_HISTORY

MODE_HISTORY

Display the page history.

MODE_DIFF

MODE_DIFF

Diff two versions of the page.

MODE_LOCKING

MODE_LOCKING

Page can be locked.

MODE_UNLOCKING

MODE_UNLOCKING

Page can be unlocked.

MODE_CREATE

MODE_CREATE

The ability to add a page.

MODE_CONTENT

MODE_CONTENT

Raw content mode.

MODE_BLOCK

MODE_BLOCK

Like display, but for a block.

REGEXP_WIKIWORD

REGEXP_WIKIWORD

Our wiki word regexp (needed many places).

"(!?" . // START WikiPage pattern (1) "[A-Z\xc0-\xde]" . // 1 upper "[A-Za-z0-9\xc0-\xfe]" . // 0+ alpha or digit "[a-z0-9\xdf-\xfe]+" . // 1+ lower or digit "\/?" . // 0/1 slash "[A-Z\xc0-\xde]" . // 1 upper "[A-Za-z0-9\xc0-\xfe\/]" . // 0+ or more alpha or digit or slash ")" . // END WikiPage pattern (/1) "((#" . // START Anchor pattern (2)(3) "[A-Za-z0-9\xc0-\xfe]" . // 1 alpha "(" . // start sub pattern (4) "[-_A-Za-z0-9\xc0-\xfe:.]*" . // 0+ dash, alpha, digit, underscore, // colon, dot "[-_A-Za-z0-9\xc0-\xfe]" . // 1 dash, alpha, digit, or underscore ")?)?)"); // end subpatterns (/4)(/3)(/2)

VFS_ATTACH_PATH

VFS_ATTACH_PATH

Where we store our attachments in VFS.

Methods

url()

url(string  $page, boolean  $full = false, integer  $append_session) : \Horde_Url

Puts together the URL to a Wicked page. Uses mod_rewrite or GET style URLs depending on configuration.

Parameters

string $page

The name of the page to target.

boolean $full

@see Horde::url()

integer $append_session

@see Horde::url()

Returns

\Horde_Url —

The URL of $page.

mail()

mail(string  $message, array  $headers = array()) 

Mails a notification message after encoding the headers and adding the standard username/time line.

Parameters

string $message

The message text to send out.

array $headers

Additional headers to add to the email.

getCAPTCHA()

getCAPTCHA(boolean  $new = false) : string

Generate a CAPTCHA string.

Parameters

boolean $new

If true, a new CAPTCHA is created and returned. The current, to-be-confirmed string otherwise.

Returns

string —

A CAPTCHA string.

lockUser()

lockUser() : string

Returns the user name that is used for locking, either the current user or the current IP address.

Returns

string —

The user name used for locking.

setTopbar()

setTopbar() 

Sets the topbar up.

addFeedLink()

addFeedLink()