Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalck committed Aug 11, 2011
0 parents commit 2364f7a
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 0 deletions.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PHP Etherpad Lite client
133 changes: 133 additions & 0 deletions etherpad-lite-client.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?php
class EtherpadLiteClient
{
// GROUPS
// Pads can belong to a group. There will always be public pads that doesnt belong to a group (or we give this group the id 0)

// creates a new group
function createGroup()
{
}

// this functions helps you to map your application group ids to etherpad lite group ids
function getMappedGroup4($groupMapper)
{
}

// deletes a group
function deleteGroup($groupID)
{
}

// returns all pads of this group
function listPads($groupID)
{
}

// creates a new pad in this group
function createGroupPad($groupID, $padName, $text)
{
}

// AUTHORS
// Theses authors are bind to the attributes the users choose (color and name).

// creates a new author
function createAuthor($name)
{
}

// this functions helps you to map your application author ids to etherpad lite author ids
function getMappedAuthor4($authorMapper, $name)
{
}

// SESSIONS
// Sessions can be created between a group and a author. This allows
// an author to access more than one group. The sessionID will be set as
// a cookie to the client and is valid until a certian date.

// creates a new session
function createSession($groupID, $authorID, $validUntil)
{
}

// deletes a session
function deleteSession($sessionID)
{
}

// returns informations about a session
function getSessionInfo($sessionID)
{
}

// returns all sessions of a group
function listSessionsOfGroup($groupID)
{
}

// returns all sessions of an author
function listSessionsOfAuthor($authorID)
{
}

// PAD CONTENT
// Pad content can be updated and retrieved through the API

// returns the text of a pad
function getText($padID, $rev)
{
}

// sets the text of a pad
function setText($padID, $text)
{
}

// PAD
// Group pads are normal pads, but with the name schema
// GROUPID$PADNAME. A security manager controls access of them and its
// forbidden for normal pads to include a $ in the name.

// creates a new pad
function createPad($padID, $text)
{
}

// returns the number of revisions of this pad
function getRevisionsCount($padID)
{
}

// deletes a pad
function deletePad($padID)
{
}

// returns the read only link of a pad
function getReadOnlyID($padID)
{
}

// sets a boolean for the public status of a pad
function setPublicStatus($padID, $publicStatus)
{
}

// return true of false
function getPublicStatus($padID)
{
}

// returns ok or a error message
function setPassword($padID, $password)
{
}

// returns true or false
function isPasswordProtected($padID)
{
}
}
?>

0 comments on commit 2364f7a

Please sign in to comment.