You are here

static function CMISRepositoryWrapper::doXQueryFromNode in CMIS API 6.3

Same name and namespace in other branches
  1. 6.4 cmis_common/lib/cmis_repository_wrapper.php \CMISRepositoryWrapper::doXQueryFromNode()
  2. 7 cmis_common/lib/cmis_repository_wrapper.php \CMISRepositoryWrapper::doXQueryFromNode()
4 calls to CMISRepositoryWrapper::doXQueryFromNode()
CMISRepositoryWrapper::doXQuery in cmis_common/lib/cmis_repository_wrapper.php
CMISRepositoryWrapper::extractObjectFeedFromNode in cmis_common/lib/cmis_repository_wrapper.php
CMISRepositoryWrapper::extractTypeDefFromNode in cmis_common/lib/cmis_repository_wrapper.php
CMISRepositoryWrapper::extractWorkspaceFromNode in cmis_common/lib/cmis_repository_wrapper.php

File

cmis_common/lib/cmis_repository_wrapper.php, line 168

Class

CMISRepositoryWrapper

Code

static function doXQueryFromNode($xmlnode, $xquery) {

  // Perform an XQUERY on a NODE
  // Register the 4 CMIS namespaces
  $xpath = new DomXPath($xmlnode);
  foreach (CMISRepositoryWrapper::$namespaces as $nspre => $nsuri) {
    $xpath
      ->registerNamespace($nspre, $nsuri);
  }
  return $xpath
    ->query($xquery);
}