Open Preprint Systems  3.3.0
ScreeningForm.inc.php
1 <?php
15 use \PKP\components\forms\FormComponent;
16 use \PKP\components\forms\FieldHTML;
17 
18 define('FORM_SCREENING', 'screening');
19 
22  public $id = FORM_SCREENING;
23 
25  public $method = 'PUT';
26 
34  public function __construct($action, $locales, $context) {
35  $this->action = $action;
36 
37  $rules = [];
38  \HookRegistry::call('Settings::Workflow::listScreeningPlugins', array(&$rules));
39  if (!empty($rules)){
40  $screeningPluginRules .= "<table class=\"pkpTable\">\n";
41  foreach ($rules as $rule) {
42  $screeningPluginRules .= "<tr><td>" . $rule . "</td></tr>\n";
43  }
44  $screeningPluginRules .= "</table>\n";
45  }
46 
47  $this->addPage([
48  'id' => 'default',
49  ]);
50  $this->addGroup([
51  'id' => 'default',
52  'pageId' => 'default',
53  ])
54  ->addField(new FieldHTML('screening', [
55  'description' => $screeningPluginRules,
56  'groupId' => 'default',
57  ]));
58  }
59 
60 }
APP\components\forms\context\ScreeningForm
Definition: ScreeningForm.inc.php:20
PKP\components\forms\FormComponent\addGroup
addGroup($args, $position=[])
Definition: FormComponent.inc.php:145
APP\components\forms\context\ScreeningForm\$id
$id
Definition: ScreeningForm.inc.php:22
APP\components\forms\context
Definition: AccessForm.inc.php:15
APP\components\forms\context\ScreeningForm\$method
$method
Definition: ScreeningForm.inc.php:25
PKP\components\forms\FormComponent\$action
$action
Definition: FormComponent.inc.php:37
PKP\components\forms\FormComponent
Definition: FormComponent.inc.php:20
APP\components\forms\context\FORM_SCREENING
const FORM_SCREENING
Definition: ScreeningForm.inc.php:18
PKP\components\forms\FieldHTML
Definition: FieldHTML.inc.php:16
APP\components\forms\context\ScreeningForm\__construct
__construct($action, $locales, $context)
Definition: ScreeningForm.inc.php:34
PKP\components\forms\FormComponent\addPage
addPage($args, $position=[])
Definition: FormComponent.inc.php:188
PKP\components\forms\FormComponent\$locales
$locales
Definition: FormComponent.inc.php:43
HookRegistry\call
static call($hookName, $args=null)
Definition: HookRegistry.inc.php:86