FileSearchDemand
Immutable value object that represents a search demand for files.
Table of Contents
Methods
- addOrdering() : self
- addSearchField() : self
- create() : self
- createForSearchTerm() : self
- getFirstResult() : int|null
- getFolder() : Folder|null
- getMaxResults() : int|null
- getOrderings() : array<string|int, mixed>|null
- getSearchFields() : array<string|int, mixed>|null
- getSearchTerm() : string|null
- isRecursive() : bool
- withFolder() : self
- withMaxResults() : self
- withRecursive() : self
- withSearchTerm() : self
- withStartResult() : FileSearchDemand
- Requests the position of the first result to retrieve (the "offset").
Methods
addOrdering()
public
addOrdering(string $tableName, string $fieldName[, string $direction = 'ASC' ]) : self
Parameters
- $tableName : string
- $fieldName : string
- $direction : string = 'ASC'
Return values
selfaddSearchField()
public
addSearchField(string $tableName, string $field) : self
Parameters
- $tableName : string
- $field : string
Return values
selfcreate()
public
static create() : self
Return values
selfcreateForSearchTerm()
public
static createForSearchTerm(string $searchTerm) : self
Parameters
- $searchTerm : string
Return values
selfgetFirstResult()
public
getFirstResult() : int|null
Return values
int|nullgetFolder()
public
getFolder() : Folder|null
Return values
Folder|nullgetMaxResults()
public
getMaxResults() : int|null
Return values
int|nullgetOrderings()
public
getOrderings() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetSearchFields()
public
getSearchFields() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetSearchTerm()
public
getSearchTerm() : string|null
Return values
string|nullisRecursive()
public
isRecursive() : bool
Return values
boolwithFolder()
public
withFolder(Folder $folder) : self
Parameters
- $folder : Folder
Return values
selfwithMaxResults()
public
withMaxResults(int $maxResults) : self
Parameters
- $maxResults : int
Return values
selfwithRecursive()
public
withRecursive() : self
Return values
selfwithSearchTerm()
public
withSearchTerm(string $searchTerm) : self
Parameters
- $searchTerm : string
Return values
selfwithStartResult()
Requests the position of the first result to retrieve (the "offset").
public
withStartResult(int $firstResult) : FileSearchDemand
Same as in QueryBuilder it is the index of the result set, with 0 being the first result.
Parameters
- $firstResult : int