-
Notifications
You must be signed in to change notification settings - Fork 0
/
DpleFeatureLinksfrom.php
42 lines (39 loc) · 1.15 KB
/
DpleFeatureLinksfrom.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
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
die( 1 );
}
/**
* @brief Class DpleFeatureLinksfrom.
*
* @file
*
* @ingroup Extensions
* @ingroup Extensions-DynamicPageListEngine
*
* @author [RV1971](http://www.mediawiki.org/wiki/User:RV1971)
*
*/
/**
* @brief Selection by links from specified pages.
*
* Recognizes the parameters `linksfrom` and `notlinksfrom`. Each of
* them may be a string or an array. The names are chosen for
* compatibility with [Extension:DynamicPageList
* (third-party)](https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party%29).
*
* @ingroup Extensions
* @ingroup Extensions-DynamicPageListEngine
*/
class DpleFeatureLinksfrom extends DpleFeatureLinksBase
implements DpleFeatureInterface {
/// Constructor. Evaluate parameters.
public function __construct( array $params, array &$features ) {
parent::__construct( $params, $features,
'linksfrom', NS_MAIN,
'pagelinks', 'plx', 'pl_namespace',
array( 'page_namespace = $table.pl_namespace',
'page_title = $table.pl_title',
'$table.pl_from = $id' ) );
}
}