Skip to content

Commit 9df7979

Browse files
committed
pkp#8845 Moved $getParams to the parent class, as it's used there
1 parent 0cd44b9 commit 9df7979

6 files changed

+10
-15
lines changed

classes/components/listPanels/ListPanel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class ListPanel
4141
/** @var string Title (expects a translation key) */
4242
public $title = '';
4343

44+
/** @var array|object Query params when getting suggestions. */
45+
public $getParams = [];
46+
4447
/**
4548
* Initialize the form with config parameters
4649
*

classes/components/listPanels/PKPAnnouncementsListPanel.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ class PKPAnnouncementsListPanel extends ListPanel
2626
/** @param \PKP\components\forms\announcement\PKPAnnouncementForm Form for adding or editing an email template */
2727
public $form = null;
2828

29-
/** @var array Query parameters to pass if this list executes GET requests */
30-
public $getParams = [];
31-
3229
/** @var int Max number of items available to display in this list panel */
3330
public $itemsMax = 0;
3431

classes/components/listPanels/PKPDoiListPanel.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ abstract class PKPDoiListPanel extends ListPanel
3030
/** @var int How many items to display on one page in this list */
3131
public $count = 30;
3232

33-
/** @var array Query parameters to pass if this list executes GET requests */
34-
public $getParams = [];
35-
3633
/** @var int Max number of items available to display in this list panel */
3734
public $itemsMax = 0;
3835

classes/components/listPanels/PKPInstitutionsListPanel.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ class PKPInstitutionsListPanel extends ListPanel
2828
/** Form for adding or editing an institution */
2929
public ?PKPInstitutionForm $form = null;
3030

31-
/**Query parameters to pass if this list executes GET requests */
32-
public array $getParams = [];
33-
3431
/** Max number of items available to display in this list panel */
3532
public int $itemsMax = 0;
3633

classes/components/listPanels/PKPSelectReviewerListPanel.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ class PKPSelectReviewerListPanel extends ListPanel
3333
/** @var array List of user IDs already assigned as a reviewer to this review round */
3434
public $currentlyAssigned = [];
3535

36-
/** @var array Query parameters to pass if this list executes GET requests */
37-
public $getParams = [];
38-
3936
/** @var int Count of total items available for list */
4037
public $itemsMax = 0;
4138

classes/components/listPanels/PKPSubmissionsListPanel.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ abstract class PKPSubmissionsListPanel extends ListPanel
3333
/** @var int Number of items to show at one time */
3434
public $count = 30;
3535

36-
/** @var array Query parameters to pass if this list executes GET requests */
37-
public $getParams = [];
38-
3936
/** @var bool Should items be loaded after the component is mounted? */
4037
public $lazyLoad = false;
4138

@@ -260,4 +257,11 @@ public function getCategoryFilters($categories = [])
260257

261258
return [];
262259
}
260+
261+
/**
262+
* Get an array of workflow stages supported by the current app
263+
*
264+
* @return array
265+
*/
266+
abstract public function getWorkflowStages();
263267
}

0 commit comments

Comments
 (0)