-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5306c89
commit d42d511
Showing
4 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/* | ||
+--------------------------------------------------------------------+ | ||
| Copyright CiviCRM LLC. All rights reserved. | | ||
| | | ||
| This work is published under the GNU AGPLv3 license with some | | ||
| permitted exceptions and without any warranty. For full license | | ||
| and copyright information, see https://civicrm.org/licensing | | ||
+--------------------------------------------------------------------+ | ||
*/ | ||
|
||
/** | ||
* | ||
* @package CRM | ||
* @copyright CiviCRM LLC https://civicrm.org/licensing | ||
*/ | ||
|
||
/** | ||
* This class provides the functionality to create PDF letter for grants. | ||
*/ | ||
class CRM_Grant_Form_Task_PDF extends CRM_Grant_Form_Task { | ||
|
||
use CRM_Contact_Form_Task_PDFTrait; | ||
|
||
/** | ||
* All the existing templates in the system. | ||
* | ||
* @var array | ||
*/ | ||
public $_templates = NULL; | ||
|
||
public $_single = NULL; | ||
|
||
public $_cid = NULL; | ||
|
||
/** | ||
* Build all the data structures needed to build the form. | ||
*/ | ||
public function preProcess() { | ||
$this->preProcessPDF(); | ||
parent::preProcess(); | ||
$this->setContactIDs(); | ||
} | ||
|
||
/** | ||
* List available tokens for this form. | ||
* | ||
* @return array | ||
*/ | ||
public function listTokens() { | ||
$tokens = CRM_Core_SelectValues::contactTokens(); | ||
return $tokens; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{* | ||
+--------------------------------------------------------------------+ | ||
| Copyright CiviCRM LLC. All rights reserved. | | ||
| | | ||
| This work is published under the GNU AGPLv3 license with some | | ||
| permitted exceptions and without any warranty. For full license | | ||
| and copyright information, see https://civicrm.org/licensing | | ||
+--------------------------------------------------------------------+ | ||
*} | ||
<div class="crm-form-block crm-block crm-contact-task-pdf-form-block"> | ||
<div class="messages status no-popup">{include file="CRM/Grant/Form/Task.tpl"}</div> | ||
{include file="CRM/Contact/Form/Task/PDFLetterCommon.tpl"} | ||
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | ||
</div> |