-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathadmin_interface.php
105 lines (95 loc) · 2.17 KB
/
admin_interface.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
*
* Board Rules extension for the phpBB Forum Software package.
*
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace phpbb\boardrules\controller;
/**
* Interface for our admin controller
*
* This describes all of the methods we'll use for the admin front-end of this extension
*/
interface admin_interface
{
/**
* Display the options a user can configure for this extension
*
* @return void
* @access public
*/
public function display_options();
/**
* Display the language selection
*
* Display the available languages to add/manage board rules from.
* If there is only one board language, this will just call display_rules().
*
* @return void
* @access public
*/
public function display_language_selection();
/**
* Display the rules
*
* @param string $language Language selection iso
* @param int $parent_id Category to display rules from; default: 0
* @return void
* @access public
*/
public function display_rules($language, $parent_id = 0);
/**
* Add a rule
*
* @param string $language Language selection iso
* @param int $parent_id Category to display rules from; default: 0
* @return void
* @access public
*/
public function add_rule($language, $parent_id = 0);
/**
* Edit a rule
*
* @param int $rule_id The rule identifier to edit
* @return void
* @access public
*/
public function edit_rule($rule_id);
/**
* Delete a rule
*
* @param int $rule_id The rule identifier to delete
* @return void
* @access public
*/
public function delete_rule($rule_id);
/**
* Move a rule up/down
*
* @param int $rule_id The rule identifier to move
* @param string $direction The direction (up|down)
* @param int $amount The number of places to move the rule
* @return void
* @access public
*/
public function move_rule($rule_id, $direction, $amount = 1);
/**
* Send notification to users
*
* @param int $rule_id The rule identifier
* @return void
* @access public
*/
public function send_notification($rule_id);
/**
* Set page url
*
* @param string $u_action Custom form action
* @return void
* @access public
*/
public function set_page_url($u_action);
}