small cosmetic fixes
This commit is contained in:
parent
e65ef40c11
commit
b6b658df5c
2 changed files with 13 additions and 11 deletions
|
@ -54,13 +54,13 @@ abstract class CRM_TwingleCampaign_BAO_Campaign {
|
|||
if ($this->className == "TwingleProject" && $key == 'project_id') {
|
||||
$this->values['id'] = $value;
|
||||
}
|
||||
else if (in_array($key, $filter)) {
|
||||
elseif (in_array($key, $filter)) {
|
||||
$this->values[$key] = $value;
|
||||
}
|
||||
else if ($key == 'embed') {
|
||||
elseif ($key == 'embed') {
|
||||
self::setEmbedData($value);
|
||||
}
|
||||
else if ($key == 'counter-url') {
|
||||
elseif ($key == 'counter-url') {
|
||||
self::setCounterUrl($value['url']);
|
||||
}
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ abstract class CRM_TwingleCampaign_BAO_Campaign {
|
|||
|
||||
|
||||
/**
|
||||
* Set counter url
|
||||
* ## Set counter url
|
||||
*
|
||||
* @param String $counterUrl
|
||||
* URL of the counter
|
||||
|
@ -287,8 +287,8 @@ abstract class CRM_TwingleCampaign_BAO_Campaign {
|
|||
|
||||
/**
|
||||
* ## Get timestamp
|
||||
* Validates **$input** to be either a *DateTime string* or an *Unix timestamp*
|
||||
* and in both cases returns a *Unix time stamp*.
|
||||
* Validates **$input** to be either a *DateTime string* or an *Unix
|
||||
* timestamp* and in both cases returns a *Unix time stamp*.
|
||||
*
|
||||
* @param $input
|
||||
* Provide a DateTime string or a Unix timestamp
|
||||
|
@ -322,8 +322,8 @@ abstract class CRM_TwingleCampaign_BAO_Campaign {
|
|||
|
||||
/**
|
||||
* ## Get DateTime
|
||||
* Validates **$input** to be either a *DateTime string* or an *Unix timestamp*
|
||||
* and in both cases returns *DateTime string*.
|
||||
* Validates **$input** to be either a *DateTime string* or an *Unix
|
||||
* timestamp* and in both cases returns *DateTime string*.
|
||||
*
|
||||
* @param $input
|
||||
* Provide a DateTime string or a Unix timestamp
|
||||
|
|
|
@ -24,7 +24,7 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
|
|||
->getCustomFieldMapping()['twingle_project_id'];
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* ## Export values
|
||||
|
@ -128,8 +128,10 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
|
|||
* ## Translate values between CiviCRM Campaigns and Twingle formats
|
||||
*
|
||||
* Constants for **$direction**:<br>
|
||||
* **TwingleProject::IN** translate array values from Twingle to CiviCRM format<br>
|
||||
* **TwingleProject::OUT** translate array values from CiviCRM to Twingle format
|
||||
* **TwingleProject::IN** translate array values from Twingle to CiviCRM
|
||||
* format<br>
|
||||
* **TwingleProject::OUT** translate array values from CiviCRM to Twingle
|
||||
* format
|
||||
*
|
||||
* @param array $values
|
||||
* array of values to translate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue