CRM_Contact_Form_Task_PDFLetterCommon
class CRM_Contact_Form_Task_PDFLetterCommon extends CRM_Core_Form_Task_PDFLetterCommon
This class provides the common functionality for creating PDF letter for one or a group of contact ids.
Properties
static protected | $tokenCategories |
Methods
Build all the data structures needed to build the form.
Form rule.
Handle the template processing part of the form
No description
Part of the post process which prepare and extract information from the template.
No description
Get the categories required for rendering tokens.
Details
at line 60
static
preProcess($form)
Build all the data structures needed to build the form.
in CRM_Core_Form_Task_PDFLetterCommon at line 57
static
buildQuickForm($form)
Build the form object.
in CRM_Core_Form_Task_PDFLetterCommon at line 188
static
setDefaultValues()
Set default values.
in CRM_Core_Form_Task_PDFLetterCommon at line 206
static bool
formRule(array $fields, array $files, array $self)
Form rule.
in CRM_Core_Form_Task_PDFLetterCommon at line 239
static
processTemplate($formValues)
Handle the template processing part of the form
in CRM_Core_Form_Task_PDFLetterCommon at line 299
static
formatMessage($message)
at line 45
static array
getLoggingOptions()
at line 81
static
preProcessSingle(CRM_Core_Form $form, int $cid)
at line 98
static array
processMessageTemplate(array $formValues)
Part of the post process which prepare and extract information from the template.
at line 126
static
postProcess(CRM_Core_Form $form)
Process the form after the input has been submitted and validated.
at line 246
static array
createActivities(CRM_Core_Form $form, string $html_message, array $contactIds, string $subject, int $campaign_id, array $perContactHtml = [])
at line 337
static protected array
getTokenCategories()
Get the categories required for rendering tokens.
at line 359
static protected bool
isLiveMode(CRM_Core_Form $form)
Is the form in live mode (as opposed to being run as a preview).
Returns true if the user has clicked the Download Document button on a Print/Merge Document (PDF Letter) search task form, or false if the Preview button was clicked.