src/wcmf/application/controller/TreeController.php
protected function isRootTypeNode(ObjectId $oid) {
    if ($oid->containsDummyIds()) {
      $type = $oid->getType();
      $rootTypes = $this->getRootTypes();
      foreach ($rootTypes as $rootType) {
        if ($rootType->getType() == $type) {
          return true;
        }
      }
    }
    return false;
  }
protected function isRootTypeNode(ObjectId $oid) {
    if ($oid->containsDummyIds()) {
      $type = $oid->getType();
      $rootTypes = $this->getRootTypes();
      foreach ($rootTypes as $rootType) {
        if ($rootType->getType() == $type) {
          return true;
        }
      }
    }
    return false;
  }
protected function isRootTypeNode ( ObjectId $ oid ) { if ( $ oid -> containsDummyIds ( ) ) { $ type = $ oid -> getType ( ) ; $ rootTypes = $ this -> getRootTypes ( ) ; foreach ( $ rootTypes as $ rootType ) { if ( $ rootType -> getType ( ) == $ type ) { return true ; } } } return false ; }
Check if the given oid belongs to a root type node
@param $oid The object id
@return Boolean
Check if the given oid belongs to a root type node