Jackalope\ObjectManager::checkout PHP Method

checkout() public method

TODO: document more clearly. This looks like copy-paste from checkin
See also: VersionManager::checkout
public checkout ( $absPath )
    public function checkout($absPath)
    {
        $this->transport->checkoutItem($absPath);
        //FIXME: what about pending move operations?
    }

Usage Example

Example #1
0
 /**
  * {@inheritDoc}
  *
  * @api
  */
 public function checkout($absPath)
 {
     $this->objectManager->checkout($absPath);
     if ($node = $this->objectManager->getCachedNode($absPath)) {
         // OPTIMIZE: set property jcr:isCheckedOut on node directly? but without triggering write on save()
         $node->setDirty();
     }
 }