Skip to content

Commit

Permalink
Merge pull request #16940 from eileenmcnaughton/email4
Browse files Browse the repository at this point in the history
[REF] Move properties to Trait
  • Loading branch information
colemanw authored Apr 1, 2020
2 parents c10b06c + 362e6a6 commit f0ae535
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 0 additions & 30 deletions CRM/Contact/Form/Task/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,6 @@ class CRM_Contact_Form_Task_Email extends CRM_Contact_Form_Task {

use CRM_Contact_Form_Task_EmailTrait;

/**
* Store "to" contact details.
* @var array
*/
public $_toContactDetails = [];

/**
* Store all selected contact id's, that includes to, cc and bcc contacts
* @var array
*/
public $_allContactIds = [];

/**
* Store only "to" contact ids.
* @var array
*/
public $_toContactIds = [];

/**
* Store only "cc" contact ids.
* @var array
*/
public $_ccContactIds = [];

/**
* Store only "bcc" contact ids.
* @var array
*/
public $_bccContactIds = [];

/**
* Build all the data structures needed to build the form.
*
Expand Down
30 changes: 30 additions & 0 deletions CRM/Contact/Form/Task/EmailTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,36 @@ trait CRM_Contact_Form_Task_EmailTrait {
*/
public $_templates;

/**
* Store "to" contact details.
* @var array
*/
public $_toContactDetails = [];

/**
* Store all selected contact id's, that includes to, cc and bcc contacts
* @var array
*/
public $_allContactIds = [];

/**
* Store only "to" contact ids.
* @var array
*/
public $_toContactIds = [];

/**
* Store only "cc" contact ids.
* @var array
*/
public $_ccContactIds = [];

/**
* Store only "bcc" contact ids.
* @var array
*/
public $_bccContactIds = [];

/**
* Process the form after the input has been submitted and validated.
*
Expand Down

0 comments on commit f0ae535

Please sign in to comment.