*
* @return array
* list of errors to be posted back to the form
- * @static
*/
public static function formRule($values) {
$errors = array();
}
/**
- *
- * process the PDf and email with activity and attachment
+ * Process the PDf and email with activity and attachment
* on click of Print Invoices
*
* @param array $contribIDs
* Contact Id.
* @param CRM_Core_Form $form
* Form object.
- * @static
*/
public static function printPDF($contribIDs, &$params, $contactIds, &$form) {
// get all the details needed to generate a invoice
CRM_Core_Error::fatal();
}
- $contribution = & $objects['contribution'];
+ $contribution = &$objects['contribution'];
$input['amount'] = $contribution->total_amount;
$input['invoice_id'] = $contribution->invoice_id;
}
/**
- *
- * This function is use for adding activity for
- * Email Invoice and the PDF Invoice
+ * Add activity for Email Invoice and the PDF Invoice
*
* @param string $subject
* Activity subject.
* @param array $params
* For invoices.
*
- * @static
*/
static public function addActivities($subject, $contactIds, $fileName, $params) {
$session = CRM_Core_Session::singleton();
}
/**
+ * Create the Invoice file in upload folder for attachment
*
- * This function is use for creating the Invoice file in upload folder
- * for attachment
- *
- * @param $html
+ * @param string $html
* Content for pdf in html format.
*
- * return $fileName of file which is in pdf format
- *
* @return string
+ * Name of file which is in pdf format
*/
static public function putFile($html) {
require_once "packages/dompdf/dompdf_config.inc.php";