Documentation

ProviderSearchResults
in package
implements ArrayAccess, Iterator, Countable

Table of Contents

Interfaces

ArrayAccess
Iterator
Countable

Properties

$total  : mixed
$error  : mixed
$position  : mixed
$results  : mixed
$warning  : mixed

Methods

count()  : int
Count elements of in ProviderSearchResults object
current()  : ProviderResult
Return the current element
getError()  : string
Get error message
getWarning()  : string
Get warning message
key()  : int
Return the key of the current element
next()  : void
Move forward to next element
offsetExists()  : bool
Whether or not an offset exists.
offsetGet()  : ProviderResult
Offset to retrieve.
offsetSet()  : void
Assign a value to the specified offset
offsetUnset()  : void
Unset an offset.
rewind()  : void
Rewind the Iterator to the first element
setError()  : void
Set error message
setWarning()  : void
Set warning message
valid()  : bool
Checks if current position is valid

Properties

Methods

count()

Count elements of in ProviderSearchResults object

public count() : int
Return values
int

Returns the number of ProviderResult elements

offsetExists()

Whether or not an offset exists.

public offsetExists(mixed $offset) : bool

This method is executed when using isset() or empty().

Parameters
$offset : mixed

An offset to check for

Return values
bool

offsetUnset()

Unset an offset.

public offsetUnset(mixed $offset) : void

This method will not be called when type-casting to (unset).

Parameters
$offset : mixed

The offset to unset

setError()

Set error message

public setError(string $message) : void
Parameters
$message : string

setWarning()

Set warning message

public setWarning(string $message) : void
Parameters
$message : string
On this page

Search results