Nextcloud PHP API (stable18)

ISearchComparison extends ISearchOperator

Tags
since
12.0.0

Table of Contents

COMPARE_EQUAL  = 'eq'
COMPARE_GREATER_THAN  = 'gt'
COMPARE_GREATER_THAN_EQUAL  = 'gte'
COMPARE_LESS_THAN  = 'lt'
COMPARE_LESS_THAN_EQUAL  = 'lte'
COMPARE_LIKE  = 'like'
getField()  : string
Get the name of the field to compare with
getType()  : string
Get the type of comparison, one of the ISearchComparison::COMPARE_* constants
getValue()  : string|int|DateTime
Get the value to compare the field with

Constants

Methods

getField()

Get the name of the field to compare with

public getField() : string

i.e. 'size', 'name' or 'mimetype'

Tags
since
12.0.0
Return values
string

getType()

Get the type of comparison, one of the ISearchComparison::COMPARE_* constants

public getType() : string
Tags
since
12.0.0
Return values
string

getValue()

Get the value to compare the field with

public getValue() : string|int|DateTime
Tags
since
12.0.0
Return values
string|int|DateTime

Search results