Skip to content

ObjectStateIdentifier Criterion

The ObjectStateIdentifier Search Criterion searches for content based on its object state identifier.

Arguments

  • value - string(s) representing the object state identifier(s)
  • target (optional for PHP) - string representing the object state group

Example

PHP

1
$query->query = new Criterion\ObjectStateIdentifier(['ready']);
1
$query->query = new Criterion\ObjectStateIdentifier(['not_locked'], 'ez_lock');

REST API

1
2
3
4
5
6
7
8
<Query>
    <Filter>
        <ObjectStateIdentifierCriterion>
            <value>not_locked</value>
            <target>ez_lock</target>
        </ObjectStateIdentifierCriterion>
    </Filter>
</Query>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "Query": {
    "Filter": {
      "ObjectStateIdentifierCriterion": {
        "value": "not_locked",
        "target": "ez_lock"
      }
    }
  }
}