Jackalope\Transport\Jackrabbit\Client::checkoutItem PHP Method

checkoutItem() public method

{@inheritDoc}
public checkoutItem ( $path )
    public function checkoutItem($path)
    {
        $path = $this->encodeAndValidatePathForDavex($path);
        try {
            $request = $this->getRequest(Request::CHECKOUT, $path);
            $request->execute();
        } catch (HTTPErrorException $e) {
            if ($e->getCode() == 405) {
                // TODO: when checking out a non-versionable node, we get here too. in that case the exception is very wrong
                throw new UnsupportedRepositoryOperationException($e->getMessage());
            }
            throw new RepositoryException($e->getMessage());
        }
        return;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function checkoutItem($path)
 {
     $this->transport->checkoutItem($path);
 }