PHP Class EtherpadLiteClient

Afficher le fichier Open project: tomnomnom/etherpad-lite-client Class Usage Examples

Protected Properties

Свойство Type Description
$apiKey
$baseUrl

Méthodes publiques

Méthode Description
__construct ( $apiKey, $baseUrl = null )
checkToken ( ) checkToken
copyPad ( $sourceID, $destinationID, $force = null ) copyPad
createAuthor ( $name = null ) createAuthor
createAuthorIfNotExistsFor ( $authorMapper, $name = null ) createAuthorIfNotExistsFor
createDiffHTML ( $padID, $startRev, $endRev ) createDiffHTML
createGroup ( ) createGroup
createGroupIfNotExistsFor ( $groupMapper ) createGroupIfNotExistsFor
createGroupPad ( $groupID, $padName, $text = null ) createGroupPad
createPad ( $padID, $text = null ) createPad
createSession ( $groupID, $authorID, $validUntil ) createSession
deleteGroup ( $groupID ) deleteGroup
deletePad ( $padID ) deletePad
deleteSession ( $sessionID ) deleteSession
getAttributePool ( $padID ) getAttributePool
getAuthorName ( $authorID ) getAuthorName
getChatHead ( $padID ) getChatHead
getChatHistory ( $padID, $start = null, $end = null ) getChatHistory
getHTML ( $padID, $rev = null ) getHTML
getLastEdited ( $padID ) getLastEdited
getPadID ( $roID ) getPadID
getPublicStatus ( $padID ) getPublicStatus
getReadOnlyID ( $padID ) getReadOnlyID
getRevisionChangeset ( $padID, $rev = null ) getRevisionChangeset
getRevisionsCount ( $padID ) getRevisionsCount
getSavedRevisionsCount ( $padID ) getSavedRevisionsCount
getSessionInfo ( $sessionID ) getSessionInfo
getText ( $padID, $rev = null ) getText
isPasswordProtected ( $padID ) isPasswordProtected
listAllGroups ( ) listAllGroups
listAllPads ( ) listAllPads
listAuthorsOfPad ( $padID ) listAuthorsOfPad
listPads ( $groupID ) listPads
listPadsOfAuthor ( $authorID ) listPadsOfAuthor
listSavedRevisions ( $padID ) listSavedRevisions
listSessionsOfAuthor ( $authorID ) listSessionsOfAuthor
listSessionsOfGroup ( $groupID ) listSessionsOfGroup
movePad ( $sourceID, $destinationID, $force = null ) movePad
padUsers ( $padID ) padUsers
padUsersCount ( $padID ) padUsersCount
restoreRevision ( $padID, $rev ) restoreRevision
saveRevision ( $padID, $rev ) saveRevision
sendClientsMessage ( $padID, $msg ) sendClientsMessage
setHTML ( $padID, $html ) setHTML
setPassword ( $padID, $password ) setPassword
setPublicStatus ( $padID, $publicStatus ) setPublicStatus
setText ( $padID, $text ) setText

Méthodes protégées

Méthode Description
call ( $function, array $arguments = [], $method = 'GET' )
convertBools ( $candidate )
get ( $function, array $arguments = [] )
handleResult ( $result )
post ( $function, array $arguments = [] )

Method Details

__construct() public méthode

public __construct ( $apiKey, $baseUrl = null )

call() protected méthode

protected call ( $function, array $arguments = [], $method = 'GET' )
$arguments array

checkToken() public méthode

checkToken
public checkToken ( )

convertBools() protected méthode

protected convertBools ( $candidate )

copyPad() public méthode

copyPad
public copyPad ( $sourceID, $destinationID, $force = null )

createAuthor() public méthode

createAuthor
public createAuthor ( $name = null )

createAuthorIfNotExistsFor() public méthode

createAuthorIfNotExistsFor
public createAuthorIfNotExistsFor ( $authorMapper, $name = null )

createDiffHTML() public méthode

createDiffHTML
public createDiffHTML ( $padID, $startRev, $endRev )

createGroup() public méthode

