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