IdField
Class. It extends Field.
An ID field of a meta class: an image (#[Image]) or a reference to a post, term or user by ID (?int). No object
is stored as 0 or not at all.
Constructor
Methods
equals()
Matches posts whose field holds the object with ID $id.
Returns Condition
getClass()
The class the field belongs to.
Returns class-string
getField()
The name of the field: the name of the constructor parameter.
Returns string
in()
Matches posts whose field holds one of the objects. Throws an InvalidArgumentException if no value is given.
Returns Condition
isNotNull()
Posts with an object in the field.
Returns Condition
isNull()
Posts without an object in the field.
Returns Condition
notIn()
Matches posts whose field holds none of the objects, including posts without an object. Throws an InvalidArgumentException if no value is given.
Returns Condition