Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($request, $template, $sectionId=null) | |
execute (... $functionArgs) | |
fetch ($request, $template=null, $display=false) | |
getSectionId () | |
readInputData () | |
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 () | |
getLocaleFieldNames () | |
getRequiredLocale () | |
getTemplate () | |
initData () | |
isValid () | |
readUserVars ($vars) | |
setData ($key, $value=null) | |
setDefaultFormLocale ($defaultLocale) | |
setTemplate ($template) | |
validate ($callHooks=true) | |
Data Fields | |
$_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 PKPSectionForm.inc.php.
PKPSectionForm::__construct | ( | $request, | |
$template, | |||
$sectionId = null |
|||
) |
Constructor.
$request | PKPRequest |
$template | string Template path |
$sectionId | int optional |
Definition at line 46 of file PKPSectionForm.inc.php.
References Form\addCheck(), AppLocale\requireComponents(), and setSectionId().
PKPSectionForm::execute | ( | $functionArgs | ) |
Save changes to subeditors
$contextId | int |
Reimplemented from Form.
Reimplemented in SectionForm.
Definition at line 112 of file PKPSectionForm.inc.php.
References PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), and getSectionId().
PKPSectionForm::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 Form.
Reimplemented in SectionForm.
Definition at line 87 of file PKPSectionForm.inc.php.
References PKPServices\get(), and PKPTemplateManager\getManager().
PKPSectionForm::getSectionId | ( | ) |
Get the section ID for this section.
Definition at line 72 of file PKPSectionForm.inc.php.
References $_sectionId.
Referenced by execute(), SectionForm\execute(), SectionForm\fetch(), SectionForm\initData(), and SectionForm\validate().
PKPSectionForm::readInputData | ( | ) |
Assign form data to user-submitted data. Can be overridden from subclasses.
Reimplemented from Form.
Reimplemented in SectionForm.
Definition at line 64 of file PKPSectionForm.inc.php.
References Form\readUserVars().
PKPSectionForm::setSectionId | ( | $sectionId | ) |
Set the section ID for this section.
$sectionId | int |
Definition at line 80 of file PKPSectionForm.inc.php.
Referenced by __construct(), and SectionForm\execute().
string PKPSectionForm::$_imageExtension |
Cover image extension
Definition at line 32 of file PKPSectionForm.inc.php.
PKPSectionForm::$_sectionId |
the id for the section being edited
Definition at line 20 of file PKPSectionForm.inc.php.
Referenced by getSectionId().
array PKPSectionForm::$_sizeArray |
Cover image information from getimagesize
Definition at line 38 of file PKPSectionForm.inc.php.
int PKPSectionForm::$_userId |
The current user ID
Definition at line 26 of file PKPSectionForm.inc.php.