PrivacyPolicy::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 0
cts 6
cp 0
crap 2
1
<?php
2
3
/**
4
 * This class takes care of the registration privacy policy
5
 *
6
 * @package   ElkArte Forum
7
 * @copyright ElkArte Forum contributors
8
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
9
 *
10
 * @version 2.0 dev
11
 *
12
 */
13
14
namespace ElkArte;
15
16
/**
17
 * Class PrivacyPolicy
18
 *
19
 * A simple class to take care of the privacy policy
20
 */
21
class PrivacyPolicy extends Agreement
22
{
23
	/**
24
	 * Everything starts here.
25
	 *
26
	 * @param string $language the wanted language of the privacy policy.
27
	 * @param string $backup_dir where to store the backup of the privacy policy.
28
	 */
29
	public function __construct($language, $backup_dir = null)
30
	{
31
		$this->_log_table_name = '{db_prefix}log_privacy_policy_accept';
32
		$this->_backupdir_name = 'privacypolicies';
33
		$this->_file_name = 'PrivacyPolicy';
34
35
		parent::__construct($language, $backup_dir);
36
	}
37
}
38