Class Page

Description

Wicked Abtract Page Class.

$Horde: wicked/lib/Page.php,v 1.106.2.5 2010/02/14 18:16:31 jan Exp $

Copyright 2003-2009 The Horde Project (http://www.horde.org/)

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

Located in /lib/Page.php (line 15)


	
			
Direct descendents
Class Description
 class Search Wicked SearchAll class.
 class StandardPage Wicked Page class for most pages.
 class AddPage Wicked AddPage class.
 class AllPages Wicked AllPages class.
 class AttachedFiles Wicked AttachedFiles class.
 class BackLinks Wicked BackLinks class.
 class DeletePage Wicked DeletePage class (for confirming deletion).
 class EditPage Wicked EditPage class.
 class LeastPopular Wicked LeastPopular class.
 class LikePages Wicked LikePages class.
 class MostPopular Wicked MostPopular class.
 class NewPage Wicked NewPage class.
 class RecentChanges Wicked RecentChanges class.
 class RevertPage Wicked RevertPage class (for confirming reversions).
 class SyncPages Wicked SyncPages class.
 class MergeOrRename Special page for merging or renaming pages.
Variable Summary
 array $_page
 Text_Wiki $_proc
Method Summary
 boolean allows (integer $mode)
 void author ()
 mixed block ()
 mixed diff ()
 mixed display ()
 void displayContents ( $isBlock)
 Returns getCurrentPage ()
 mixed getPage ( $pagename, [ $pagever = null], [ $referrer = null])
 integer getPermissions ([ $pageName = null])
 void &getProcessor ([ $output_format = 'Xhtml'])
 void getText ()
 void handleAction ()
 mixed history ()
 void hits ()
 void isLocked ()
 void isOld ()
 boolean isValid ()
 void lock ()
 void pageName ()
 void pageTitle ()
 void pageUrl ([ $linkpage = null], [ $actionId = null])
 void preDisplay ( $mode,  $params)
 mixed previousVersion ()
 void referrer ()
 mixed remove ()
 void render ( $mode, [ $params = null])
 boolean supports (integer $mode)
 void unlock ()
 void updateText ( $newtext,  $changelog,  $minorchange)
 void version ()
 void versionCreated ()
Variables
array $supportedModes = array() (line 32)

Display modes supported by this page. Possible modes:

WICKED_MODE_CONTENT WICKED_MODE_DISPLAY WICKED_MODE_EDIT WICKED_MODE_REMOVE WICKED_MODE_HISTORY WICKED_MODE_DIFF WICKED_MODE_LOCKING WICKED_MODE_UNLOCKING WICKED_MODE_CREATE


Redefined in descendants as:
array $_page (line 46)

The loaded page info.

Text_Wiki $_proc (line 39)

Instance of a Text_Wiki processor.

Methods
allows (line 98)

Returns if the page allows a mode. Access rights and user state are taken into consideration.

boolean allows (integer $mode)
  • integer $mode: The mode to check for.

Redefined in descendants as:
  • StandardPage::allows() : Returns if the page allows a mode. Access rights and user state are taken into consideration.
  • EditPage::allows() : Returns if the page allows a mode. Access rights and user state are taken into consideration.
  • MergeOrRename::allows() : Returns if the page allows a mode. Access rights and user state are taken into consideration.
author (line 251)
void author ()
block (line 368)

Render this page for displaying in a block. You really must override this function if your page is to be anything like a real page.

  • return: Returns true or PEAR_Error.
mixed block ()
diff (line 403)

Render this page in Diff mode.

  • return: Returns true or PEAR_Error.
mixed diff ()

Redefined in descendants as:
display (line 338)

Render this page in Display mode. You really must override this function if your page is to be anything like a real page.

  • return: Returns true or PEAR_Error.
mixed display ()

Redefined in descendants as:
displayContents (line 373)
void displayContents ( $isBlock)
  • $isBlock

Redefined in descendants as:
formatVersionCreated (line 240)
void formatVersionCreated ()
getCurrentPage (line 186)

Get the page we are currently on.

  • return: a Page or PEAR_Error.
Returns getCurrentPage ()
getPage (line 198)

Get the page we are currently on.

  • return: Returns a Page or PEAR_Error.
mixed getPage ( $pagename, [ $pagever = null], [ $referrer = null])
  • $pagename
  • $pagever
  • $referrer
getPermissions (line 65)

Retrieve this user's permissions for this page. If a permissions object does not exist, we assume reasonable defaults.

  • return: The permissions bitmask.
integer getPermissions ([ $pageName = null])
  • $pageName

Redefined in descendants as:
getProcessor (line 408)
void &getProcessor ([ $output_format = 'Xhtml'])
  • $output_format
getText (line 535)
void getText ()

Redefined in descendants as:
handleAction (line 575)
void handleAction ()

Redefined in descendants as:
history (line 393)

Render this page in History mode.

  • return: Returns true or PEAR_Error.
mixed history ()

Redefined in descendants as:
hits (line 269)
void hits ()

Redefined in descendants as:
isLocked (line 515)
void isLocked ()

Redefined in descendants as:
isOld (line 327)
void isOld ()

Redefined in descendants as:
isValid (line 53)

Is this a validly loaded page?

  • return: True if we've loaded data, false otherwise.
boolean isValid ()
lock (line 520)
void lock ()

Redefined in descendants as:
pageUrl (line 550)
void pageUrl ([ $linkpage = null], [ $actionId = null])
  • $linkpage
  • $actionId

Redefined in descendants as:
preDisplay (line 358)

Perform any pre-display checks for permissions, searches,

etc. Called before any output is sent so the page can do redirects. If the page wants to take control of flow from here, it can, and is entirely responsible for handling the user (should call exit after redirecting, for example).

$param integer $mode The page render mode. $param array $params Any page parameters.

void preDisplay ( $mode,  $params)
  • $mode
  • $params

Redefined in descendants as:
previousVersion (line 285)

Retrieve the previous version number for this page

  • return: A string containing the previous version or null if this is the first version.
mixed previousVersion ()
remove (line 383)

Render this page in Remove mode.

  • return: Returns true or PEAR_Error.
mixed remove ()
render (line 489)
void render ( $mode, [ $params = null])
  • $mode
  • $params
supports (line 176)

See if the page supports a particular mode.

boolean supports (integer $mode)
  • integer $mode: Which mode to check for
unlock (line 525)
void unlock ()

Redefined in descendants as:
updateText (line 530)
void updateText ( $newtext,  $changelog,  $minorchange)
  • $newtext
  • $changelog
  • $minorchange

Redefined in descendants as:
version (line 274)
void version ()

Redefined in descendants as:
versionCreated (line 235)
void versionCreated ()

Redefined in descendants as:

Documentation generated on Sun, 30 Jan 2011 05:42:56 +0000 by phpDocumentor 1.4.3