|
@@ 100-108 (lines=9) @@
|
| 97 |
|
$this->insertOp($esId, $memberId, $op); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
public function removeCursor($esId, $memberId){ |
| 101 |
|
$op = array( |
| 102 |
|
'optype' => 'RemoveCursor', |
| 103 |
|
'memberid' => (string) $memberId, |
| 104 |
|
'reason' => 'server-idle', |
| 105 |
|
'timestamp' => $this->getMillisecondsAsString() |
| 106 |
|
); |
| 107 |
|
$this->insertOp($esId, $memberId, $op); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
public function removeMember($esId, $memberId){ |
| 111 |
|
$op = array( |
|
@@ 120-130 (lines=11) @@
|
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
//TODO: Implement https://github.com/kogmbh/WebODF/blob/master/webodf/lib/ops/OpUpdateMember.js#L95 |
| 120 |
|
public function changeNick($esId, $memberId, $fullName){ |
| 121 |
|
$op = array( |
| 122 |
|
'optype' => 'UpdateMember', |
| 123 |
|
'memberid' => (string) $memberId, |
| 124 |
|
'timestamp' => $this->getMillisecondsAsString(), |
| 125 |
|
'setProperties' => array( |
| 126 |
|
'fullName' => $fullName, |
| 127 |
|
) |
| 128 |
|
); |
| 129 |
|
$this->insertOp($esId, $memberId, $op); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
protected function insertOp($esId, $memberId, $op){ |
| 133 |
|
if ($this->canInsertOp($esId, $memberId, $op)){ |