Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($publication, $author) | |
execute (... $functionParams) | |
fetch ($request, $template=null, $display=false) | |
getAuthor () | |
getPublication () | |
initData () | |
readInputData () | |
setAuthor ($author) | |
setPublication ($publication) | |
![]() | |
__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 | |
$_author | |
$_publication | |
![]() | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Form for adding/editing a author.
Definition at line 18 of file PKPAuthorForm.inc.php.
PKPAuthorForm::__construct | ( | $publication, | |
$author | |||
) |
Constructor.
Definition at line 28 of file PKPAuthorForm.inc.php.
References Form\addCheck(), setAuthor(), Form\setDefaultFormLocale(), and setPublication().
PKPAuthorForm::execute | ( | $functionParams | ) |
Save author
Reimplemented from Form.
Definition at line 175 of file PKPAuthorForm.inc.php.
References fatalError(), PKPServices\get(), PKPApplication\get(), getAuthor(), DAORegistry\getDAO(), Form\getData(), and getPublication().
PKPAuthorForm::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 128 of file PKPAuthorForm.inc.php.
References DAORegistry\getDAO(), PKPTemplateManager\getManager(), and getPublication().
PKPAuthorForm::getAuthor | ( | ) |
Get the author
Definition at line 63 of file PKPAuthorForm.inc.php.
References $_author.
Referenced by execute(), and initData().
PKPAuthorForm::getPublication | ( | ) |
Get the Publication
Definition at line 79 of file PKPAuthorForm.inc.php.
References $_publication.
PKPAuthorForm::initData | ( | ) |
Initialize form data from the associated author.
Reimplemented from Form.
Definition at line 98 of file PKPAuthorForm.inc.php.
References getAuthor().
PKPAuthorForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Definition at line 153 of file PKPAuthorForm.inc.php.
References Form\readUserVars().
PKPAuthorForm::setAuthor | ( | $author | ) |
Set the author
Definition at line 71 of file PKPAuthorForm.inc.php.
Referenced by __construct().
PKPAuthorForm::setPublication | ( | $publication | ) |
Set the Publication
Publication |
Definition at line 87 of file PKPAuthorForm.inc.php.
Referenced by __construct().
PKPAuthorForm::$_author |
Author the author being edited
Definition at line 23 of file PKPAuthorForm.inc.php.
Referenced by getAuthor().
PKPAuthorForm::$_publication |
The publication associated with the contributor being edited
Definition at line 20 of file PKPAuthorForm.inc.php.
Referenced by getPublication().