PHP Class Devise\Search\Pagination

Inheritance: implements IteratorAggregat\IteratorAggregate, implements Illuminate\Contracts\Support\Jsonable
Afficher le fichier Open project: devisephp/cms

Protected Properties

Свойство Type Description
$appendsToLink
$appendsToLinkData
$items

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Creates the view for us
protected View ( ) : mixed
Résultat mixed

appends() public méthode

Append input queries
public appends ( $data )
$data

convertItemsToRealModel() protected méthode

..
protected convertItemsToRealModel ( )

getIterator() public méthode

Iterator lets us traverse this paginated object
public getIterator ( ) : Traversable
Résultat Traversable

make() public méthode

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

toArray() public méthode

Turns this paginated object into an array
public toArray ( ) : array
Résultat array

toJson() public méthode

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

Property Details

$appendsToLinkData protected_oe property

protected $appendsToLinkData

$items protected_oe property

protected $items