src/wcmf/lib/model/ObjectQuery.php
public function makeGroup($templates, $combineOperator=Criteria::OPERATOR_AND) {
    $this->groups[] = ['tpls' => $templates, self::PROPERTY_COMBINE_OPERATOR => $combineOperator];
    // store grouped nodes in an extra array to separate them from the others
    for ($i=0; $i<sizeof($templates); $i++) {
      if ($templates[$i] != null) {
        $this->groupedOIDs[] = $templates[$i]->getOID();
      }
      else {
        throw new IllegalArgumentException("Null value found in group");
      }
    }
  }
public function makeGroup($templates, $combineOperator=Criteria::OPERATOR_AND) {
    $this->groups[] = ['tpls' => $templates, self::PROPERTY_COMBINE_OPERATOR => $combineOperator];
    // store grouped nodes in an extra array to separate them from the others
    for ($i=0; $i<sizeof($templates); $i++) {
      if ($templates[$i] != null) {
        $this->groupedOIDs[] = $templates[$i]->getOID();
      }
      else {
        throw new IllegalArgumentException("Null value found in group");
      }
    }
  }
public function makeGroup ( $ templates , $ combineOperator = Criteria :: OPERATOR_AND ) { $ this -> groups [ ] = [ 'tpls' => $ templates , self :: PROPERTY_COMBINE_OPERATOR => $ combineOperator ] ; // store grouped nodes in an extra array to separate them from the others for ( $ i = 0 ; $ i < sizeof ( $ templates ) ; $ i ++ ) { if ( $ templates [ $ i ] != null ) { $ this -> groupedOIDs [ ] = $ templates [ $ i ] -> getOID ( ) ; } else { throw new IllegalArgumentException ( "Null value found in group" ) ; } } }
Group different templates together to realize brackets in the query.
@note Grouped templates will be ignored, when iterating over the object tree and appended at the end.
@param $templates An array of references to the templates contained in the group
@param $combineOperator One of the Criteria::OPERATOR constants that precedes the group (default: _Criteria::OPERATOR_AND_)
Group different templates together to realize brackets in the query .