|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($request, $sectionId=null) | |
| execute (... $functionArgs) | |
| fetch ($request, $template=null, $display=false) | |
| getLocaleFieldNames () | |
| initData () | |
| readInputData () | |
| validate ($callHooks=true) | |
Public Member Functions inherited from PKPSectionForm | |
| __construct ($request, $template, $sectionId=null) | |
| getSectionId () | |
| setSectionId ($sectionId) | |
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) | |
| getData ($key) | |
| getDefaultFormLocale () | |
| getErrorsArray () | |
| getRequiredLocale () | |
| getTemplate () | |
| isValid () | |
| readUserVars ($vars) | |
| setData ($key, $value=null) | |
| setDefaultFormLocale ($defaultLocale) | |
| setTemplate ($template) | |
Additional Inherited Members | |
Data Fields inherited from PKPSectionForm | |
| $_imageExtension | |
| $_sectionId | |
| $_sizeArray | |
| $_userId | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for adding/editing a section.
Definition at line 18 of file SectionForm.inc.php.
| SectionForm::__construct | ( | $request, | |
$sectionId = null |
|||
| ) |
Constructor.
| $request | Request |
| $sectionId | int optional |
Definition at line 25 of file SectionForm.inc.php.
References Form\addCheck(), DAORegistry\getDAO(), and AppLocale\requireComponents().
| SectionForm::execute | ( | $functionArgs | ) |
Save section.
Reimplemented from PKPSectionForm.
Definition at line 150 of file SectionForm.inc.php.
References PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), PKPSectionForm\getSectionId(), and PKPSectionForm\setSectionId().
| SectionForm::fetch | ( | $request, | |
$template = null, |
|||
$display = false |
|||
| ) |
Returns a string of the rendered form
| $request | PKPRequest |
| $template | string the template to be rendered, mandatory if no template has been specified on class instantiation. |
| $display | boolean |
Reimplemented from PKPSectionForm.
Definition at line 112 of file SectionForm.inc.php.
References DAORegistry\getDAO(), PKPTemplateManager\getManager(), and PKPSectionForm\getSectionId().
| SectionForm::getLocaleFieldNames | ( | ) |
Get the names of fields for which localized data is allowed.
Reimplemented from Form.
Definition at line 141 of file SectionForm.inc.php.
References DAORegistry\getDAO().
| SectionForm::initData | ( | ) |
Initialize form data from current settings.
Reimplemented from Form.
Definition at line 43 of file SectionForm.inc.php.
References PKPServices\get(), PKPApplication\get(), DAORegistry\getDAO(), PKPSectionForm\getSectionId(), and Form\setData().
| SectionForm::readInputData | ( | ) |
Assign form data to user-submitted data. Can be overridden from subclasses.
Reimplemented from PKPSectionForm.
Definition at line 132 of file SectionForm.inc.php.
References Form\readUserVars().
| SectionForm::validate | ( | $callHooks = true | ) |
Reimplemented from Form.
Definition at line 86 of file SectionForm.inc.php.
References Form\addError(), PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), and PKPSectionForm\getSectionId().