Maslosoft Mangan API
Interface DataProviderInterface
- Maslosoft\Mangan\Interfaces\DataProviderInterface implements Maslosoft\Mangan\Interfaces\CriteriaAwareInterface, Maslosoft\Mangan\Interfaces\ModelAwareInterface, Maslosoft\Mangan\Interfaces\SortAwareInterface
Direct known implementers
Namespace: Maslosoft\Mangan\Interfaces
Author: Piotr Maselkowski
Located at Interfaces/DataProviderInterface.php
Author: Piotr Maselkowski
Located at Interfaces/DataProviderInterface.php
Methods summary
public
array
|
|
public
integer
|
#
getItemCount( boolean $refresh = false )
Returns the number of data items in the current page. This is equivalent to count($provider->getData()) . When pagination is set false, this returns the same value as totalItemCount. |
public
integer
|
#
getTotalItemCount( )
Returns the total number of data items. When pagination is set false, this returns the same value as itemCount. |
public
|
#
getPagination( string $className = Maslosoft\Mangan\Interfaces\Pagination::class )
Returns the pagination object. |
public
|
#
setPagination( boolean|string|array|
Set pagination. This method accepts following types: |
Methods inherited from Maslosoft\Mangan\Interfaces\CriteriaAwareInterface
Methods inherited from Maslosoft\Mangan\Interfaces\ModelAwareInterface
Methods inherited from Maslosoft\Mangan\Interfaces\SortAwareInterface
API documentation generated by ApiGen