-
Notifications
You must be signed in to change notification settings - Fork 18
/
ext.php
29 lines (26 loc) · 658 Bytes
/
ext.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
*
* Advertisement management. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2017 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace phpbb\ads;
class ext extends \phpbb\extension\base
{
public const DATE_FORMAT = 'Y-m-d';
public const MAX_NAME_LENGTH = 255;
public const DEFAULT_PRIORITY = 5;
public const AD_BLOCK_MODES = [0, 1, 2];
/**
* {@inheritdoc}
*
* Requires phpBB 3.3.2 due to using role_exists check in permission migration.
*/
public function is_enableable()
{
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=');
}
}