예제 #1
0
 public function __clone()
 {
     $newOp = new LogootPlusOperation(clone $this->mLogootPosition, $this->mLineContent);
     if ($this->isInv) {
         $newOp->setInv();
     }
     return $newOp;
 }
예제 #2
0
 public function undoPatch(LogootPatch $patch)
 {
     $this->clock = utils::getNextClock();
     wfDebugLog('p2p', $this->clock . ' - function logootPlusEngine::undoPatch ');
     $opList = array();
     foreach ($patch as $op) {
         $opList[] = LogootPlusOperation::inv($op);
     }
     $undoPatch = new LogootPatch($this->sessionid . $this->clock, $opList);
     $undoPatch->setRefPatch($patch->getId());
     return $undoPatch;
 }
예제 #3
0
 public function __construct($position, $content)
 {
     parent::__construct($position, $content);
 }