Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
SectionForm Class Reference
Inheritance diagram for SectionForm:
Form

Public Member Functions

 display ()
 
 execute ()
 
 getLocaleFieldNames ()
 
 includeSectionEditor ($sectionEditorId)
 
 initData ()
 
 omitSectionEditor ($sectionEditorId)
 
 readInputData ()
 
 SectionForm ($sectionId=null)
 
- Public Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 display ($request=null, $template=null)
 
 execute ($object=null)
 
 fetch (&$request, $template=null, $display=false)
 
 Form ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getFormLocale ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isLocaleResubmit ()
 
 isValid ()
 
 readInputData ()
 
 readUserDateVars ($vars)
 
 readUserVars ($vars)
 
 setData ($key, $value)
 
 setTemplate ($template)
 
 smartyFormLanguageChooser ($params, &$smarty)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Public Attributes inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 

Detailed Description

Form for creating and modifying journal sections.

Definition at line 18 of file SectionForm.inc.php.

Member Function Documentation

SectionForm::display ( )

Display the form.

Definition at line 106 of file SectionForm.inc.php.

References DAORegistry\getDAO(), and Request\getJournal().

SectionForm::execute ( )

Save section.

Definition at line 202 of file SectionForm.inc.php.

References DAORegistry\getDAO(), Form\getData(), Request\getJournal(), and PKPRequest\getUserVar().

SectionForm::getLocaleFieldNames ( )

Get the names of fields for which localized data is allowed.

Returns
array

Definition at line 98 of file SectionForm.inc.php.

References DAORegistry\getDAO().

SectionForm::includeSectionEditor (   $sectionEditorId)

When displaying the form, include the specified section editor in the assigned list for this section.

Parameters
$sectionEditorIdint

Definition at line 74 of file SectionForm.inc.php.

Referenced by readInputData(), and SectionForm().

SectionForm::initData ( )

Initialize form data from current settings.

Definition at line 130 of file SectionForm.inc.php.

References DAORegistry\getDAO(), and Request\getJournal().

SectionForm::omitSectionEditor (   $sectionEditorId)

When displaying the form, omit the specified section editor from the assigned list for this section.

Definition at line 86 of file SectionForm.inc.php.

Referenced by readInputData(), and SectionForm().

SectionForm::readInputData ( )

Assign form data to user-submitted data.

Definition at line 164 of file SectionForm.inc.php.

References PKPRequest\getUserVar(), includeSectionEditor(), omitSectionEditor(), Form\readUserVars(), and Form\setData().

SectionForm::SectionForm (   $sectionId = null)

Constructor.

Parameters
$journalIdint omit for a new journal

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

References Form\addCheck(), DAORegistry\getDAO(), Request\getJournal(), includeSectionEditor(), and omitSectionEditor().


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