Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / box / TodaysFollowingBirthdaysBoxController.class.php
CommitLineData
ea42130c 1<?php
a9229942 2
ea42130c 3namespace wcf\system\box;
a9229942 4
ea42130c
MW
5use wcf\system\WCF;
6
7/**
8 * Shows today's birthdays of users the active user is following.
9 *
a9229942
TD
10 * @author Marcel Werk
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Box
14 * @since 3.0
ea42130c 15 */
a9229942
TD
16class TodaysFollowingBirthdaysBoxController extends TodaysBirthdaysBoxController
17{
18 /**
19 * @inheritDoc
20 * @since 5.3
21 */
22 protected $conditionDefinition = 'com.woltlab.wcf.box.todaysFollowingBirthdays.condition';
23
24 /**
25 * @inheritDoc
26 */
27 protected $templateName = 'boxTodaysFollowingBirthdays';
28
29 /**
30 * @inheritDoc
31 */
32 protected function filterUserIDs(&$userIDs)
33 {
34 /** @noinspection PhpUndefinedMethodInspection */
35 $userIDs = \array_intersect($userIDs, WCF::getUserProfileHandler()->getFollowingUsers());
36 }
ea42130c 37}