Open Journal Systems  3.3.0
PKP\components\forms\FormComponent Class Reference
Inheritance diagram for PKP\components\forms\FormComponent:
APP\components\forms\context\AccessForm APP\components\forms\context\ArchivingLockssForm APP\components\forms\publication\AssignToIssueForm APP\components\forms\publication\IssueEntryForm APP\components\forms\publication\PublishForm PKP\components\forms\announcement\PKPAnnouncementForm PKP\components\forms\context\PKPAnnouncementSettingsForm PKP\components\forms\context\PKPAppearanceAdvancedForm PKP\components\forms\context\PKPAppearanceSetupForm PKP\components\forms\context\PKPAuthorGuidelinesForm PKP\components\forms\context\PKPContactForm PKP\components\forms\context\PKPContextForm PKP\components\forms\context\PKPDateTimeForm PKP\components\forms\context\PKPDisableSubmissionsForm PKP\components\forms\context\PKPEmailSetupForm PKP\components\forms\context\PKPInformationForm PKP\components\forms\context\PKPLicenseForm PKP\components\forms\context\PKPListsForm PKP\components\forms\context\PKPMastheadForm PKP\components\forms\context\PKPMetadataSettingsForm PKP\components\forms\context\PKPPaymentSettingsForm PKP\components\forms\context\PKPPrivacyForm PKP\components\forms\context\PKPReviewGuidanceForm PKP\components\forms\context\PKPReviewSetupForm PKP\components\forms\context\PKPSearchIndexingForm PKP\components\forms\context\PKPThemeForm PKP\components\forms\context\PKPUserAccessForm PKP\components\forms\emailTemplate\PKPEmailTemplateForm PKP\components\forms\publication\PKPCitationsForm PKP\components\forms\publication\PKPMetadataForm PKP\components\forms\publication\PKPPublicationIdentifiersForm PKP\components\forms\publication\PKPPublicationLicenseForm PKP\components\forms\publication\PKPTitleAbstractForm PKP\components\forms\site\PKPSiteAppearanceForm PKP\components\forms\site\PKPSiteConfigForm PKP\components\forms\site\PKPSiteInformationForm

Public Member Functions

 __construct ($id, $method, $action, $locales)
 
 addField ($field, $position=[])
 
 addGroup ($args, $position=[])
 
 addPage ($args, $position=[])
 
 addToPosition ($id, $list, $item, $position)
 
 getConfig ()
 
 getField ($fieldName)
 
 getFieldConfig ($field)
 
 removeField ($fieldName)
 
 removeGroup ($groupId)
 
 removePage ($pageId)
 

Data Fields

 $action = ''
 
 $errors = []
 
 $fields = []
 
 $groups = []
 
 $id = ''
 
 $locales = []
 
 $method = ''
 
 $pages = []
 

Detailed Description

Definition at line 20 of file FormComponent.inc.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addField()

PKP\components\forms\FormComponent::addField (   $field,
  $position = [] 
)

Add a form field

Parameters
$fieldField
$positionarray [ @option string One of FIELD_POSITION_BEFORE or FIELD_POSITION_AFTER @option string The field to position it before or after ]
Returns
FormComponent

Definition at line 94 of file FormComponent.inc.php.

References PKP\components\forms\FormComponent\addToPosition().

