class CRM_Member_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDFLetterCommon

This class provides the common functionality for creating PDF letter for members

Methods

static array
getLoggingOptions()

No description

static 
preProcess(CRM_Core_Form $form)

Build all the data structures needed to build the form.

static 
preProcessSingle(CRM_Core_Form $form, int $cid)

No description

static 
buildQuickForm($form)

Build the form object.

static 
setDefaultValues()

Set default values.

static bool
formRule(array $fields, array $files, array $self)

Form rule.

static array
processMessageTemplate(array $formValues)

Part of the post process which prepare and extract information from the template.

static 
postProcess(CRM_Core_Form $form)

Process the form after the input has been submitted and validated.

static array
createActivities(CRM_Core_Form $form, string $html_message, array $contactIds)

No description

static 
formatMessage($message)

No description

static 
postProcessMembers(CRM_Core_Form $form, $membershipIDs, $skipOnHold, $skipDeceased, $contactIDs)

Process the form after the input has been submitted and validated.

static array
generateHTML(array $membershipIDs, array $returnProperties, bool $skipOnHold, bool $skipDeceased, array $messageToken, $html_message, $categories)

Generate htmlfor pdf letters.

Details

static array getLoggingOptions()

Return Value

array Array(string $machineName => string $label).

static preProcess(CRM_Core_Form $form)

Build all the data structures needed to build the form.

Parameters

CRM_Core_Form $form

static preProcessSingle(CRM_Core_Form $form, int $cid)

Parameters

CRM_Core_Form $form
int $cid

static buildQuickForm($form)

Build the form object.

Parameters

$form

static setDefaultValues()

Set default values.

static bool formRule(array $fields, array $files, array $self)

Form rule.

Parameters

array $fields The input form values.
array $files
array $self Additional values form 'this'.

Return Value

bool TRUE if no errors, else array of errors.

static array processMessageTemplate(array $formValues)

Part of the post process which prepare and extract information from the template.

Parameters

array $formValues

Return Value

array [$categories, $html_message, $messageToken, $returnProperties]

static postProcess(CRM_Core_Form $form)

Process the form after the input has been submitted and validated.

Parameters

CRM_Core_Form $form

static array createActivities(CRM_Core_Form $form, string $html_message, array $contactIds)

Parameters

CRM_Core_Form $form
string $html_message
array $contactIds

Return Value

array List of activity IDs. There may be 1 or more, depending on the system-settings and use-case.

Exceptions

CRM_Core_Exception

static formatMessage($message)

Parameters

$message

at line 20
static postProcessMembers(CRM_Core_Form $form, $membershipIDs, $skipOnHold, $skipDeceased, $contactIDs)

Process the form after the input has been submitted and validated.

Parameters

CRM_Core_Form $form
$membershipIDs
$skipOnHold
$skipDeceased
$contactIDs

at line 56
static array generateHTML(array $membershipIDs, array $returnProperties, bool $skipOnHold, bool $skipDeceased, array $messageToken, $html_message, $categories)

Generate htmlfor pdf letters.

Parameters

array $membershipIDs
array $returnProperties
bool $skipOnHold
bool $skipDeceased
array $messageToken
$html_message
$categories

Return Value

array