checkpoint() public method

Create a version of the document and check it out right again to continue editing.
public checkpoint ( $document )
コード例 #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);
 }
コード例 #2
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)
 {
     if (!is_object($document)) {
         throw new \InvalidArgumentException(gettype($document));
     }
     $this->errorIfClosed();
     $this->unitOfWork->checkpoint($document);
 }
コード例 #3
0
ファイル: DocumentManager.php プロジェクト: nicam/phpcr-odm
 /**
  * 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);
 }