Retrieve service leaderboardservice instance

@return Service/Leaderboard leaderboardService
189912
public function getLeaderboardService()
    {
        if (! $this->leaderboardService) {
            $this->leaderboardService = $this->getServiceLocator()->get('playgroundreward_leaderboard_service');
        }
    
        return $this->leaderboardService;
    }
1205127
public function getTotal($user)
    {
        $leaderboardType = $this->getLeaderboardTypeService()->getLeaderboardTypeDefault();
        $leaderboardUser = $this->getLeaderboardMapper()->findOneBy(
            array(
                'user' => $user,
                'leaderboardType' => $leaderboardType
            )
        );
        if (!$leaderboardUser) {
            return 0;
        }
        return $leaderboardUser->getTotalPoints();
    }
118391
public function getSearchService()
    {
        if ($this->searchService !== null) {
            return $this->searchService;
        }

        $this->searchService = new SearchService(
            $this,
            $this->searchHandler,
            $this->getDomainMapper(),
            $this->getPermissionCriterionResolver(),
            $this->backgroundIndexer,
            $this->serviceSettings['search']
        );

        return $this->searchService;
    }
257455
protected function requireServiceJobId()
    {
        return $this->serviceName !== null && $this->serviceJobId !== null && $this->repoToken === null;
    }
255664
protected function getQtiResultService()
    {
        if (!$this->service) {
            $this->service = $this->getServiceManager()->get(ResultService::SERVICE_ID);
        }
        return $this->service;
    }
1103790
protected function getClassService()
    {
        if (is_null($this->service)) {
            $this->service = DeliveryTemplateService::singleton();
        }
        return $this->service;
    }
324658
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;
    }
409238
protected function getZendServiceManager()
    {
        if (is_null($this->services)) {
            $options = $this->getOptions();
            $options['services']['search.options']['model'] = $this->model;
            $config         = new Config($options);
            $this->services =  new ServiceManager($config);
        }
        return $this->services;
    }
1245820
public function getRoleService()
    {
        if ($this->roleService !== null) {
            return $this->roleService;
        }

        $this->roleService = new RoleService(
            $this,
            $this->persistenceHandler->userHandler(),
            $this->getLimitationService(),
            $this->getRoleDomainMapper(),
            $this->serviceSettings['role']
        );

        return $this->roleService;
    }
934411
public static I_CmsCoreServiceAsync getService() {

        if (SERVICE == null) {
            SERVICE = GWT.create(I_CmsCoreService.class);
            String serviceUrl = CmsCoreProvider.get().link("org.opencms.gwt.CmsCoreService.gwt");
            ((ServiceDefTarget)SERVICE).setServiceEntryPoint(serviceUrl);
        }
        return SERVICE;
    }
611994
public T getHighestRankedService() {
        Iterator<T> iterator = getServices();
        return iterator.hasNext() ? iterator.next() : null;
    }
1054147
public function getServiceBroker()
    {
        if(!$this->serviceBroker){
            $locator = $this->getLocator();
            $this->setServiceBroker($locator->get('ServiceBroker'));
        }
        
        return $this->serviceBroker;
    }
1053607
public static function getServiceProvider() {
		if (is_callable('_elgg_services')) {
			return _elgg_services();
		}

		global $CONFIG;
		if (!isset($CONFIG)) {
			$path = self::getRootPath() . '/engine/settings.php';
			if (!is_file($path)) {
				$path = self::getRootPath() . '/elgg-config/settings.php';
			}
			require_once $path;
		}

		return new \Elgg\Di\ServiceProvider(new \Elgg\Config($CONFIG));
	}
739507
protected function getService()
    {
        if (!isset($this->service)) {
            $this->service = $this->getServiceLocator()
                    ->get($this->getModuleNamespace() . '\Service\\' . $this->getEntityName());
        }

        return $this->service;
    }
438311
public function getContentService()
    {
        if ($this->contentService !== null) {
            return $this->contentService;
        }

        $this->contentService = new ContentService(
            $this,
            $this->persistenceHandler,
            $this->getDomainMapper(),
            $this->getRelationProcessor(),
            $this->getNameSchemaService(),
            $this->getFieldTypeRegistry(),
            $this->serviceSettings['content']
        );

        return $this->contentService;
    }
607540
public function getProviderService()
    {
        if ($this->providerService == null) {
            $this->setProviderService($this->getServiceLocator()->get('playgrounduser_provider_service'));
        }

        return $this->providerService;
    }
1094284
public function getService()
    {
        if (!$this->service) {
            $this->setService($this->serviceLocator->get('playgroundcore_shortenurl_service'));
        }

        return $this->service;
    }