/**
* Get the links associate array as defined by the links.ini file.
*
- *
* Experimental... -
* Should look a bit like
* [local_col_name] => "related_tablename:related_col_name"
*
*/
-/**r
- * This class generates form components for the display preferences
- *
+/**
+ * This class generates form components for the display preferences.
*/
class CRM_Admin_Form_Preferences_Display extends CRM_Admin_Form_Preferences {
public function preProcess() {
*
*/
-// d6 compatible
+/**
+ * d6 compatible?
+ */
class CRM_Bridge_OG_Drupal {
/**
* Should we force a reload of this payment object.
*
* @return CRM_Core_Payment
- * @return \CRM_Core_Payment
* @throws \CRM_Core_Exception
* @static
*/
* @author Marshal Newrock <marshal@idealso.com>
*/
-/* NOTE:
+/**
+ * NOTE:
* When looking up response codes in the Authorize.Net API, they
* begin at one, so always delete one from the "Position in Response"
*/
* $Id: Dummy.php 45429 2013-02-06 22:11:18Z lobo $
*/
-/* NOTE:
- * When looking up response codes in the Authorize.Net API, they
- * begin at one, so always delete one from the "Position in Response"
+/**
+ * Dummy payment processor
*/
class CRM_Core_Payment_Dummy extends CRM_Core_Payment {
const CHARSET = 'iso-8859-1';
-----------------------------------------------------------------------------------------------
**/
-/*From Payment processor documentation
-For testing purposes, you can use any of the card numbers listed below. The test card numbers
-will not result in any charges to the card. Use these card numbers with any expiration date in the
-future.
- Visa Level 2 - 4275330012345675 (replies with a referral message)
- JCB - 3566007770003510
- Discover - 6011000993010978
- MasterCard - 5424180279791765
- Visa - 4005550000000019 or 4111111111111111
- MasterCard Level 2 - 5404980000008386
- Diners - 36555565010005
- Amex - 372700997251009
-*
-***************************
-*Lines starting with CRM_Core_Error::debug_log_message output messages to files/upload/civicrm.log - you may with to comment them out once it is working satisfactorily
-
-*For live testing uncomment the result field below and set the value to the response you wish to get from the payment processor
-***************************/
+/**
+ * From Payment processor documentation
+ * For testing purposes, you can use any of the card numbers listed below. The test card numbers
+ * will not result in any charges to the card. Use these card numbers with any expiration date in the
+ * future.
+ * Visa Level 2 - 4275330012345675 (replies with a referral message)
+ * JCB - 3566007770003510
+ * Discover - 6011000993010978
+ * MasterCard - 5424180279791765
+ * Visa - 4005550000000019 or 4111111111111111
+ * MasterCard Level 2 - 5404980000008386
+ * Diners - 36555565010005
+ * Amex - 372700997251009
+ *
+ * **************************
+ * Lines starting with CRM_Core_Error::debug_log_message output messages to files/upload/civicrm.log - you may with to comment them out once it is working satisfactorily
+ *
+ * For live testing uncomment the result field below and set the value to the response you wish to get from the payment processor
+ * **************************
+ */
class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
# (not used, implicit in the API, might need to convert?)
const CHARSET = 'UFT-8';
* Smarty function for checking change in a property's value, for example
* when looping through an array.
*
- *
* Smarty param: string $key unique identifier for this property (REQUIRED)
* Smarty param: mixed $value the current value of the property
* Smarty param: string $assign name of template variable to which to assign result
/**
* Smarty block function for printintg the correct report section total
*
- *
* Smarty param: string $key value of the current section column
* Smarty param: int $depth the depth of the current section
* (sections declared first have lesser depth, starting at 0)
* The 'Register' page gets loaded through ajax and following happens :
* the setDefaults function is called with the variable _ppType set with selected payment processor type,
* so in the 'if' condition checked whether the selected payment processor's billing mode is of 'billing form mode'. If its not, don't setDefaults for billing form and return instead.
- *- For payment processors of billing mode 'Notify' - return from setDefaults before the code for billing profile population execution .
+ * - For payment processors of billing mode 'Notify' - return from setDefaults before the code for billing profile population execution .
* (done this is because for payment processors with 'Notify' mode billing profile form doesn't get rendered on UI)
*
- *
* @return void
*/
public function setDefaultValues() {
*
*/
-/*
- * @see http://wiki.civicrm.org/confluence/display/CRM/CiviAccounts+Specifications+-++Batches#CiviAccountsSpecifications-Batches-%C2%A0Overviewofimplementation
+/**
+ * @link http://wiki.civicrm.org/confluence/display/CRM/CiviAccounts+Specifications+-++Batches#CiviAccountsSpecifications-Batches-%C2%A0Overviewofimplementation
*/
-
class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat {
// For this phase, we always output these records too so that there isn't data referenced in the journal entries that isn't defined anywhere.
*
*/
-/*
- * @see http://wiki.civicrm.org/confluence/display/CRM/CiviAccounts+Specifications+-++Batches#CiviAccountsSpecifications-Batches-%C2%A0Overviewofimplementation
+/**
+ * @link http://wiki.civicrm.org/confluence/display/CRM/CiviAccounts+Specifications+-++Batches#CiviAccountsSpecifications-Batches-%C2%A0Overviewofimplementation
*/
class CRM_Financial_BAO_ExportFormat_IIF extends CRM_Financial_BAO_ExportFormat {
/**
* Function for updating a membership record's contribution_recur_id
*
- * @param object CRM_Member_DAO_Membership $membership
+ * @param CRM_Member_DAO_Membership $membership
* @param \CRM_Contribute_BAO_Contribution|\CRM_Contribute_DAO_Contribution $contribution
*
* @return void
* @static
*/
- static public function updateRecurMembership(
- CRM_Member_DAO_Membership $membership,
- CRM_Contribute_BAO_Contribution $contribution) {
+ static public function updateRecurMembership(CRM_Member_DAO_Membership $membership, CRM_Contribute_BAO_Contribution $contribution) {
if (empty($contribution->contribution_recur_id)) {
return;
*
* @param int $maxLength
*
- * @return string An equivalent variable name
- *
- *
- * @return string (or null)
+ * @return string
+ * An equivalent variable name.
* @static
*/
public static function titleToVar($title, $maxLength = 31) {
'title' => 'Context',
),
);
- break;
+ break;
+
default:
// oddballs are on their own
$metadata = array();
if (!is_numeric($value) && !empty($value) && $value !== 'null') {
return civicrm_api3_create_error(ts('%1 must be a number.', array(1 => $title)), array('error_code' => 'NaN'));
}
- break;
+ break;
case CRM_Utils_Type::T_INT:
if (!CRM_Utils_Rule::integer($value) && !empty($value) && $value !== 'null') {
return civicrm_api3_create_error(ts('%1 must be a number.', array(1 => $title)), array('error_code' => 'NaN'));
}
- break;
+ break;
case CRM_Utils_Type::T_STRING:
case CRM_Utils_Type::T_TEXT:
if (!CRM_Utils_Rule::xssString($value)) {
return civicrm_api3_create_error(ts('Illegal characters in input (potential scripting attack)'), array('error_code' => 'XSS'));
}
- if (array_key_exists('maxlength', $def)) {
- $value = substr($value, 0, $def['maxlength']);
- }
- break;
+ if (array_key_exists('maxlength', $def)) {
+ $value = substr($value, 0, $def['maxlength']);
+ }
+ break;
case CRM_Utils_Type::T_DATE:
$value = CRM_Utils_Type::escape($value,"Date",false);
* name/value pairs to insert in new 'group'
*
* @return array API result array
- *@example GroupCreate.php
- *{@getfields group_create}
+ * @example GroupCreate.php
+ * {@getfields group_create}
* @access public
*/
function civicrm_api3_group_create($params) {
* to be deleted
*
* @return array API result array
- *@example GroupDelete.php
- *{@getfields group_delete}
+ * @example GroupDelete.php
+ * {@getfields group_delete}
*
* @access public
*/
*
* @daoName string DAO to check params agains
*
- * @return bool should the missing fields be returned as an array (core error created as default)
- *
- * @return bool true if all fields present, depending on $result a core error is created of an array of missing fields is returned
+ * @return bool
+ * Sshould the missing fields be returned as an array (core error created as default)
+ * true if all fields present, depending on $result a core error is created of an array of missing fields is returned
* @access public
*/
function _civicrm_api3_check_required_fields($params, $daoName, $return = FALSE) {
"id": "784",
"option_group_id": "2",
"label": "ADC referral",
- "value": "62",
+ "value": "62",
"name": "ADC referral",
"filter": "0",
"is_default": "0",
"is_reserved": "1",
"is_active": "1",
"component_id": "7"
- }
+ }
}
},
'relTypes': {
],
"activitySets": [
{
- "name": "standard_timeline",
+ "name": "standard_timeline",
"label": "Standard Timeline",
"timeline": "1",
"activityTypes": [
beforeEach(function() {
inject(function(crmJsonComparator) {
comparator = crmJsonComparator;
- });
+ });
});
it('should return false when comparing different objects', function() {
expect(result.pass).toBe(true);
});
- it('should explain what part of the comparison failed when comparing objects', function() {
+ it('should explain what part of the comparison failed when comparing objects', function() {
var result = comparator.compare({'foo': 'bar'}, {'bar': 'foo'});
expect(result.message).toBe('Could not find key \'bar\' in actual data at root.');
});
beforeEach(function() {
navigator = jasmine.createSpyObj('crmNavigator', ['redirect']);
module(function ($provide) {
- $provide.value('crmNavigator', navigator)
+ $provide.value('crmNavigator', navigator)
});
inject(['crmLegacy', function(crmLegacy) {
crmLegacy.url({back: '/*path*?*query*', front: '/*path*?*query*'});