public function getLeaderboardTypes()
    {
        $leaderboardTypesArray = array();
        $leaderboardTypesService = $this->getServiceManager()->get('playgroundreward_leaderboardtype_service');
        $leaderboardTypes = $leaderboardTypesService->getLeaderboardTypeMapper()->findAll();
    
        foreach ($leaderboardTypes as $leaderboardType) {
            $leaderboardTypesArray[$leaderboardType->getId()] = $leaderboardType->getName();
        }

        return $leaderboardTypesArray;
    }
public function getLeaderboardTypes()
    {
        $leaderboardTypesArray = array();
        $leaderboardTypesService = $this->getServiceManager()->get('playgroundreward_leaderboardtype_service');
        $leaderboardTypes = $leaderboardTypesService->getLeaderboardTypeMapper()->findAll();
    
        foreach ($leaderboardTypes as $leaderboardType) {
            $leaderboardTypesArray[$leaderboardType->getId()] = $leaderboardType->getName();
        }

        return $leaderboardTypesArray;
    }
public function getLeaderboardTypes ( ) { $ leaderboardTypesArray = array ( ) ; $ leaderboardTypesService = $ this -> getServiceManager ( ) -> get ( 'playgroundreward_leaderboardtype_service' ) ; $ leaderboardTypes = $ leaderboardTypesService -> getLeaderboardTypeMapper ( ) -> findAll ( ) ; foreach ( $ leaderboardTypes as $ leaderboardType ) { $ leaderboardTypesArray [ $ leaderboardType -> getId ( ) ] = $ leaderboardType -> getName ( ) ; } return $ leaderboardTypesArray ; }
retrieve all leaderboard type for associate to storyMapping

@return array $leaderboardTypesArray
retrieve all leaderboard type for associate to storyMapping