| Methods |
protected
|
init(): void
Method is executed when the scope is added to parent scope using Scope::add().
Method is executed when the scope is added to parent scope using Scope::add().
|
#
|
abstract
protected
|
onChangeModel(): void
|
#
|
public
|
getModel(): ?Model
Get the model this condition is associated with.
Get the model this condition is associated with.
Overriden by
|
#
|
abstract
public
|
clear(): $this
Empty the scope object.
|
#
|
abstract
public
|
negate(): $this
Negate the scope object e.g. from '=' to '!='.
Negate the scope object e.g. from '=' to '!='.
Implemented by
|
#
|
abstract
public
|
isEmpty(): bool
Return if scope has any conditions.
Return if scope has any conditions.
Implemented by
|
#
|
abstract
public
|
toWords(Model $model = null): string
Convert the scope to human readable words when applied on $model.
Convert the scope to human readable words when applied on $model.
Implemented by
|
#
|
public
|
simplify(): self
Simplifies by peeling off nested group conditions with single contained component.
Useful for converting (((field =…
Simplifies by peeling off nested group conditions with single contained component.
Useful for converting (((field = value))) to field = value.
Overriden by
|
#
|
public
|
isCompound(): bool
Returns if scope contains several conditions.
Returns if scope contains several conditions.
Overriden by
|
#
|
public
|
getOwner(): Scope
|
#
|