Open Journal Systems  3.3.0
URNSettingsForm Class Reference
Inheritance diagram for URNSettingsForm:
Form

Public Member Functions

 __construct ($plugin, $contextId)
 
 _getContextId ()
 
 _getFormFields ()
 
 _getPlugin ()
 
 execute (... $functionArgs)
 
 fetch ($request)
 
 initData ()
 
 readInputData ()
 
- Public Member Functions inherited from Form
 __construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 addSupportedFormLocale ($supportedLocale)
 
 display ($request=null, $template=null)
 
 fetch ($request, $template=null, $display=false)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 isValid ()
 
 readUserVars ($vars)
 
 setData ($key, $value=null)
 
 setDefaultFormLocale ($defaultLocale)
 
 setTemplate ($template)
 
 validate ($callHooks=true)
 

Data Fields

 $_contextId
 
 $_plugin
 
- Data Fields inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $defaultLocale
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for journal managers to setup URN plugin.

Definition at line 19 of file URNSettingsForm.inc.php.

Constructor & Destructor Documentation

◆ __construct()

URNSettingsForm::__construct (   $plugin,
  $contextId 
)

Constructor

Parameters
$pluginURNPubIdPlugin
$contextIdinteger

Definition at line 60 of file URNSettingsForm.inc.php.

References Form\addCheck(), PKPApplication\get(), and Form\setData().

Member Function Documentation

◆ _getContextId()

URNSettingsForm::_getContextId ( )

Get the context ID.

Returns
integer

Definition at line 34 of file URNSettingsForm.inc.php.

References $_contextId.

Referenced by execute(), and initData().

◆ _getFormFields()

URNSettingsForm::_getFormFields ( )

Definition at line 159 of file URNSettingsForm.inc.php.

Referenced by execute(), initData(), and readInputData().

◆ _getPlugin()

URNSettingsForm::_getPlugin ( )

Get the plugin.

Returns
URNPubIdPlugin

Definition at line 48 of file URNSettingsForm.inc.php.

References $_plugin.

Referenced by execute(), and initData().

◆ execute()

URNSettingsForm::execute (   $functionArgs)

Execute the form's action. (Note that it is assumed that the form has already been validated.)

Parameters
mixed$functionArgs,...Arguments from the caller to be passed to the hook consumer
Returns
mixed Result from the consumer to be passed to the caller. Send a true-ish result if you want the caller to do something with the return value.

Reimplemented from Form.

Definition at line 147 of file URNSettingsForm.inc.php.

References _getContextId(), _getFormFields(), _getPlugin(), and Form\getData().

◆ fetch()

URNSettingsForm::fetch (   $request)

Returns a string of the rendered form

Parameters
$requestPKPRequest
$templatestring the template to be rendered, mandatory if no template has been specified on class instantiation.
$displayboolean
Returns
string the rendered form

Definition at line 112 of file URNSettingsForm.inc.php.

References PKPTemplateManager\getManager().

◆ initData()

URNSettingsForm::initData ( )

Initialize form data for a new form.

Reimplemented from Form.

Definition at line 129 of file URNSettingsForm.inc.php.

References _getContextId(), _getFormFields(), _getPlugin(), and Form\setData().

◆ readInputData()

URNSettingsForm::readInputData ( )

Assign form data to user-submitted data. Can be overridden from subclasses.

Reimplemented from Form.

Definition at line 140 of file URNSettingsForm.inc.php.

References _getFormFields(), and Form\readUserVars().

Field Documentation

◆ $_contextId

integer URNSettingsForm::$_contextId

Definition at line 28 of file URNSettingsForm.inc.php.

Referenced by _getContextId().

◆ $_plugin

URNPubIdPlugin URNSettingsForm::$_plugin

Definition at line 42 of file URNSettingsForm.inc.php.

Referenced by _getPlugin().


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