extends |
AbstractScope |
|---|---|
uses |
ReadableCaptionTrait |
| Methods | ||
|---|---|---|
public
|
__construct(
string|Expressionable $key,
($value is null ? mixed : string) $operator = null,
($operator is string ? mixed : never) $value = null,
)
|
# |
protected
|
onChangeModel(): void
|
# |
public
|
toQueryArguments(): array<0|1|2, mixed>
|
# |
public
|
isEmpty(): bool
|
# |
public
|
clear(): self
|
# |
public
|
negate(): self
|
# |
public
|
toWords(Model $model = null): string
|
# |
protected
|
keyToWords(Model $model): string
|
# |
protected
|
operatorToWords(): string
|
# |
protected
|
valueToWords(Model $model, mixed $value): string
|
# |
| Methods inherited from Atk4\Data\Model\Scope\AbstractScope |
|---|
init(), getModel(), simplify(), isCompound(), getOwner() |
| Methods used from Atk4\Core\InitializerTrait |
|---|
isInitialized(), assertIsInitialized(), invokeInit() |
| Methods used from Atk4\Core\TrackableTrait |
|---|
issetOwner(), setOwner(), unsetOwner(), getDesiredName(), destroy() |
| Methods used from Atk4\Core\WarnDynamicPropertyTrait |
|---|
warnPropertyDoesNotExist(), __isset(), __get(), __set(), __unset() |
| Methods used from Atk4\Core\ReadableCaptionTrait |
|---|
readableCaption() |
| Constants | ||
|---|---|---|
public
|
OPERATOR_EQUALS = '='
|
# |
public
|
OPERATOR_DOESNOT_EQUAL = '!='
|
# |
public
|
OPERATOR_GREATER = '>'
|
# |
public
|
OPERATOR_GREATER_EQUAL = '>='
|
# |
public
|
OPERATOR_LESS = '<'
|
# |
public
|
OPERATOR_LESS_EQUAL = '<='
|
# |
public
|
OPERATOR_LIKE = 'LIKE'
|
# |
public
|
OPERATOR_NOT_LIKE = 'NOT LIKE'
|
# |
public
|
OPERATOR_IN = 'IN'
|
# |
public
|
OPERATOR_NOT_IN = 'NOT IN'
|
# |
public
|
OPERATOR_REGEXP = 'REGEXP'
|
# |
public
|
OPERATOR_NOT_REGEXP = 'NOT REGEXP'
|
# |
| Properties | |||
|---|---|---|---|
public
|
string|Field|Expressionable
|
$key
|
# |
public
|
string|null
|
$operator
|
# |
public
|
mixed
|
$value
|
# |
protected
static
|
array<string, array<string, string>>
|
$operators = [
self::OPERATOR_EQUALS => ['negate' => self::OPERATOR_DOESNOT_EQUAL, 'label' => 'is equal to'],
self::OPERATOR_DOESNOT_EQUAL => ['negate' => self::OPERATOR_EQUALS, 'label' => 'is not equal to'],
self::OPERATOR_LESS => ['negate' => self::OPERATOR_GREATER_EQUAL, 'label' => 'is smaller than'],
self::OPERATOR_GREATER => ['negate' => self::OPERATOR_LESS_EQUAL, 'label' => 'is greater than'],
self::OPERATOR_GREATER_EQUAL => ['negate' => self::OPERATOR_LESS, 'label' => 'is greater or equal to'],
self::OPERATOR_LESS_EQUAL => ['negate' => self::OPERATOR_GREATER, 'label' => 'is smaller or equal to'],
self::OPERATOR_LIKE => ['negate' => self::OPERATOR_NOT_LIKE, 'label' => 'is like'],
self::OPERATOR_NOT_LIKE => ['negate' => self::OPERATOR_LIKE, 'label' => 'is not like'],
self::OPERATOR_IN => ['negate' => self::OPERATOR_NOT_IN, 'label' => 'is one of'],
self::OPERATOR_NOT_IN => ['negate' => self::OPERATOR_IN, 'label' => 'is not one of'],
self::OPERATOR_REGEXP => ['negate' => self::OPERATOR_NOT_REGEXP, 'label' => 'is regular expression'],
self::OPERATOR_NOT_REGEXP => ['negate' => self::OPERATOR_REGEXP, 'label' => 'is not regular expression'],
]
|
# |
| Properties used from Atk4\Core\InitializerTrait |
|---|
$_initialized |
| Properties used from Atk4\Core\TrackableTrait |
|---|
$_owner, $shortName |