You are here

static function CMISRepositoryWrapper::getOpUrl in CMIS API 7

Same name and namespace in other branches
  1. 6.4 cmis_common/lib/cmis_repository_wrapper.php \CMISRepositoryWrapper::getOpUrl()
  2. 6.3 cmis_common/lib/cmis_repository_wrapper.php \CMISRepositoryWrapper::getOpUrl()
4 calls to CMISRepositoryWrapper::getOpUrl()
CMISRepositoryWrapper::doRequest in cmis_common/lib/cmis_repository_wrapper.php
CMISService::getFolderTree 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;
  }
}