Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / page / handler / IMenuPageHandler.class.php
CommitLineData
72604b0d 1<?php
a9229942 2
72604b0d
AE
3namespace wcf\system\page\handler;
4
5/**
b2aa772d 6 * Default interface for pages supporting visibility and outstanding items.
a9229942
TD
7 *
8 * @author Alexander Ebert
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Page\Handler
12 * @since 3.0
72604b0d 13 */
a9229942
TD
14interface IMenuPageHandler
15{
16 /**
17 * Returns the number of outstanding items for this page for display as a badge, optionally
18 * specifying a corresponding object id to limit the scope.
19 *
20 * @param int|null $objectID optional page object id
21 * @return int number of outstanding items
22 */
23 public function getOutstandingItemCount($objectID = null);
24
25 /**
26 * Returns false if this page should be hidden from menus, but does not control the accessibility
27 * of the page itself. The visibility can optionally be scoped to the given object id.
28 *
29 * @param int|null $objectID optional page object id
30 * @return bool false if the page should be hidden from menus
31 */
32 public function isVisible($objectID = null);
72604b0d 33}