@@ -37,16 +37,16 @@ discard block |
||
37 | 37 | protected $php_ext; |
38 | 38 | |
39 | 39 | /** |
40 | - * Constructor |
|
41 | - * |
|
42 | - * @param \phpbb\db\driver\driver_interface $db Database object |
|
43 | - * @param \phpbb\controller\helper $helper Controller helper object |
|
44 | - * @param \phpbb\language\language $language Language object |
|
45 | - * @param \phpbb\template\template $template Template object |
|
46 | - * @param string $table_prefix prefix table |
|
47 | - * @param string $php_ext phpEx |
|
48 | - * @access public |
|
49 | - */ |
|
40 | + * Constructor |
|
41 | + * |
|
42 | + * @param \phpbb\db\driver\driver_interface $db Database object |
|
43 | + * @param \phpbb\controller\helper $helper Controller helper object |
|
44 | + * @param \phpbb\language\language $language Language object |
|
45 | + * @param \phpbb\template\template $template Template object |
|
46 | + * @param string $table_prefix prefix table |
|
47 | + * @param string $php_ext phpEx |
|
48 | + * @access public |
|
49 | + */ |
|
50 | 50 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\controller\helper $helper, \phpbb\language\language $language, \phpbb\template\template $template, $table_prefix, $php_ext) |
51 | 51 | { |
52 | 52 | $this->db = $db; |
@@ -58,12 +58,12 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | - * Assign functions defined in this class to event listeners in the core |
|
62 | - * |
|
63 | - * @return array |
|
64 | - * @static |
|
65 | - * @access public |
|
66 | - */ |
|
61 | + * Assign functions defined in this class to event listeners in the core |
|
62 | + * |
|
63 | + * @return array |
|
64 | + * @static |
|
65 | + * @access public |
|
66 | + */ |
|
67 | 67 | static public function getSubscribedEvents() |
68 | 68 | { |
69 | 69 | return array( |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * Display links to Directory |
|
80 | - * |
|
81 | - * @return null |
|
82 | - */ |
|
79 | + * Display links to Directory |
|
80 | + * |
|
81 | + * @return null |
|
82 | + */ |
|
83 | 83 | public function add_page_header_variables() |
84 | 84 | { |
85 | 85 | $ext_theme_path = $this->get_ext_name() . '/styles/prosilver/theme/'; |
@@ -99,11 +99,11 @@ discard block |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
102 | - * Show users as viewing Directory on Who Is Online page |
|
103 | - * |
|
104 | - * @param object $event The event object |
|
105 | - * @return null |
|
106 | - */ |
|
102 | + * Show users as viewing Directory on Who Is Online page |
|
103 | + * |
|
104 | + * @param object $event The event object |
|
105 | + * @return null |
|
106 | + */ |
|
107 | 107 | public function add_page_viewonline($event) |
108 | 108 | { |
109 | 109 | if (strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/directory') === 0) |
@@ -114,11 +114,11 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
117 | - * Load common language files during user setup |
|
118 | - * |
|
119 | - * @param object $event The event object |
|
120 | - * @return null |
|
121 | - */ |
|
117 | + * Load common language files during user setup |
|
118 | + * |
|
119 | + * @param object $event The event object |
|
120 | + * @return null |
|
121 | + */ |
|
122 | 122 | public function load_language_on_setup($event) |
123 | 123 | { |
124 | 124 | $lang_set_ext = $event['lang_set_ext']; |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * Add administrative permissions to manage Directory |
|
134 | - * |
|
135 | - * @param object $event The event object |
|
136 | - * @return null |
|
137 | - */ |
|
133 | + * Add administrative permissions to manage Directory |
|
134 | + * |
|
135 | + * @param object $event The event object |
|
136 | + * @return null |
|
137 | + */ |
|
138 | 138 | public function permissions_add_directory($event) |
139 | 139 | { |
140 | 140 | $event->update_subarray('categories', 'dir', 'ACL_CAT_DIRECTORY'); |
@@ -155,11 +155,11 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * Update Directory tables if needed, after deleted an user |
|
159 | - * |
|
160 | - * @param object $event The event object |
|
161 | - * @return null |
|
162 | - */ |
|
158 | + * Update Directory tables if needed, after deleted an user |
|
159 | + * |
|
160 | + * @param object $event The event object |
|
161 | + * @return null |
|
162 | + */ |
|
163 | 163 | public function update_links_with_anonymous($event) |
164 | 164 | { |
165 | 165 | $user_ids = $event['user_ids']; |