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

checkinItem() public method

{@inheritDoc}
public checkinItem ( $path )
    public function checkinItem($path)
    {
        $path = $this->encodeAndValidatePathForDavex($path);
        try {
            $request = $this->getRequest(Request::CHECKIN, $path);
            $curl = $request->execute(true);
            if ($curl->getHeader("Location")) {
                return $this->removeTrailingSlash($this->stripServerRootFromUri(urldecode($curl->getHeader("Location"))));
            }
        } catch (HTTPErrorException $e) {
            if ($e->getCode() == 405) {
                throw new UnsupportedRepositoryOperationException();
            }
            throw new RepositoryException($e->getMessage());
        }
        throw new RepositoryException();
    }

Usage Example

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