PHP Class Devise\Search\Pagination

Inheritance: implements IteratorAggregat\IteratorAggregate, implements Illuminate\Contracts\Support\Jsonable
Mostrar archivo Open project: devisephp/cms

Protected Properties

Property Type Description
$appendsToLink
$appendsToLinkData
$items

Public Methods

Method Description
appends ( $data ) Append input queries
getIterator ( ) : Traversable Iterator lets us traverse this paginated object
links ( ) : mixed Lets us do links on this paginated object
make ( $collection, $page, $perPage ) Makes a new paginated result from a collection
toArray ( ) : array Turns this paginated object into an array
toJson ( integer $options ) : string Turns this object into a json serialized object

Protected Methods

Method Description
View ( ) : mixed Creates the view for us
convertItemsToRealModel ( ) Turns the items into the real model. PageSearch turns into Page model. We usually want that model instead.

Method Details

View() protected method

Creates the view for us
protected View ( ) : mixed
return mixed

appends() public method

Append input queries
public appends ( $data )
$data

convertItemsToRealModel() protected method

..
protected convertItemsToRealModel ( )

getIterator() public method

Iterator lets us traverse this paginated object
public getIterator ( ) : Traversable
return Traversable

make() public method

Makes a new paginated result from a collection
public make ( $collection, $page, $perPage )
$collection
$page
$perPage

toArray() public method

Turns this paginated object into an array
public toArray ( ) : array
return array

toJson() public method

Turns this object into a json serialized object
public toJson ( integer $options ) : string
$options integer
return string

Property Details

$appendsToLinkData protected_oe property

protected $appendsToLinkData

$items protected_oe property

protected $items