StringField
Class. It extends Field.
A string field of a meta class (also #[PlainText], #[RichText] and #[Url]) or a string column of a table; compared without regard to case, like the default collations of the database.
Constructor
Methods
between()
Matches values from $min to $max, both included. Compared without regard to case.
Returns Condition
contains()
Matches values that contain $text, without regard to case.
Returns Condition
equals()
Matches values equal to $value.
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
greaterOrEqual()
Matches values that sort after $value or are equal to it, without regard to case.
Returns Condition
greaterThan()
Matches values that sort after $value in the order of the database, without regard to case.
Returns Condition
in()
Matches values equal to one of $values. Throws an InvalidArgumentException if no value is given.
Returns Condition
lessOrEqual()
Matches values that sort before $value or are equal to it, without regard to case.
Returns Condition
lessThan()
Matches values that sort before $value in the order of the database, without regard to case.
Returns Condition
notEquals()
Matches values not equal to $value. On a nullable column, rows whose column is null match as well.
Returns Condition
notIn()
Matches values equal to none of $values. On a nullable column, rows whose column is null match as well. Throws an InvalidArgumentException if no value is given.
Returns Condition