A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.yiiframework.com/doc/api/2.0/yii-data-dataproviderinterface below:

DataProviderInterface, yii\data\DataProviderInterface | API Documentation for Yii 2.0

Interface yii\data\DataProviderInterface Method Details

Hide inherited methods

Returns the number of data models in the current page.

This is equivalent to count($provider->getModels()). When pagination is false, this is the same as totalCount.

Source code

                public function getCount();

            

Returns the key values associated with the data models.

public abstract array getKeys ( ) return array

The list of key values corresponding to models. Each data model in models is uniquely identified by the corresponding key value in this array.

Source code

                public function getKeys();

            

Returns the data models in the current page.

Source code

                public function getModels();

            

Returns the total number of data models.

When pagination is false, this is the same as count.

Source code

                public function getTotalCount();

            

Prepares the data models and keys.

This method will prepare the data models and keys that can be retrieved via getModels() and getKeys().

This method will be implicitly called by getModels() and getKeys() if it has not been called before.

public abstract void prepare ( $forcePrepare false ) $forcePrepare boolean

Whether to force data preparation even if it has been done before.

Source code

                public function prepare($forcePrepare = false);

            

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4