projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style fixes based upon updated phpcs Drupal standard
[civicrm-core.git]
/
CRM
/
SMS
/
Form
/
Group.php
diff --git
a/CRM/SMS/Form/Group.php
b/CRM/SMS/Form/Group.php
index 2d546d955820d0a43fa280b76ff5f42b7264b869..acb5d76be8e77bade84069b23bd1076d9a2d0937 100644
(file)
--- a/
CRM/SMS/Form/Group.php
+++ b/
CRM/SMS/Form/Group.php
@@
-1,7
+1,7
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
6
|
+ | CiviCRM version 4.
7
|
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
@@
-29,20
+29,15
@@
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
/**
*/
/**
- * Choose include / exclude groups and mass sms
- *
+ * Choose include / exclude groups and mass sms.
*/
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
/**
* Set variables up before form is built.
*/
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
/**
* Set variables up before form is built.
- *
- * @return void
*/
public function preProcess() {
if (!CRM_SMS_BAO_Provider::activeProviderCount()) {
*/
public function preProcess() {
if (!CRM_SMS_BAO_Provider::activeProviderCount()) {
@@
-55,10
+50,7
@@
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
/**
* Set default values for the form.
/**
* Set default values for the form.
- * the default values are retrieved from the database
- *
- *
- * @return void
+ * The default values are retrieved from the database.
*/
public function setDefaultValues() {
$mailingID = CRM_Utils_Request::retrieve('mid', 'Integer', $this, FALSE, NULL);
*/
public function setDefaultValues() {
$mailingID = CRM_Utils_Request::retrieve('mid', 'Integer', $this, FALSE, NULL);
@@
-102,12
+94,10
@@
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
/**
* Build the form object.
/**
* Build the form object.
- *
- * @return void
*/
public function buildQuickForm() {
*/
public function buildQuickForm() {
- //
get the context
+ //
Get the context.
$context = $this->get('context');
$this->assign('context', $context);
$context = $this->get('context');
$this->assign('context', $context);
@@
-117,10
+107,10
@@
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
TRUE
);
TRUE
);
- //
g
et the mailing groups.
+ //
G
et the mailing groups.
$groups = CRM_Core_PseudoConstant::nestedGroup('Mailing');
$groups = CRM_Core_PseudoConstant::nestedGroup('Mailing');
- //
get the sms mailing list
+ //
Get the sms mailing list.
$mailings = CRM_Mailing_PseudoConstant::completed('sms');
if (!$mailings) {
$mailings = array();
$mailings = CRM_Mailing_PseudoConstant::completed('sms');
if (!$mailings) {
$mailings = array();
@@
-190,10
+180,10
@@
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
$groups = array();
foreach (array(
$groups = array();
foreach (array(
-
'name',
-
'group_id',
-
'is_sms',
-
) as $n) {
+ 'name',
+ 'group_id',
+ 'is_sms',
+ ) as $n) {
if (!empty($values[$n])) {
$params[$n] = $values[$n];
}
if (!empty($values[$n])) {
$params[$n] = $values[$n];
}
@@
-252,9
+242,9
@@
class CRM_SMS_Form_Group extends CRM_Contact_Form_Task {
// delete previous includes/excludes, if mailing already existed
foreach (array(
// delete previous includes/excludes, if mailing already existed
foreach (array(
-
'groups',
-
'mailings',
-
) as $entity) {
+ 'groups',
+ 'mailings',
+ ) as $entity) {
$mg = new CRM_Mailing_DAO_MailingGroup();
$mg->mailing_id = $ids['mailing_id'];
$mg->entity_table = ($entity == 'groups') ? $groupTableName : $mailingTableName;
$mg = new CRM_Mailing_DAO_MailingGroup();
$mg->mailing_id = $ids['mailing_id'];
$mg->entity_table = ($entity == 'groups') ? $groupTableName : $mailingTableName;