|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($genreId=null) | |
| execute (... $functionArgs) | |
| fetch ($request, $template=null, $display=false) | |
| getGenreId () | |
| initData ($args) | |
| readInputData () | |
| setGenreId ($genreId) | |
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 | |
| $_genreId | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for adding/editing a Submission File Genre.
Definition at line 18 of file GenreForm.inc.php.
| GenreForm::__construct | ( | $genreId = null | ) |
Constructor.
Definition at line 42 of file GenreForm.inc.php.
References Form\addCheck(), PKPApplication\get(), DAORegistry\getDAO(), and setGenreId().
| GenreForm::execute | ( | $functionArgs | ) |
Execute the form's action. (Note that it is assumed that the form has already been validated.)
| mixed | $functionArgs,... | Arguments from the caller to be passed to the hook consumer |
Reimplemented from Form.
Definition at line 123 of file GenreForm.inc.php.
References PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), getGenreId(), and setGenreId().
| GenreForm::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.
Definition at line 99 of file GenreForm.inc.php.
References PKPTemplateManager\getManager(), and AppLocale\requireComponents().
| GenreForm::getGenreId | ( | ) |
Get the genre id
Definition at line 34 of file GenreForm.inc.php.
References $_genreId.
Referenced by execute(), and initData().
| GenreForm::initData | ( | $args | ) |
Initialize form data from current settings.
| $args | array |
Definition at line 65 of file GenreForm.inc.php.
References PKPApplication\get(), DAORegistry\getDAO(), and getGenreId().
| GenreForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 115 of file GenreForm.inc.php.
References Form\readUserVars().
| GenreForm::setGenreId | ( | $genreId | ) |
Set the genre id
| $genreId | int |
Definition at line 26 of file GenreForm.inc.php.
Referenced by __construct(), and execute().
| GenreForm::$_genreId |
the id for the genre being edited
Definition at line 20 of file GenreForm.inc.php.
Referenced by getGenreId().