Novell Home

Talk:Accessing the Groupwise Web Service using PHP

From Developer Community

Hi!

I found this example of the filter.

 Filter gwFilter = new Filter();// Instantiate a Filter
 FilterGroup gwFG = new FilterGroup();// Instantiate a FilterGroup
 FilterEntry[] gwFE = new FilterEntry[2];// Instantiate two FilterEntries
 
 gwFE[0] = new FilterEntry();// Fill in FilterEntry one
 gwFE[0].setField("subject");
 gwFE[0].setValue("Novell");
 gwFE[0].setOp(FilterOp.contains);
 
 gwFE[1] = new FilterEntry();// Fill in FilterEntry two
 gwFE[1].setField("created");
 gwFE[1].setValue("2006-09-22T17:45:00Z");
 gwFE[1].setOp(FilterOp.gt);
 
 gwFG.setOp(FilterOp.and);// Group the two FilterEntries with an “and”
 gwFG.setElement(gwFE);// Add the two FilterEntries to the FilterGroup 
 gwFilter.setElement(gwFG);// Add the FilterGroup to the Filter

How to apply this in php?

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.