-
Notifications
You must be signed in to change notification settings - Fork 0
/
DpleFeatureUses.php
40 lines (37 loc) · 1.11 KB
/
DpleFeatureUses.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
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
die( 1 );
}
/**
* @brief Class DpleFeatureUses.
*
* @file
*
* @ingroup Extensions
* @ingroup Extensions-DynamicPageListEngine
*
* @author [RV1971](http://www.mediawiki.org/wiki/User:RV1971)
*
*/
/**
* @brief Selection of pages using specified pages.
*
* Recognizes the parameters `uses` and `notuses`. Each of them
* may be a string or an array. The results are the same as with [Extension:DynamicPageList (third-party)](https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)).
*
* @ingroup Extensions
* @ingroup Extensions-DynamicPageListEngine
*/
class DpleFeatureUses extends DpleFeatureLinksBase
implements DpleFeatureInterface {
/// Constructor. Evaluate parameters.
public function __construct( array $params, array &$features ) {
parent::__construct( $params, $features,
'uses', NS_TEMPLATE,
'templatelinks', 'tl', 'tl_namespace',
array( 'page_id = $table.tl_from',
'$table.tl_namespace = $ns',
'$table.tl_title = $dbkey' ) );
}
}