* @param array $params
* (reference ) an assoc array of name/value pairs.
*
- * @return object CRM_Core_BAO_Email object on success, null otherwise
+ * @return object
+ * CRM_Core_BAO_Email object on success, null otherwise
* @static
*/
public static function add(&$params) {
*
* @param bool $updateBlankLocInfo
*
- * @return array the array of email id's
+ * @return array
+ * the array of email id's
* @static
*/
public static function allEmails($id, $updateBlankLocInfo = FALSE) {
);
$emails = $values = array();
- $dao = CRM_Core_DAO::executeQuery($query, $params);
- $count = 1;
+ $dao = CRM_Core_DAO::executeQuery($query, $params);
+ $count = 1;
while ($dao->fetch()) {
$values = array(
'locationType' => $dao->locationType,
*
* @param array $entityElements
* The array containing entity_id and.
- * entity_table name
+ * entity_table name
*
- * @return array the array of email id's
+ * @return array
+ * the array of email id's
* @static
*/
public static function allEntityEmails(&$entityElements) {
";
if (CRM_Core_DAO::singleValueQuery($sql, $params)) {
//set reset date only if it is not set and if hold date is set
- $email->on_hold = FALSE;
- $email->hold_date = 'null';
+ $email->on_hold = FALSE;
+ $email->hold_date = 'null';
$email->reset_date = date('YmdHis');
}
}
* Build From Email as the combination of all the email ids of the logged in user and
* the domain email id
*
- * @return array an array of email ids
+ * @return array
+ * an array of email ids
* @static
*/
public static function getFromEmail() {
- $session = CRM_Core_Session::singleton();
- $contactID = $session->get('userID');
+ $session = CRM_Core_Session::singleton();
+ $contactID = $session->get('userID');
$fromEmailValues = array();
// add all configured FROM email addresses