All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
LeaderboardDataProvider Class Reference
Inheritance diagram for LeaderboardDataProvider:
RedBeanModelDataProvider

Public Member Functions

 setType ($type)
 
 calculateTotalItemCount ()
 
- Public Member Functions inherited from RedBeanModelDataProvider
 __construct ($modelClassName, $sortAttribute=null, $sortDescending=false, array $searchAttributeData=array(), array $config=array())
 
 getModelClassName ()
 
 setOffset ($offset)
 
 getSort ()
 
 calculateTotalItemCount ()
 

Static Public Member Functions

static getUserLeaderboardData ($type, $offset=null, $count=null)
 
- Static Public Member Functions inherited from RedBeanModelDataProvider
static resolveSortAttributeColumnName ($modelClassName, &$joinTablesAdapter, $sortAttribute)
 
static getSortAttributeName ($modelClassName)
 
static makeWhere ($modelClassName, array $metadata, &$joinTablesAdapter)
 

Protected Member Functions

 fetchData ()
 
 fetchKeys ()
 
- Protected Member Functions inherited from RedBeanModelDataProvider
 fetchData ()
 
 fetchKeys ()
 
 resolveExtraSql (RedBeanModelJoinTablesQueryAdapter &$joinTablesAdapter, &$where)
 

Protected Attributes

 $type
 
- Protected Attributes inherited from RedBeanModelDataProvider
 $modelClassName
 
 $sortAttribute
 
 $sortDescending
 
 $searchAttributeData
 
 $calculatedTotalItemCount
 
 $offset
 

Detailed Description

A data provider that manages the leaderboard

Definition at line 40 of file LeaderboardDataProvider.php.

Member Function Documentation

fetchData ( )
protected

See the yii documentation.

Definition at line 58 of file LeaderboardDataProvider.php.

calculateTotalItemCount ( )

See the yii documentation. This function is made public for unit testing.

Definition at line 78 of file LeaderboardDataProvider.php.

fetchKeys ( )
protected

See the yii documentation.

Definition at line 86 of file LeaderboardDataProvider.php.

static getUserLeaderboardData (   $type,
  $offset = null,
  $count = null 
)
static
Parameters
string$type
null | int$offset
null | int$count
Returns
array

Definition at line 102 of file LeaderboardDataProvider.php.


The documentation for this class was generated from the following file:
Generated on Sat Jun 6 2020 07:10:52