|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($monograph, $representative) | |
| execute (... $functionArgs) | |
| fetch ($request, $template=null, $display=false) | |
| getMonograph () | |
| & | getRepresentative () |
| initData () | |
| readInputData () | |
| setMonograph ($monograph) | |
| setRepresentative ($representative) | |
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 () | |
| isValid () | |
| readUserVars ($vars) | |
| setData ($key, $value=null) | |
| setDefaultFormLocale ($defaultLocale) | |
| setTemplate ($template) | |
| validate ($callHooks=true) | |
Data Fields | |
| $_monograph | |
| $_representative | |
Data Fields inherited from Form | |
| $_checks | |
| $_data | |
| $_errors | |
| $_template | |
| $cssValidation | |
| $defaultLocale | |
| $errorFields | |
| $errorsArray | |
| $formSectionErrors | |
| $requiredLocale | |
| $supportedLocales | |
Form for adding/editing a representative entry.
Definition at line 18 of file RepresentativeForm.inc.php.
| RepresentativeForm::__construct | ( | $monograph, | |
| $representative | |||
| ) |
Constructor.
Definition at line 28 of file RepresentativeForm.inc.php.
References Form\addCheck(), PKPApplication\get(), DAORegistry\getDAO(), setMonograph(), and setRepresentative().
| RepresentativeForm::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 164 of file RepresentativeForm.inc.php.
References fatalError(), DAORegistry\getDAO(), Form\getData(), getMonograph(), and getRepresentative().
| RepresentativeForm::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 112 of file RepresentativeForm.inc.php.
References DAORegistry\getDAO(), PKPTemplateManager\getManager(), getMonograph(), and getRepresentative().
| RepresentativeForm::getMonograph | ( | ) |
Get the Monograph
Definition at line 72 of file RepresentativeForm.inc.php.
References $_monograph.
| & RepresentativeForm::getRepresentative | ( | ) |
Get the representative
Definition at line 56 of file RepresentativeForm.inc.php.
References $_representative.
Referenced by execute(), fetch(), and initData().
| RepresentativeForm::initData | ( | ) |
Initialize form data from the representative entry.
Reimplemented from Form.
Definition at line 91 of file RepresentativeForm.inc.php.
References getRepresentative().
| RepresentativeForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 146 of file RepresentativeForm.inc.php.
References Form\readUserVars().
| RepresentativeForm::setMonograph | ( | $monograph | ) |
Set the Monograph
| Monograph |
Definition at line 80 of file RepresentativeForm.inc.php.
Referenced by __construct().
| RepresentativeForm::setRepresentative | ( | $representative | ) |
Set the representative
Definition at line 64 of file RepresentativeForm.inc.php.
Referenced by __construct().
| RepresentativeForm::$_monograph |
The monograph associated with the format being edited
Definition at line 20 of file RepresentativeForm.inc.php.
Referenced by getMonograph().
| RepresentativeForm::$_representative |
Representative the entry being edited
Definition at line 23 of file RepresentativeForm.inc.php.
Referenced by getRepresentative().