class Cse implements Zend_Paginator_Adapter_Interface, Zend_Paginator_AdapterAggregate, Iterator, AdapterInterface, AdapterAggregateInterface (View source)

Properties

array $results
int $total
int $offset
int $perPage
array $config
string $query
array $raw
array $facets

Methods

static Cse
search($query, int $offset = 0, int $perPage = 10, array $config = [], null $facet = null)

No description

load()

No description

__construct(null|mixed $googleResponse = null)

No description

readGoogleResponse($googleResponse)

No description

$this
setOffset($offset)

No description

int
getOffset()

No description

$this
setRaw($raw)

No description

array
getRaw()

No description

$this
setTotal($total)

No description

int
getTotal()

No description

$this
setPerPage($perPage)

No description

int
getPerPage()

No description

$this
setConfig($config)

No description

array
getConfig()

No description

$this
setQuery($query)

No description

string
getQuery()

No description

$this
setResults($results)

No description

array
getResults(bool $retry = true)

No description

$this
setFacets($facets)

No description

array
getFacets()

No description

int
count()

No description

array
getItems(int $offset, int $itemCountPerPage)

No description

$this|Zend_Paginator_Adapter_Interface
getPaginatorAdapter()

No description

rewind()

Methods for Iterator

mixed
current()

No description

mixed
key()

No description

mixed
next()

No description

bool
valid()

No description

Details

Parameters

$query
int $offset
int $perPage
array $config
null $facet

Return Value

Cse

load()

__construct(null|mixed $googleResponse = null)

Parameters

null|mixed $googleResponse

readGoogleResponse($googleResponse)

Parameters

$googleResponse

$this setOffset($offset)

Parameters

$offset

Return Value

$this

int getOffset()

Return Value

int

$this setRaw($raw)

Parameters

$raw

Return Value

$this

array getRaw()

Return Value

array

$this setTotal($total)

Parameters

$total

Return Value

$this

int getTotal()

Return Value

int

$this setPerPage($perPage)

Parameters

$perPage

Return Value

$this

int getPerPage()

Return Value

int

$this setConfig($config)

Parameters

$config

Return Value

$this

array getConfig()

Return Value

array

$this setQuery($query)

Parameters

$query

Return Value

$this

string getQuery()

Return Value

string

$this setResults($results)

Parameters

$results

Return Value

$this

array getResults(bool $retry = true)

Parameters

bool $retry

Return Value

array

$this setFacets($facets)

Parameters

$facets

Return Value

$this

array getFacets()

Return Value

array

int count()

Return Value

int

array getItems(int $offset, int $itemCountPerPage)

Parameters

int $offset
int $itemCountPerPage

Return Value

array

$this|Zend_Paginator_Adapter_Interface getPaginatorAdapter()

Return Value

$this|Zend_Paginator_Adapter_Interface | AdapterInterface

rewind()

Methods for Iterator

mixed current()

Return Value

mixed

mixed key()

Return Value

mixed

mixed next()

Return Value

mixed

bool valid()

Return Value

bool