Skip to content

Instantly share code, notes, and snippets.

@richcaudle
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richcaudle/84a8067eb16a6ebb736d to your computer and use it in GitHub Desktop.
Save richcaudle/84a8067eb16a6ebb736d to your computer and use it in GitHub Desktop.
<?php
// Declare a filter in CSDL, looking for content mentioning brands, tagging each mentioned
$csdl = 'tag.brand "Calvin Klein" { interaction.content contains "Calvin Klein" }
tag.brand "GQ" { interaction.content contains "GQ" }
tag.brand "Adidas" { interaction.content contains "Adidas" }
return
{
interaction.content contains_any "Calvin Klein, GQ, Adidas"
}';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment