Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($itemId, $itemType, $stageId, $template=null) | |
_logEventAndCreateNotification ($request, $submission) | |
execute (... $functionParams) | |
fetch ($request, $template=null, $display=false) | |
getEmailVariableNames ($emailKey) | |
getStageId () | |
isMessageRequired () | |
readInputData () | |
sendMessage ($userId, $submission, $request) | |
![]() | |
_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 | |
$_itemId | |
$_itemType | |
$_stageId | |
$_submissionId | |
![]() | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Protected Member Functions | |
_getMailTemplate ($submission, $templateKey, $includeSignature=true) | |
_getStageTemplates () | |
Form to notify a user regarding a file.
Definition at line 19 of file PKPStageParticipantNotifyForm.inc.php.
PKPStageParticipantNotifyForm::__construct | ( | $itemId, | |
$itemType, | |||
$stageId, | |||
$template = null |
|||
) |
Constructor.
Reimplemented from Form.
Reimplemented in StageParticipantNotifyForm.
Definition at line 44 of file PKPStageParticipantNotifyForm.inc.php.
References Form\addCheck(), DAORegistry\getDAO(), and isMessageRequired().
|
abstractprotected |
Return app-specific mail template.
$submission | Submission |
$templateKey | string |
$includeSignature | boolean |
Reimplemented in StageParticipantNotifyForm.
Referenced by fetch(), and sendMessage().
|
abstractprotected |
return app-specific stage templates.
Reimplemented in StageParticipantNotifyForm.
Referenced by fetch().
PKPStageParticipantNotifyForm::_logEventAndCreateNotification | ( | $request, | |
$submission | |||
) |
Convenience function for logging the message sent event and creating the notification.
$request | PKPRequest |
$submission | Submission |
Definition at line 338 of file PKPStageParticipantNotifyForm.inc.php.
References SubmissionLog\logEvent().
Referenced by execute().
PKPStageParticipantNotifyForm::execute | ( | $functionParams | ) |
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.
Reimplemented in AddParticipantForm.
Definition at line 142 of file PKPStageParticipantNotifyForm.inc.php.
References _logEventAndCreateNotification(), PKPApplication\get(), DAORegistry\getDAO(), Form\getData(), and sendMessage().
PKPStageParticipantNotifyForm::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 AddParticipantForm.
Definition at line 72 of file PKPStageParticipantNotifyForm.inc.php.
References _getMailTemplate(), _getStageTemplates(), PKPServices\get(), DAORegistry\getDAO(), PKPTemplateManager\getManager(), and getStageId().
PKPStageParticipantNotifyForm::getEmailVariableNames | ( | $emailKey | ) |
Get the available email template variable names for the given template name.
$emailKey | string Email template key |
Definition at line 270 of file PKPStageParticipantNotifyForm.inc.php.
PKPStageParticipantNotifyForm::getStageId | ( | ) |
Get the stage ID
Definition at line 295 of file PKPStageParticipantNotifyForm.inc.php.
References $_stageId.
Referenced by fetch(), and AddParticipantForm\fetch().
PKPStageParticipantNotifyForm::isMessageRequired | ( | ) |
whether or not to include the Notify Users listbuilder true, by default.
Reimplemented in AddParticipantForm.
Definition at line 352 of file PKPStageParticipantNotifyForm.inc.php.
Referenced by __construct().
PKPStageParticipantNotifyForm::readInputData | ( | ) |
Assign form data to user-submitted data. Can be overridden from subclasses.
Reimplemented from Form.
Reimplemented in AddParticipantForm.
Definition at line 135 of file PKPStageParticipantNotifyForm.inc.php.
References Form\readUserVars().
PKPStageParticipantNotifyForm::sendMessage | ( | $userId, | |
$submission, | |||
$request | |||
) |
Send a message to a user.
$userId | int the user id to send email to. |
$submission | Submission |
$request | PKPRequest |
Definition at line 159 of file PKPStageParticipantNotifyForm.inc.php.
References _getMailTemplate(), PKPServices\get(), Core\getCurrentDate(), DAORegistry\getDAO(), and Form\getData().
Referenced by execute().
int PKPStageParticipantNotifyForm::$_itemId |
The file/submission ID this form is for
Definition at line 24 of file PKPStageParticipantNotifyForm.inc.php.
int PKPStageParticipantNotifyForm::$_itemType |
The type of item the form is for (used to determine which email template to use)
Definition at line 30 of file PKPStageParticipantNotifyForm.inc.php.
PKPStageParticipantNotifyForm::$_stageId |
The stage Id
Definition at line 33 of file PKPStageParticipantNotifyForm.inc.php.
Referenced by getStageId().
int PKPStageParticipantNotifyForm::$_submissionId |
the Submission id
Definition at line 39 of file PKPStageParticipantNotifyForm.inc.php.