createGroup
public createGroup ( )

createGroupIfNotExistsFor() public méthode

createGroupIfNotExistsFor
public createGroupIfNotExistsFor ( $groupMapper )

createGroupPad() public méthode

createGroupPad
public createGroupPad ( $groupID, $padName, $text = null )

createPad() public méthode

createPad
public createPad ( $padID, $text = null )

createSession() public méthode

createSession
public createSession ( $groupID, $authorID, $validUntil )

deleteGroup() public méthode

deleteGroup
public deleteGroup ( $groupID )

deletePad() public méthode

deletePad
public deletePad ( $padID )

deleteSession() public méthode

deleteSession
public deleteSession ( $sessionID )

get() protected méthode

protected get ( $function, array $arguments = [] )
$arguments array

getAttributePool() public méthode

getAttributePool
public getAttributePool ( $padID )

getAuthorName() public méthode

getAuthorName
public getAuthorName ( $authorID )

getChatHead() public méthode

getChatHead
public getChatHead ( $padID )

getChatHistory() public méthode

getChatHistory
public getChatHistory ( $padID, $start = null, $end = null )

getHTML() public méthode

getHTML
public getHTML ( $padID, $rev = null )

getLastEdited() public méthode

getLastEdited
public getLastEdited ( $padID )

getPadID() public méthode

getPadID
public getPadID ( $roID )

getPublicStatus() public méthode

getPublicStatus
public getPublicStatus ( $padID )

getReadOnlyID() public méthode

getReadOnlyID
public getReadOnlyID ( $padID )

getRevisionChangeset() public méthode

getRevisionChangeset
public getRevisionChangeset ( $padID, $rev = null )

getRevisionsCount() public méthode

getRevisionsCount
public getRevisionsCount ( $padID )

getSavedRevisionsCount() public méthode

getSavedRevisionsCount
public getSavedRevisionsCount ( $padID )

getSessionInfo() public méthode

getSessionInfo
public getSessionInfo ( $sessionID )

getText() public méthode

getText
public getText ( $padID, $rev = null )

handleResult() protected méthode

protected handleResult ( $result )

isPasswordProtected() public méthode

isPasswordProtected
public isPasswordProtected ( $padID )

listAllGroups() public méthode

listAllGroups
public listAllGroups ( )

listAllPads() public méthode

listAllPads
public listAllPads ( )

listAuthorsOfPad() public méthode

listAuthorsOfPad
public listAuthorsOfPad ( $padID )

listPads() public méthode

listPads
public listPads ( $groupID )

listPadsOfAuthor() public méthode

listPadsOfAuthor
public listPadsOfAuthor ( $authorID )

listSavedRevisions() public méthode

listSavedRevisions
public listSavedRevisions ( $padID )

listSessionsOfAuthor() public méthode

listSessionsOfAuthor
public listSessionsOfAuthor ( $authorID )

listSessionsOfGroup() public méthode

listSessionsOfGroup
public listSessionsOfGroup ( $groupID )

movePad() public méthode

movePad
public movePad ( $sourceID, $destinationID, $force = null )

padUsers() public méthode

padUsers
public padUsers ( $padID )

padUsersCount() public méthode

padUsersCount
public padUsersCount ( $padID )

post() protected méthode

protected post ( $function, array $arguments = [] )
$arguments array

restoreRevision() public méthode

restoreRevision
public restoreRevision ( $padID, $rev )

saveRevision() public méthode

saveRevision
public saveRevision ( $padID, $rev )

sendClientsMessage() public méthode

sendClientsMessage
public sendClientsMessage ( $padID, $msg )

setHTML() public méthode

setHTML
public setHTML ( $padID, $html )

setPassword() public méthode

setPassword
public setPassword ( $padID, $password )

setPublicStatus() public méthode

setPublicStatus
public setPublicStatus ( $padID, $publicStatus )

setText() public méthode

setText
public setText ( $padID, $text )

Property Details

$apiKey protected_oe property

protected $apiKey

$baseUrl protected_oe property

protected $baseUrl