Referenced by APP\components\forms\context\MastheadForm\__construct(), APP\components\forms\context\MetadataSettingsForm\__construct(), APP\components\forms\context\UserAccessForm\__construct(), APP\components\forms\context\AppearanceSetupForm\__construct(), APP\components\forms\context\ContextForm\__construct(), APP\components\forms\context\LicenseForm\__construct(), PKP\components\forms\emailTemplate\PKPEmailTemplateForm\__construct(), PKP\components\forms\publication\PKPCitationsForm\__construct(), PKP\components\forms\context\PKPDisableSubmissionsForm\__construct(), APP\components\forms\publication\AssignToIssueForm\__construct(), PKP\components\forms\context\PKPMetadataSettingsForm\__construct(), PKP\components\forms\context\PKPAuthorGuidelinesForm\__construct(), PKP\components\forms\publication\PKPTitleAbstractForm\__construct(), PKP\components\forms\context\PKPUserAccessForm\__construct(), PKP\components\forms\context\PKPListsForm\__construct(), PKP\components\forms\context\PKPPrivacyForm\__construct(), PKP\components\forms\context\PKPReviewGuidanceForm\__construct(), PKP\components\forms\site\PKPSiteConfigForm\__construct(), APP\components\forms\context\ArchivingLockssForm\__construct(), PKP\components\forms\context\PKPContextForm\__construct(), PKP\components\forms\context\PKPEmailSetupForm\__construct(), PKP\components\forms\context\PKPLicenseForm\__construct(), PKP\components\forms\announcement\PKPAnnouncementForm\__construct(), PKP\components\forms\context\PKPAnnouncementSettingsForm\__construct(), PKP\components\forms\site\PKPSiteInformationForm\__construct(), PKP\components\forms\publication\PKPMetadataForm\__construct(), PKP\components\forms\context\PKPReviewSetupForm\__construct(), PKP\components\forms\publication\PKPPublicationLicenseForm\__construct(), APP\components\forms\context\AccessForm\__construct(), PKP\components\forms\context\PKPAppearanceAdvancedForm\__construct(), PKP\components\forms\site\PKPSiteAppearanceForm\__construct(), PKP\components\forms\context\PKPAppearanceSetupForm\__construct(), APP\components\forms\publication\IssueEntryForm\__construct(), and PKP\components\forms\context\PKPThemeForm\__construct().

◆ addGroup()

PKP\components\forms\FormComponent::addGroup (   $args,
  $position = [] 
)

Add a form group

