You are here

static function CMISRepositoryWrapper::getOpUrl in CMIS API 6.3

Same name and namespace in other branches
  1. 6.4 cmis_common/lib/cmis_repository_wrapper.php \CMISRepositoryWrapper::getOpUrl()
  2. 7 cmis_common/lib/cmis_repository_wrapper.php \CMISRepositoryWrapper::getOpUrl()
3 calls to CMISRepositoryWrapper::getOpUrl()
CMISRepositoryWrapper::doRequest in cmis_common/lib/cmis_repository_wrapper.php
CMISService::postObject in cmis_common/lib/cmis_repository_wrapper.php
CMISService::updateProperties in cmis_common/lib/cmis_repository_wrapper.php

File

cmis_common/lib/cmis_repository_wrapper.php, line 32

Class

CMISRepositoryWrapper

Code

static function getOpUrl($url, $options = null) {
  if (is_array($options) && count($options) > 0) {
    $needs_question = strstr($url, "?") === false;
    return $url . ($needs_question ? "?" : "&") . http_build_query($options);
  }
  else {
    return $url;
  }
}