public function testAllPredicates() { // startgist:7a6da96d9e6f94269057:prismic-allPredicates.php // "at" predicate: equality of a fragment to a value. $at = Predicates::at("document.type", "article"); // "any" predicate: equality of a fragment to a value. $any = Predicates::any("document.type", array("article", "blog-post")); // "has" predicate: field is defined $has = Predicates::has("my.article.author"); // "missing" predicate: field is empty $missing = Predicates::missing("my.article.author"); // "fulltext" predicate: fulltext search in a fragment. $fulltext = Predicates::fulltext("my.article.body", "sausage"); // "similar" predicate, with a document id as reference $similar = Predicates::similar("UXasdFwe42D", 10); // endgist }