Open Journal Systems  3.3.0
PKPListsForm.inc.php
1 <?php
16 use \PKP\components\forms\FormComponent;
17 use \PKP\components\forms\FieldText;
18 
19 define('FORM_LISTS', 'lists');
20 
21 class PKPListsForm extends FormComponent {
23  public $id = FORM_LISTS;
24 
26  public $method = 'PUT';
27 
35  public function __construct($action, $locales, $context) {
36  $this->action = $action;
37  $this->locales = $locales;
38 
39  $this->addField(new FieldText('itemsPerPage', [
40  'label' => __('common.itemsPerPage'),
41  'description' => __('manager.setup.itemsPerPage.description'),
42  'isRequired' => true,
43  'value' => $context->getData('itemsPerPage'),
44  'size' => 'small',
45  ]))
46  ->addField(new FieldText('numPageLinks', [
47  'label' => __('manager.setup.numPageLinks'),
48  'description' => __('manager.setup.numPageLinks.description'),
49  'isRequired' => true,
50  'value' => $context->getData('numPageLinks'),
51  'size' => 'small',
52  ]));
53  }
54 }
PKP\components\forms\FieldText
Definition: FieldText.inc.php:15
PKP\components\forms\context
Definition: PKPAnnouncementSettingsForm.inc.php:14
PKP\components\forms\FormComponent\$action
$action
Definition: FormComponent.inc.php:37
PKP\components\forms\context\PKPListsForm
Definition: PKPListsForm.inc.php:21
PKP\components\forms\FormComponent
Definition: FormComponent.inc.php:20
PKP\components\forms\context\PKPListsForm\$id
$id
Definition: PKPListsForm.inc.php:23
PKP\components\forms\context\PKPListsForm\__construct
__construct($action, $locales, $context)
Definition: PKPListsForm.inc.php:35
PKP\components\forms\context\FORM_LISTS
const FORM_LISTS
Definition: PKPListsForm.inc.php:19
PKP\components\forms\context\PKPListsForm\$method
$method
Definition: PKPListsForm.inc.php:26
PKP\components\forms\FormComponent\addField
addField($field, $position=[])
Definition: FormComponent.inc.php:94
PKP\components\forms\FormComponent\$locales
$locales
Definition: FormComponent.inc.php:43