PHP 클래스 Wicked_Page, horde

저자: Tyler Colbert ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$supportedModes array 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

보호된 프로퍼티들

프로퍼티 타입 설명
$_page array The loaded page info.
$_proc Text_Wiki Instance of a Text_Wiki processor.

공개 메소드들

메소드 설명
allows ( integer $mode ) : boolean Returns if the page allows a mode. Access rights and user state are taken into consideration.
author ( )
block ( ) : string Renders this page for displaying in a block.
changeLog ( )
diff ( string $version ) Renders this page in diff mode.
display ( ) Renders this page in display mode.
displayContents ( $isBlock )
formatVersionCreated ( )
getCurrentPage ( ) : Wicked_Page Returns the page we are currently on.
getPage ( $pagename, $pagever = null, $referrer = null ) : Wicked_Page Returns the requested page.
getPermissions ( $pageName = null ) : integer Retrieve this user's permissions for this page. If a permissions object does not exist, we assume reasonable defaults.
getProcessor ( $output_format = 'Xhtml' )
getText ( )
handleAction ( )
history ( ) Renders this page in history mode.
hits ( )
isLocked ( )
isOld ( )
isValid ( ) : boolean Is this a validly loaded page?
lock ( )
pageName ( )
pageTitle ( )
pageUrl ( $linkpage = null, $actionId = null )
preDisplay ( $mode, $params ) 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).
previousVersion ( ) : string Returns the previous version number for this page.
referrer ( )
remove ( ) Renders this page in remove mode.
render ( $mode, $params = null )
supports ( integer $mode ) : boolean See if the page supports a particular mode.
toView ( ) : object Returns an object with Horde_View properties.
unlock ( )
updateText ( $newtext, $changelog )
version ( )
versionCreated ( )

보호된 메소드들

메소드 설명
_getLinkConf ( boolean $full = false ) : array Returns a link configuration for Text_Wiki.

메소드 상세

_getLinkConf() 보호된 메소드

Returns a link configuration for Text_Wiki.
protected _getLinkConf ( boolean $full = false ) : array
$full boolean @see Wicked::url()
리턴 array A link configuration for Wiklink and Freelink rules.

allows() 공개 메소드

Returns if the page allows a mode. Access rights and user state are taken into consideration.
public allows ( integer $mode ) : boolean
$mode integer The mode to check for.
리턴 boolean True if the mode is allowed.

author() 공개 메소드

public author ( )

block() 공개 메소드

This must be overridden if the page is to be anything like a real page.
public block ( ) : string
리턴 string The content.

changeLog() 공개 메소드

public changeLog ( )

diff() 공개 메소드

Renders this page in diff mode.
public diff ( string $version )
$version string The version to diff this page against.

display() 공개 메소드

This must be overridden if the page is to be anything like a real page.
public display ( )

displayContents() 공개 메소드

public displayContents ( $isBlock )

formatVersionCreated() 공개 메소드

getCurrentPage() 공개 정적인 메소드

Returns the page we are currently on.
public static getCurrentPage ( ) : Wicked_Page
리턴 Wicked_Page The current page.

getPage() 공개 정적인 메소드

Returns the requested page.
public static getPage ( $pagename, $pagever = null, $referrer = null ) : Wicked_Page
리턴 Wicked_Page The requested page.

getPermissions() 공개 메소드

Retrieve this user's permissions for this page. If a permissions object does not exist, we assume reasonable defaults.
public getPermissions ( $pageName = null ) : integer
리턴 integer The permissions bitmask.

getProcessor() 공개 메소드

public getProcessor ( $output_format = 'Xhtml' )

getText() 공개 메소드

public getText ( )

handleAction() 공개 메소드

public handleAction ( )

history() 공개 메소드

Renders this page in history mode.
public history ( )

hits() 공개 메소드

public hits ( )

isLocked() 공개 메소드

public isLocked ( )

isOld() 공개 메소드

public isOld ( )

isValid() 공개 메소드

Is this a validly loaded page?
public isValid ( ) : boolean
리턴 boolean True if we've loaded data, false otherwise.

lock() 공개 메소드

public lock ( )

pageName() 공개 메소드

public pageName ( )

pageTitle() 공개 메소드

public pageTitle ( )

pageUrl() 공개 메소드

public pageUrl ( $linkpage = null, $actionId = null )

preDisplay() 공개 메소드

$param integer $mode The page render mode. $param array $params Any page parameters.
public preDisplay ( $mode, $params )

previousVersion() 공개 메소드

Returns the previous version number for this page.
public previousVersion ( ) : string
리턴 string A string containing the previous version or null if this is the first version.

referrer() 공개 메소드

public referrer ( )

remove() 공개 메소드

Renders this page in remove mode.
public remove ( )

render() 공개 메소드

public render ( $mode, $params = null )

supports() 공개 메소드

See if the page supports a particular mode.
public supports ( integer $mode ) : boolean
$mode integer Which mode to check for
리턴 boolean True or false

toView() 공개 메소드

The returned object is supposed to be used with the _page.html.php partial.
public toView ( ) : object
리턴 object A simple object.

unlock() 공개 메소드

public unlock ( )

updateText() 공개 메소드

public updateText ( $newtext, $changelog )

version() 공개 메소드

public version ( )

versionCreated() 공개 메소드

public versionCreated ( )

프로퍼티 상세

$_page 보호되어 있는 프로퍼티

The loaded page info.
protected array $_page
리턴 array

$_proc 보호되어 있는 프로퍼티

Instance of a Text_Wiki processor.
protected Text_Wiki $_proc
리턴 Text_Wiki

$supportedModes 공개적으로 프로퍼티

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
public array $supportedModes
리턴 array