-
Notifications
You must be signed in to change notification settings - Fork 0
/
_generic.php
39 lines (25 loc) · 817 Bytes
/
_generic.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
<?php
#
# A MediaWiki bot - used for automated tasks on sites powered by MediaWiki.
# Line framework - Generic General Filter class
#
# Author: Grigor Gatchev <grigor at gatchev dot info>
# Licensed under GNU Affero Public License, version 3.0 or any later.
#
# ---------------------------------------------------------------------------- #
require_once ( dirname ( __FILE__ ) . '/../_generic.php' );
abstract class Filter_WikiObject extends Filter_Sieving
{
# ----- Instantiating ----- #
protected function element_id_string ( &$signal )
{
$id = $signal->data_unique_id ( $this->default_data_key );
if ( is_null ( $id ) )
$id = "---unknown wiki object id (something must be wrong!)---";
return "General id " . $id;
}
protected function slotname_preface ()
{
return "General";
}
}