-
Notifications
You must be signed in to change notification settings - Fork 474
Expand file tree
/
Copy pathFieldFunder.php
More file actions
54 lines (44 loc) · 1.08 KB
/
FieldFunder.php
File metadata and controls
54 lines (44 loc) · 1.08 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* @file classes/components/form/FieldFunder.php
*
* Copyright (c) 2026 Simon Fraser University
* Copyright (c) 2026 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class FieldFunder
*
* @ingroup classes_controllers_form
*
* @brief A field for funder information.
*/
namespace PKP\components\forms;
class FieldFunder extends Field
{
/** @copydoc Field::$component */
public $component = 'field-funder';
/** @copydoc Field::$component */
public $default = [];
/**
* Submission ID associated with the funder
*/
public int $submissionId = 0;
/**
* Primary language
*/
public string $primaryLocale = '';
/**
* Supported locales for forms
*/
public array $supportedFormLocales = [];
/**
* @copydoc Field::getConfig()
*/
public function getConfig()
{
$config = parent::getConfig();
$config['submissionId'] = $this->submissionId;
$config['value'] = $this->value ?? $this->default ?? null;
return $config;
}
}