PKPStageParticipantNotifyForm::getEmailVariableNames PHP Method

getEmailVariableNames() public method

Get the available email template variable names for the given template name.
public getEmailVariableNames ( $emailKey ) : array
$emailKey string Email template key
return array
    function getEmailVariableNames($emailKey)
    {
        switch ($emailKey) {
            case 'COPYEDIT_REQUEST':
            case 'LAYOUT_REQUEST':
            case 'INDEX_REQUEST':
                return array('participantName' => __('user.name'), 'participantUsername' => __('user.username'), 'submissionUrl' => __('common.url'));
            case 'LAYOUT_COMPLETE':
            case 'INDEX_COMPLETE':
                return array('editorialContactName' => __('user.role.editor'));
            case 'EDITOR_ASSIGN':
                return array('editorUsername' => __('user.username'), 'editorialContactName' => __('user.role.editor'), 'submissionUrl' => __('common.url'));
        }
    }