UserGameDashboardView Class Reference

Inheritance diagram for UserGameDashboardView:
View

Public Member Functions

 __construct (CController $controller, User $user, array $generalLevelData, array $badgeData, array $rankingData, array $statisticsData, array $collectionData)
 isUniqueToAPage ()

Static Public Member Functions

static renderCollectionContent (User $user, GameCollection $collection)
static renderCoinsContent ($coinValue, User $user)

Data Fields

const COLLECTION_CONTAINER_ID_PREFIX = 'game-collection-container'
const COMPLETE_COLLECTION_LINK_PREFIX = 'complete-collection-link'

Protected Member Functions

 renderContent ()
 registerScripts ()
 registerCoreScriptAndPublishToAssets ()
 registerCloseButtonScript ()
 registerLazyLoadImagesScript ()
 renderDashboardContent ()
 renderProfileContent ()
 renderMiniStatisticsContent ()
 renderMiniStatisticsChart ()
 renderBadgesContent ()
 renderEmptyBadgeContent ()
 renderPopulatedBadgeContent ()
 renderLeaderboardContent ()
 renderStatisticsContent ()
 renderCollectionsContent ()
 renderCollectionsCarouselWrapperAndContent ()
 getCompletedCollectionCount ()
 getGameCoinForUser ()
 renderPercentHolderContent ($percentageComplete)

Static Protected Member Functions

static renderCollectionItemsContent (User $user, GameCollection $collection, GameCollectionRules $gameCollectionRules)
static renderCompleteButton ($collectionId, $userId, $canCollect=true)
static getCollectionContainerId ($collectionId)
static getCompleteCollectionLinkId ($collectionId)
static renderGameCoinRefreshAjax ($userId)
static getGameCoinRefreshUrl ($userId)
static getGameCoinContainerId ()
static renderDashboardCloseButton ()
static getDummyImageUrl ()
static resolveLazyLoadImage ($source, $alt= '', $htmlOptions=array())

Protected Attributes

 $controller
 $user
 $generalLevelData
 $badgeData
 $rankingData
 $statisticsData

Detailed Description

Class for displaying a user's game dashboard

Definition at line 40 of file UserGameDashboardView.php.


Constructor & Destructor Documentation

__construct ( CController $  controller,
User user,
array $  generalLevelData,
array $  badgeData,
array $  rankingData,
array $  statisticsData,
array $  collectionData 
)
Parameters:
CController $controller
User $user
array $generalLevelData
array $badgeData
array $rankingData
array $statisticsData
array $collectionData

Definition at line 105 of file UserGameDashboardView.php.


Member Function Documentation

isUniqueToAPage (  ) 

Tells View that it can render the extending class' divs with and id matching their name. Must be overridden to return false in extending classes that can be rendered multiple times within a page to avoid generating a page with non-unique ids which will fail XHtml validation. For those it will render a class attribute with their name.

Reimplemented from View.

Definition at line 117 of file UserGameDashboardView.php.

renderContent (  )  [protected]

Renders the view content.

Reimplemented from View.

Definition at line 122 of file UserGameDashboardView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Oct 16 07:10:30 2017