PHP Advanced PropertiesFilterParameters


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments


You need to login to view comments.