Nextcloud PHP API (master)

FilterDefinition
in package

Filter definition

Describe filter attributes

Tags
since
28.0.0

Table of Contents

Constants

TYPE_BOOL  = 'bool'
TYPE_DATETIME  = 'datetime'
TYPE_FLOAT  = 'float'
TYPE_INT  = 'int'
TYPE_NC_GROUP  = 'nc-group'
TYPE_NC_USER  = 'nc-user'
TYPE_PERSON  = 'person'
TYPE_STRING  = 'string'
TYPE_STRINGS  = 'strings'

Properties

$exclusive  : bool
$name  : string
$type  : string

Methods

__construct()  : mixed
Build filter definition
exclusive()  : bool
Is filter exclusive?
name()  : string
Filter name
type()  : self::TYPE_*
Filter type

Constants

Properties

Methods

__construct()

Build filter definition

public __construct(string $name[, self::TYPE_* $type = self::TYPE_STRING ][, bool $exclusive = true ]) : mixed
Parameters
$name : string
$type : self::TYPE_* = self::TYPE_STRING
$exclusive : bool = true

If true, all providers not supporting this filter will be ignored when this filter is provided

Tags
throws
InvalidArgumentException

in case of invalid name. Allowed characters are -, 0-9, a-z.

since
28.0.0

exclusive()

Is filter exclusive?

public exclusive() : bool

If exclusive, only provider with support for this filter will receive the query. Example: if an exclusive filter mimetype is declared, a search with this term will not be send to providers like settings that doesn't support it.

Tags
since
28.0.0
Return values
bool

name()

Filter name

public name() : string

Name is used in query string and for advanced syntax name: <value>

Tags
since
28.0.0
Return values
string

type()

Filter type

public type() : self::TYPE_*

Expected type of value for the filter

Tags
since
28.0.0
Return values
self::TYPE_*

        
On this page

Search results