Parameters
$argsarray [ @option id string Required A unique ID for this form group @option label string A label to identify this group of fields. Will become the fieldset's <legend> @option description string A description of this group of fields. ]
$positionarray [ @option string One of FIELD_POSITION_BEFORE or FIELD_POSITION_AFTER @option string The group to position it before or after ]
Returns
FormComponent

Definition at line 145 of file FormComponent.inc.php.

References PKP\components\forms\FormComponent\addToPosition(), and fatalError().

Referenced by PKP\components\forms\context\PKPDateTimeForm\__construct(), PKP\components\forms\context\PKPContactForm\__construct(), PKP\components\forms\context\PKPPaymentSettingsForm\__construct(), PKP\components\forms\context\PKPInformationForm\__construct(), PKP\components\forms\context\PKPMastheadForm\__construct(), PKP\components\forms\context\PKPSearchIndexingForm\__construct(), APP\components\forms\publication\PublishForm\__construct(), PKP\components\forms\context\PKPThemeForm\getConfig(), and PKP\components\forms\FormComponent\getConfig().

◆ addPage()

PKP\components\forms\FormComponent::addPage (   $args,
  $position = [] 
)

Add a form page

Parameters
$argsarray [ @option id string Required A unique ID for this form page @option label string The name of the page to identify it in the page list @option submitButton array Required Assoc array defining submission/next button params. Supports any param of the Button component in the UI Library. @option previousButton array Assoc array defining button params to go back to the previous page. Supports any param of the Button component in the UI Library. ]
$positionarray [ @option string One of FIELD_POSITION_BEFORE or FIELD_POSITION_AFTER @option string The page to position it before or after ]
Returns
FormComponent

Definition at line 188 of file FormComponent.inc.php.

References PKP\components\forms\FormComponent\addToPosition(), and fatalError().

Referenced by APP\components\forms\publication\PublishForm\__construct(), and PKP\components\forms\FormComponent\getConfig().

◆ addToPosition()

PKP\components\forms\FormComponent::addToPosition (   $id,
  $list,
  $item,
  $position 
)

Add an field, group or page to a specific position in its array

Parameters
$idstring The id of the item to position before or after
$listarray The list of fields, groups or pages
$itemarray The item to insert
$positionstring FIELD_POSITION_BEFORE or FIELD_POSITION_AFTER
Returns
array

Definition at line 227 of file FormComponent.inc.php.

References PKP\components\forms\FormComponent\$id, and PKP\components\forms\FIELD_POSITION_BEFORE.

Referenced by PKP\components\forms\FormComponent\addField(), PKP\components\forms\FormComponent\addGroup(), PKP\components\forms\FormComponent\addPage(), and PKP\components\forms\context\PKPThemeForm\addThemeField().

◆ getConfig()

PKP\components\forms\FormComponent::getConfig ( )

◆ getField()

PKP\components\forms\FormComponent::getField (   $fieldName)

Get a form field

Parameters
$fieldNamestring
Returns
Field

Definition at line 122 of file FormComponent.inc.php.

◆ getFieldConfig()

PKP\components\forms\FormComponent::getFieldConfig (   $field)

Compile a configuration array for a single field

Parameters
$fieldField
Returns
array

Definition at line 311 of file FormComponent.inc.php.

Referenced by PKP\components\forms\context\PKPThemeForm\getConfig().

◆ removeField()

PKP\components\forms\FormComponent::removeField (   $fieldName)

Remove a form field

Parameters
$fieldNamestring
Returns
FormComponent

Definition at line 109 of file FormComponent.inc.php.

◆ removeGroup()

PKP\components\forms\FormComponent::removeGroup (   $groupId)

Remove a form group

Parameters
$groupIdstring
Returns
FormComponent

Definition at line 163 of file FormComponent.inc.php.

Referenced by PKP\components\forms\FormComponent\removePage().

◆ removePage()

PKP\components\forms\FormComponent::removePage (   $pageId)

Remove a form page

Parameters
$pageIdstring
Returns
FormComponent

Definition at line 206 of file FormComponent.inc.php.

References PKP\components\forms\FormComponent\removeGroup().

Field Documentation

◆ $action

string FormComponent::$action = ''

Where the form should be submitted.

Definition at line 37 of file FormComponent.inc.php.

Referenced by APP\components\forms\context\MastheadForm\__construct(), APP\components\forms\context\MetadataSettingsForm\__construct(), APP\components\forms\context\UserAccessForm\__construct(), APP\components\forms\context\ContextForm\__construct(), APP\components\forms\context\AppearanceSetupForm\__construct(), APP\components\forms\context\LicenseForm\__construct(), PKP\components\forms\publication\PKPCitationsForm\__construct(), PKP\components\forms\emailTemplate\PKPEmailTemplateForm\__construct(), PKP\components\forms\context\PKPDateTimeForm\__construct(), PKP\components\forms\context\PKPDisableSubmissionsForm\__construct(), APP\components\forms\publication\AssignToIssueForm\__construct(), PKP\components\forms\context\PKPAuthorGuidelinesForm\__construct(), PKP\components\forms\context\PKPMetadataSettingsForm\__construct(), PKP\components\forms\context\PKPReviewGuidanceForm\__construct(), PKP\components\forms\context\PKPContactForm\__construct(), PKP\components\forms\site\PKPSiteConfigForm\__construct(), PKP\components\forms\publication\PKPTitleAbstractForm\__construct(), PKP\components\forms\context\PKPUserAccessForm\__construct(), PKP\components\forms\context\PKPListsForm\__construct(), PKP\components\forms\context\PKPPaymentSettingsForm\__construct(), PKP\components\forms\context\PKPPrivacyForm\__construct(), PKP\components\forms\context\PKPEmailSetupForm\__construct(), PKP\components\forms\context\PKPContextForm\__construct(), PKP\components\forms\site\PKPSiteInformationForm\__construct(), PKP\components\forms\announcement\PKPAnnouncementForm\__construct(), PKP\components\forms\context\PKPInformationForm\__construct(), PKP\components\forms\context\PKPAnnouncementSettingsForm\__construct(), PKP\components\forms\context\PKPLicenseForm\__construct(), PKP\components\forms\context\PKPMastheadForm\__construct(), APP\components\forms\context\ArchivingLockssForm\__construct(), PKP\components\forms\context\PKPReviewSetupForm\__construct(), PKP\components\forms\publication\PKPMetadataForm\__construct(), PKP\components\forms\context\PKPSearchIndexingForm\__construct(), APP\components\forms\context\AccessForm\__construct(), PKP\components\forms\publication\PKPPublicationLicenseForm\__construct(), PKP\components\forms\site\PKPSiteAppearanceForm\__construct(), PKP\components\forms\context\PKPAppearanceAdvancedForm\__construct(), PKP\components\forms\context\PKPAppearanceSetupForm\__construct(), APP\components\forms\publication\IssueEntryForm\__construct(), PKP\components\forms\publication\PKPPublicationIdentifiersForm\__construct(), PKP\components\forms\context\PKPThemeForm\__construct(), APP\components\forms\publication\PublishForm\__construct(), and PKP\components\forms\FormComponent\__construct().

◆ $errors

array FormComponent::$errors = []

List of error messages

Definition at line 67 of file FormComponent.inc.php.

◆ $fields

array FormComponent::$fields = []

List of fields in this form.

Definition at line 49 of file FormComponent.inc.php.

Referenced by PKP\components\forms\context\PKPThemeForm\getConfig(), and PKP\components\forms\FormComponent\getConfig().

◆ $groups

array FormComponent::$groups = []

List of groups in this form.

Definition at line 55 of file FormComponent.inc.php.

Referenced by PKP\components\forms\FormComponent\getConfig().

◆ $id

string FormComponent::$id = ''

◆ $locales

array FormComponent::$locales = []

Key/value list of languages this form should support. Key = locale code. Value = locale name

Definition at line 43 of file FormComponent.inc.php.

Referenced by APP\components\forms\context\MastheadForm\__construct(), APP\components\forms\context\AppearanceSetupForm\__construct(), APP\components\forms\context\ContextForm\__construct(), APP\components\forms\context\LicenseForm\__construct(), PKP\components\forms\emailTemplate\PKPEmailTemplateForm\__construct(), PKP\components\forms\context\PKPDateTimeForm\__construct(), PKP\components\forms\context\PKPDisableSubmissionsForm\__construct(), PKP\components\forms\context\PKPAuthorGuidelinesForm\__construct(), PKP\components\forms\site\PKPSiteConfigForm\__construct(), PKP\components\forms\publication\PKPTitleAbstractForm\__construct(), PKP\components\forms\context\PKPListsForm\__construct(), PKP\components\forms\context\PKPPaymentSettingsForm\__construct(), PKP\components\forms\context\PKPPrivacyForm\__construct(), PKP\components\forms\context\PKPContactForm\__construct(), PKP\components\forms\context\PKPReviewGuidanceForm\__construct(), APP\components\forms\context\ArchivingLockssForm\__construct(), PKP\components\forms\site\PKPSiteInformationForm\__construct(), PKP\components\forms\context\PKPEmailSetupForm\__construct(), PKP\components\forms\announcement\PKPAnnouncementForm\__construct(), PKP\components\forms\context\PKPInformationForm\__construct(), PKP\components\forms\context\PKPLicenseForm\__construct(), PKP\components\forms\context\PKPAnnouncementSettingsForm\__construct(), PKP\components\forms\context\PKPMastheadForm\__construct(), PKP\components\forms\context\PKPContextForm\__construct(), PKP\components\forms\context\PKPSearchIndexingForm\__construct(), PKP\components\forms\publication\PKPMetadataForm\__construct(), PKP\components\forms\context\PKPReviewSetupForm\__construct(), APP\components\forms\context\AccessForm\__construct(), PKP\components\forms\publication\PKPPublicationLicenseForm\__construct(), PKP\components\forms\context\PKPAppearanceAdvancedForm\__construct(), PKP\components\forms\site\PKPSiteAppearanceForm\__construct(), PKP\components\forms\context\PKPAppearanceSetupForm\__construct(), APP\components\forms\publication\IssueEntryForm\__construct(), PKP\components\forms\publication\PKPPublicationIdentifiersForm\__construct(), PKP\components\forms\context\PKPThemeForm\__construct(), and PKP\components\forms\FormComponent\__construct().

◆ $method

string FormComponent::$method = ''

Form method: POST or PUT

Definition at line 31 of file FormComponent.inc.php.

Referenced by PKP\components\forms\FormComponent\__construct().

◆ $pages

array FormComponent::$pages = []

List of pages in this form.

Definition at line 61 of file FormComponent.inc.php.


The documentation for this class was generated from the following file: