checkpoint() public method

Create a version of the document and check it out right again to continue editing.
public checkpoint ( $document )
Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function checkpoint($document)
 {
     if (!is_object($document)) {
         throw new InvalidArgumentException('Parameter $document needs to be an object, ' . gettype($document) . ' given');
     }
     $this->errorIfClosed();
     $this->unitOfWork->checkpoint($document);
 }
 /**
  * Do a checkin operation followed immediately by a checkout operation.
  *
  * A new version is created and the writable document stays in checked out state
  *
  * @param object $document The document
  *
  * @return void
  */
 public function checkpoint($document)
 {
     if (!is_object($document)) {
         throw new \InvalidArgumentException(gettype($document));
     }
     $this->errorIfClosed();
     $this->unitOfWork->checkpoint($document);
 }
Beispiel #3
0
 /**
  * Do a checkin operation followed immediately by a checkout operation.
  *
  * A new version is created and the writable document stays in checked out state
  *
  * @param object $document The document
  *
  * @return void
  */
 public function checkpoint($document)
 {
     $this->errorIfClosed();
     $this->unitOfWork->checkpoint($document);
 }