Bug: T50247
Change-Id: I887175add5e151cb4e195a15efeb334486297d22
*/
private $existingPropNames = null;
*/
private $existingPropNames = null;
+ /**
+ * @var string|null
+ */
+ private $ns;
+
'label-message' => 'pageswithprop-prop',
'required' => true,
],
'label-message' => 'pageswithprop-prop',
'required' => true,
],
+ 'namespace' => [
+ 'type' => 'namespaceselect',
+ 'name' => 'namespace',
+ 'label-message' => 'namespace',
+ 'all' => null,
+ 'default' => null,
+ ],
'reverse' => [
'type' => 'check',
'name' => 'reverse',
'reverse' => [
'type' => 'check',
'name' => 'reverse',
public function onSubmit( $data, $form ) {
$this->propName = $data['propname'];
public function onSubmit( $data, $form ) {
$this->propName = $data['propname'];
+ $this->ns = $data['namespace'];
parent::execute( $data['propname'] );
}
parent::execute( $data['propname'] );
}
}
public function getQueryInfo() {
}
public function getQueryInfo() {
'tables' => [ 'page_props', 'page' ],
'fields' => [
'page_id' => 'pp_page',
'tables' => [ 'page_props', 'page' ],
'fields' => [
'page_id' => 'pp_page',
+
+ if ( $this->ns && isset( $this->ns ) ) {
+ $query['conds']['page_namespace'] = $this->ns;
+ }
+
+ return $query;
}
function getOrderFields() {
}
function getOrderFields() {