Posted By

patriksvenssonmpsbroadbandcom on 05/19/11


Tagged

MPP PropertyFilter


Versions (?)

PHP Advanced PropertiesFilterParameters


 / Published in: PHP
 

Code snippet showing how to use FindContent for properties using advanced properties filter (i.e. with special characters)

  1. $propParam1->PropertyName = "Date";
  2. $propParam1->PropertyMatchString = "17/05/2011";
  3. $propParam2->PropertyName = "Series";
  4. $propParam2->PropertyMatchString = "2";
  5.  
  6. $findContentParams->SessionContext = $sessionContext;
  7. $findContentParams->ServiceID = "419";
  8. $findContentParams->MaxResult = "24";
  9. $findContentParams->StartPos = "0";
  10. $findContentParams->SearchString = $searchString;
  11. $findContentParams->SortOption= $sortOption;
  12. $findContentParams->PropertiesFilterParameters = array ( $propParam1, $propParam2 );
  13. $findContentParams->PropertiesFilter ="%1 && %2";
  14.  
  15. $client = new SoapClient( "http://cs2.acme.com/ContentService.svc?wsdl", array( 'location' => "http://cs2.acme.com/ContentService.svc/basic" ) );
  16.  
  17. $findContentResponse = $client->FindContent( array( 'parameters' => $findContentParams ) );

Report this snippet  

You need to login to post a comment.