<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
/**
* Wrapper to self::getCampaigns( )
* w/ permissions and component check.
+ *
+ * @param int $includeId
+ * @param int $excludeId
+ * @param bool $onlyActive
+ * @param bool $onlyCurrent
+ * @param bool $appendDatesToTitle
+ * @param bool $forceAll
+ * @param bool $doCheckForComponent
+ * @param bool $doCheckForPermissions
+ *
+ * @return mixed
*/
public static function getPermissionedCampaigns(
$includeId = NULL,
* @param bool $is_active
* Value we want to set the is_active field.
*
- * @return Object
+ * @return CRM_Campaign_DAO_Campaign|null
* DAO object on sucess, null otherwise
* @static
*/
return $allow;
}
- /*
+ /**
* Add select element for campaign
* and assign needful info to templates.
- */
- /**
+ *
* @param CRM_Core_Form $form
* @param int $connectedCampaignId
*/
}
/**
- * Add campaign in compoent search.
+ * Add campaign in component search.
* and assign needful info to templates.
*
* @param CRM_Core_Form $form
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
$this->_where[$grouping][] = $groupClause;
$this->_qill[$grouping][] = $qill;
}
- /*
- * Function translates selection of group type into a list of groups
- */
+
/**
+ * Function translates selection of group type into a list of groups
* @param $value
*
* @return array
$location->preProcess($this);
}
- /*
- * Set default values for the form.
- * the default values are retrieved from the database
- *
- * @return void
- */
/**
* This virtual function is used to set the default values of
* various form elements
*
- * access public
- *
* @return array
* reference to the array of default values
- */
- /**
- * @return array
+ *
+ * @access public
*/
public function setDefaultValues() {
$defaults = array();
*/
class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
- /*
+ /**
* list of valid contexts
*
* @var array
*/
class CRM_Contact_Form_Search_Basic extends CRM_Contact_Form_Search {
- /*
+ /**
* csv - common search values
*
* @var array
$form->assign('elements', array('includeGroups', 'excludeGroups', 'andOr', 'includeTags', 'excludeTags'));
}
- /*
- * Set search form field defaults here.
- */
/**
+ * Set search form field defaults here.
* @return array
*/
public function setDefaultValues() {
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
$this->_context = $this->get('context');
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
-
+ // initialize the task and row fields
parent::preProcess();
}
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
}
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
$session = CRM_Core_Session::singleton();
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
}
*/
public $_component = NULL;
- /*
- * construct method
- */
/**
* Class constructor
*
}
- /*
+ /**
* Function to record additional payment for partial and refund contributions
*
* @param int $contributionId
* is the invoice contribution id (got created after processing participant payment).
- * @param array $trxnData
+ * @param array $trxnsData
* to take user provided input of transaction details.
* @param string $paymentType
* 'owed' for purpose of recording partial payments, 'refund' for purpose of recording refund payments.
- */
- /**
- * @param int $contributionId
- * @param $trxnsData
- * @param string $paymentType
* @param int $participantId
*
* @return null|object
return $result;
}
- /*
- * Function to assign honor profile fields to template/form, if $honorId (as soft-credit's contact_id)
- * is passed then whole honoreeprofile fields with title/value assoc array assigned or only honoreeName
- * is assigned
- *
- * @static
- */
-
/**
+ * Function to assign honor profile fields to template/form, if $honorId (as soft-credit's contact_id)
+ * is passed then whole honoreeprofile fields with title/value assoc array assigned or only honoreeName
+ * is assigned
+ *
* @param CRM_Core_Form $form
* @param array $params
* @param int $honoreeprofileId
public $_compId;
- /*
+ /**
* Store the line items if price set used.
*/
public $_lineItems;
* @var integer
*/
public $fromEmailId;
- /*
+
+ /**
* Store the line items if price set used.
*/
public $_lineItems;
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
//get the contact read only fields to display.
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
$block = new $baoString();
$block->copyValues($params);
- /*
- * CRM-11006 add call to pre and post hook for delete action
- */
+
+ // CRM-11006 add call to pre and post hook for delete action
CRM_Utils_Hook::pre('delete', $name, $block->id, CRM_Core_DAO::$_nullArray);
$block->delete();
CRM_Utils_Hook::post('delete', $name, $block->id, $block);
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return $names;
}
- /*
+ /**
* copy/attach an existing file to a different entity
* table and id.
- */
- /**
+ *
* @param $oldEntityTable
* @param int $oldEntityId
* @param $newEntityTable
$financialItem = CRM_Financial_BAO_FinancialItem::create($fItemParams, NULL, $trxnIDS);
}
- /*
- * get partial payment amount and type of it
- * return @array : payment type => amount
- * payment type : 'amount_owed' or 'refund_due'
- */
/**
+ * get partial payment amount and type of it
+ *
* @param int $entityId
* @param string $entityName
* @param bool $returnType
- * @param NULL $lineItemTotal
+ * @param number $lineItemTotal
*
* @return array|int|NULL|string
+ * [payment type => amount]
+ * payment type: 'amount_owed' or 'refund_due'
*/
public static function getPartialPaymentWithType($entityId, $entityName = 'participant', $returnType = TRUE, $lineItemTotal = NULL) {
$value = NULL;
return self::$_defaultLocationType;
}
- /*
+ /**
* Get ID of billing location type
+ *
* @return int
*/
- /**
- * @return mixed|null
- */
public static function getBilling() {
if (self::$_billingLocationType == NULL) {
$locationTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id', array(), 'validate');
*/
class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
- /*
+ /**
* Create phone object - note that the create function calls 'add' but
* has more business logic
*
- * @param array $params
- * Input parameters.
- */
- /**
* @param array $params
*
* @return object
*/
class CRM_Core_BAO_UFMatch extends CRM_Core_DAO_UFMatch {
- /*
- * Create UF Match, Note that thsi function is here in it's simplest form @ the moment
- *
- *
- * @param array $params
- * Input parameters.
- */
/**
- * @param array $params
+ * Create UF Match, Note that thsi function is here in it's simplest form @ the moment
*
* @return CRM_Core_DAO_UFMatch
*/
*/
public $info;
- /*
+ /**
* Stores component keyword
* @var string name of component keyword
*/
QUERY_FORMAT_WILDCARD = 1,
QUERY_FORMAT_NO_QUOTES = 2;
- /*
+ /**
* Define entities that shouldn't be created or deleted when creating/ deleting
- * test objects - this prevents world regions, countries etc from being added / deleted
+ * test objects - this prevents world regions, countries etc from being added / deleted
+ * @var array
*/
static $_testEntitiesToSkip = array();
/**
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return $obj;
}
- /*
+ /**
* @deprecated
* This function is no longer used by v3 api.
* @fixme Some core files call it but it should be re-thought & renamed or removed
- */
- /**
+ *
* @param $msg
* @param null $data
*
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
var $_source = NULL;
- /*
+ /**
* Class constructor
*
* @param void
*/
- /**
- */
public function __construct() {
$config = CRM_Core_Config::singleton();
$config->fatalErrorHandler = 'CRM_Core_JobManager_scheduledJobFatalErrorHandler';
$this->jobs = $this->_getJobs();
}
- /*
- *
- * @param void
- */
/**
* @param bool $auth
*/
$this->logEntry('Finishing scheduled jobs execution.');
}
- /*
+ /**
* Class destructor
- *
- * @param void
*/
public function __destruct() {
}
$this->currentJob = FALSE;
}
- /*
+ /**
* Retrieves the list of jobs from the database,
* populates class param.
*
- * @param void
* @return array
* ($id => CRM_Core_ScheduledJob)
*/
- /**
- * @return array
- */
private function _getJobs() {
$jobs = array();
$dao = new CRM_Core_DAO_Job();
return $jobs;
}
- /*
+ /**
* Retrieves specific job from the database by id
* and creates ScheduledJob object.
*
- * @param void
- */
- /**
* @param int $id
* @param null $entity
* @param null $action
$this->singleRunParams[$key]['version'] = 3;
}
- /*
+ /**
+ * @param string $message
*
* @return array|null
* collection of permissions, null if none
*/
- /**
- * @param $message
- */
public function logEntry($message) {
$domainID = CRM_Core_Config::domainID();
$dao = new CRM_Core_DAO_JobLog();
static $_values = array();
static $_cache = array();
- /*
+ /**
* $_domainIDGroups array maintains the list of option groups for whom
* domainID is to be considered.
*/
return $row;
}
- /*
+ /**
* Wrapper for calling values with fresh set to true to empty the given value
*
* Since there appears to be some inconsistency
* (for example CRM_Contribution_Pseudoconstant::paymentInstrument doesn't specify isActive
* which is part of the cache key
* will do a couple of variations & aspire to someone cleaning it up later
- */
- /**
- * @param $name
+ *
+ * @param string $name
* @param array $params
*/
public static function flush($name, $params = array()) {
<?php
-
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
$values = array();
- /*
- * lets make sure we get the stuff sorted by name if it exists
- */
-
+ // lets make sure we get the stuff sorted by name if it exists
$fields = &$object->fields();
$key = '';
if (!empty($fields['title'])) {
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return $statusId;
}
- /*
+ /**
* Update pledge associated with a recurring contribution
*
* If the contribution has a pledge_payment record pledge, then update the pledge_payment record & pledge based on that linkage.
*
* The pledge payment record should already exist & will need to be updated with the new contribution ID.
* If not the contribution will also need to be linked to the pledge
- */
- /**
- * @param $contribution
+ *
+ * @param CRM_Contribute_BAO_Contribution $contribution
*/
public function updateRecurLinkedPledge(&$contribution) {
$returnProperties = array('id', 'pledge_id');
$this->_processorName = ts('PayJunction');
}
- /*
+ /**
* This function sends request and receives response from
* PayJunction payment process
- */
- /**
- * This function collects all the information from a web/api form and invokes
- * the relevant payment processor specific functions to perform the transaction
*
* @param array $params
* Assoc array of input parameters for this transaction.
*
* @return array
* the result in an nice formatted array (or an error object)
- * @abstract
*/
public function doDirectPayment(&$params) {
$logon = $this->_paymentProcessor['user_name'];
// end function doDirectPayment
- /*
- * This function checks the PayJunction response code
- */
/**
- * @param $response
+ * This function checks the PayJunction response code
*
* @return bool
*/
}
/*
- * Build the private data string to pass to DPS, which they will give back to us with the
- *
- * transaction result. We are building this as a comma-separated list so as to avoid long URLs.
- *
- * Parameters passed: a=contactID, b=contributionID,c=contributionTypeID,d=invoiceID,e=membershipID,f=participantID,g=eventID
- */
+ * Build the private data string to pass to DPS, which they will give back to us with the
+ *
+ * transaction result. We are building this as a comma-separated list so as to avoid long URLs.
+ *
+ * Parameters passed: a=contactID, b=contributionID,c=contributionTypeID,d=invoiceID,e=membershipID,f=participantID,g=eventID
+ */
$privateData = "a={$params['contactID']},b={$params['contributionID']},c={$params['contributionTypeID']},d={$params['invoiceID']}";
CRM_Utils_Hook::alterPaymentProcessorParams($this, $params, $dpsParams);
/*
- * determine whether method is pxaccess or pxpay by whether signature (mac key) is defined
- */
+ * determine whether method is pxaccess or pxpay by whether signature (mac key) is defined
+ */
if (empty($this->_paymentProcessor['signature'])) {
/*
/*
- * PxPay Functionality Copyright (C) 2008 Lucas Baker, Logistic Information Systems Limited (Logis)
- * PxAccess Functionality Copyright (C) 2008 Eileen McNaughton
- * Licensed to CiviCRM under the Academic Free License version 3.0.
- *
- * Grateful acknowledgements go to Donald Lobo for invaluable assistance
- * in creating this payment processor module
- */
+ * PxPay Functionality Copyright (C) 2008 Lucas Baker, Logistic Information Systems Limited (Logis)
+ * PxAccess Functionality Copyright (C) 2008 Eileen McNaughton
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ * Grateful acknowledgements go to Donald Lobo for invaluable assistance
+ * in creating this payment processor module
+ */
/**
* Class CRM_Core_Payment_PaymentExpressIPN
/*
- * Copyright (C) 2009
- * Licensed to CiviCRM under the Academic Free License version 3.0.
- *
- * Written and contributed by Kirkdesigns (http://www.kirkdesigns.co.uk)
- */
+ * Copyright (C) 2009
+ * Licensed to CiviCRM under the Academic Free License version 3.0.
+ *
+ * Written and contributed by Kirkdesigns (http://www.kirkdesigns.co.uk)
+ */
/**
*
*/
public static function &groupIterator($styledLabels = FALSE) {
if (!self::$groupIterator) {
- /*
- When used as an object, GroupNesting implements Iterator
- and iterates nested groups in a logical manner for us
- */
+ // When used as an object, GroupNesting implements Iterator
+ // and iterates nested groups in a logical manner for us
self::$groupIterator = new CRM_Contact_BAO_GroupNesting($styledLabels);
}
return self::$groupIterator;
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
*/
public $_lineItem = NULL;
- /*
+ /**
* Contribution mode for event registration for offline mode
*/
public $_contributeMode = 'direct';
}
}
- /*
- * process Registration of free event
- *
- * @param array $param
- * Form valuess.
- * @param int contactID
- *
- * @return void
- * access public
- */
/**
+ * Process Registration of free event
+ *
* @param array $params
+ * Form values.
* @param int $contactID
+ *
+ * @return void
+ * @access public
*/
public function processRegistration($params, $contactID = NULL) {
$session = CRM_Core_Session::singleton();
*/
class CRM_Financial_BAO_ExportFormat {
- /*
- * Array of data which the individual export formats will output in the desired format
+ /**
+ * data which the individual export formats will output in the desired format
+ * @var array
*/
protected $_exportParams;
- /*
+ /**
* smarty template
+ * @var CRM_Core_Smarty
*/
static protected $_template;
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return 'CRM/Financial/ExportFormat/IIF.tpl';
}
- /*
- * $s the input string
- * $type can be string, date, or notepad
- */
/**
- * @param $s
+ * @param string $s
+ * the input string
* @param string $type
+ * type can be string, date, or notepad
*
* @return bool|mixed|string
*/
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
* This class contains all the function that are called using AJAX
*/
class CRM_Financial_Page_AJAX {
- /*
+
+ /**
* get financial accounts of required account relationship
* $financialAccountType array with key account relationship and value financial account type option groups
- */
- /**
+ *
* @param $config
*/
public static function jqFinancial($config) {
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
$this->defaults = array();
/*
- * we allow the controller to set force/reset externally, useful when we are being
- * driven by the wizard framework
- */
+ * we allow the controller to set force/reset externally, useful when we are being
+ * driven by the wizard framework
+ */
$this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean', CRM_Core_DAO::$_nullObject);
$this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
}
}
- /*
- * log_civicrm_contact.modified_date for example would always be copied from civicrm_contact.modified_date,
+ /**
+ * Log_civicrm_contact.modified_date for example would always be copied from civicrm_contact.modified_date,
* so there's no need for a default timestamp and therefore we remove such default timestamps
* also eliminate the NOT NULL constraint, since we always copy and schema can change down the road)
- */
- /**
+ *
* @param $query
*
* @return mixed
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
protected $_memTypeSelected;
- /*
+ /**
* Display name of the member
+ *
+ * @var string
*/
protected $_memberDisplayName = NULL;
- /*
- * email of the person paying for the membership (used for receipts)
- */
+ /**
+ * email of the person paying for the membership (used for receipts)
+ */
protected $_memberEmail = NULL;
- /*l43
- * Contact ID of the member
- */
+ /**
+ * Contact ID of the member
+ *
+ * @var int
+ */
public $_contactID = NULL;
- /*
- * Display name of the person paying for the membership (used for receipts)
- */
+ /**
+ * Display name of the person paying for the membership (used for receipts)
+ *
+ * @var string
+ */
protected $_contributorDisplayName = NULL;
- /*
+ /**
* email of the person paying for the membership (used for receipts)
*/
protected $_contributorEmail = NULL;
- /*
- * email of the person paying for the membership (used for receipts)
- */
+ /**
+ * email of the person paying for the membership (used for receipts)
+ *
+ * @var int
+ */
protected $_contributorContactID = NULL;
- /*
+ /**
* ID of the person the receipt is to go to
+ *
+ * @var int
*/
protected $_receiptContactId = NULL;
- /*
+ /**
* Keep a class variable for ALL membeshipID's so
* postProcess hook function can do something with it
+ *
+ * @var array
*/
protected $_membershipIDs = array();
*
*/
class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
- /*
+
+ /**
* Display name of the member
+ *
+ * @var string
*/
protected $_memberDisplayName = NULL;
- /*
- * email of the person paying for the membership (used for receipts)
- */
+
+ /**
+ * email of the person paying for the membership (used for receipts)
+ */
protected $_memberEmail = NULL;
- /*
- * Contact ID of the member
- */
+
+ /**
+ * Contact ID of the member
+ *
+ *
+ * @var int
+ */
public $_contactID = NULL;
- /*
- * Display name of the person paying for the membership (used for receipts)
- */
+
+ /**
+ * Display name of the person paying for the membership (used for receipts)
+ *
+ * @var string
+ */
protected $_contributorDisplayName = NULL;
- /*
- * email of the person paying for the membership (used for receipts)
- */
+
+ /**
+ * email of the person paying for the membership (used for receipts)
+ */
protected $_contributorEmail = NULL;
- /*
- * email of the person paying for the membership (used for receipts)
- */
+
+ /**
+ * email of the person paying for the membership (used for receipts)
+ *
+ * @var int
+ */
protected $_contributorContactID = NULL;
- /*
- * ID of the person the receipt is to go to
- */
+
+ /**
+ * ID of the person the receipt is to go to
+ *
+ * @var int
+ */
protected $_receiptContactId = NULL;
- /*
+
+ /**
* context would be set to standalone if the contact is use is being selected from
* the form rather than in the URL
*/
$this->defaults = array();
/*
- * we allow the controller to set force/reset externally, useful when we are being
- * driven by the wizard framework
- */
+ * we allow the controller to set force/reset externally, useful when we are being
+ * driven by the wizard framework
+ */
$this->_reset = CRM_Utils_Request::retrieve('reset', 'Boolean', CRM_Core_DAO::$_nullObject);
$this->_force = CRM_Utils_Request::retrieve('force', 'Boolean', $this, FALSE);
* @return void
*/
public function preProcess() {
- /*
- * initialize the task and row fields
- */
+ // initialize the task and row fields
parent::preProcess();
//get the contact read only fields to display.
}
- /*
- * Add PCP form elements to a form
- */
/**
+ * Add PCP form elements to a form
+ *
* @param int $pcpId
* @param CRM_Core_Page $page
* @param null $elements
}
}
- /*
- * Process a PCP contribution/
- */
/**
+ * Process a PCP contribution
+ *
* @param int $pcpId
* @param $component
* @param $entity
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
}
}
- /*
+ /**
* Function to set tax_amount and tax_rate in LineItem
+ *
+ * @param array $field
+ * @param array $lineItem
+ * @param int $optionValueId
+ *
+ * @return array
*/
public static function setLineItem($field, $lineItem, $optionValueId) {
if ($field['html_type'] == 'Text') {
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
public function select() {
parent::select();
}
- /*
- * If we are retrieving total paid we need to define the inclusion of pledge_payment
- */
+
/**
+ * If we are retrieving total paid we need to define the inclusion of pledge_payment
+ *
* @param string $tableName
* @param $tableKey
* @param string $fieldName
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return $activeProviders;
}
- /*
+ /**
* Retrieves the list of providers from the database
*
* $selectArr array of coloumns to fetch
* $getActive boolean to get active providers
- */
- /**
+ *
* @param null $selectArr
* @param null $filter
* @param bool $getActive
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return $elementArray;
}
- /*
+ /**
* Searches array keys by regex, returning the value of the first match.
*
* Given a regular expression and an array, this method searches the keys
* @return mixed
* The value found.
*/
- /**
- * @param $regexKey
- * @param $list
- * @param null $default
- *
- * @return null
- */
public static function valueByRegexKey($regexKey, $list, $default = NULL) {
if (is_array($list) && $regexKey) {
$matches = preg_grep($regexKey, array_keys($list));
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return $value;
}
- /*
- * initialize label format settings
- */
/**
+ * initialize label format settings
+ *
* @param $format
* @param $unit
*/
$this->paper_dimensions = array($w, $h);
}
- /*
- * Generate the pdf of one label (can be modified using SetGenerator)
- */
/**
- * @param $text
+ * Generate the pdf of one label (can be modified using SetGenerator)
+ *
+ * @param string $text
*/
public function generateLabel($text) {
$args = array(
}
}
- /*
- * Print a label
- */
/**
+ * Print a label
+ *
* @param $texte
*/
public function AddPdfLabel($texte) {
}
}
- /*
- * convert value from one metric to another
- */
/**
+ * convert value from one metric to another
+ *
* @param $value
* @param $from
* @param $to
* Utilities for manipulating/inspecting CRM_*_PseudoConstant classes
*/
class CRM_Utils_PseudoConstant {
- /*
+ /**
* CiviCRM pseudoconstant classes for wrapper functions
*/
private static $constantClasses = array(
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
}
}
- /*
+ /**
* Get logged in user's IP address.
*
* Get IP address from HTTP REMOTE_ADDR header. If the CMS is Drupal then use
* @return string
* IP address of logged in user.
*/
- /**
- * @param bool $strictIPV4
- *
- * @return mixed|string
- */
public static function ipAddress($strictIPV4 = TRUE) {
$address = CRM_Utils_Array::value('REMOTE_ADDR', $_SERVER);
return $form_state['user']->uid;
}
- /*
- * Change user name in host CMS
- *
- * @param int $ufID User ID in CMS
- * @param string $ufName User name
- */
/**
+ * Change user name in host CMS
+ *
* @param int $ufID
+ * User ID in CMS
* @param string $ufName
+ * User name
*/
public function updateCMSName($ufID, $ufName) {
// CRM-5555
}
}
- /*
+ /**
* Get the drupal destination string. When this is passed in the
* URL the user will be directed to it after filling in the drupal form
*
* @param CRM_Core_Form $form
* Form object representing the 'current' form - to which the user will be returned.
- * @return string
- * destination value for URL
- */
- /**
- * @param CRM_Core_Form $form
- *
* @return null|string
+ * destination value for URL
*/
public function getLoginDestination(&$form) {
$args = NULL;
return FALSE;
}
- /*
- * Load user into session
- */
/**
+ * Load user into session
+ *
* @param string $username
*
* @return bool
return $form_state['user']->uid;
}
- /*
- * Change user name in host CMS
- *
- * @param int $ufID User ID in CMS
- * @param string $ufName User name
- */
/**
- * @param int $ufID
- * @param string $ufName
+ * Change user name in host CMS
+ *
+ * @param int $ufID User ID in CMS
+ * @param string $ufName User name
*/
public function updateCMSName($ufID, $ufName) {
// CRM-5555
* 'activity_type_id' => '$value.testfield',
* 'tag_id' => '$value.api.tag.create.id',
* 'tag1_id' => '$value.api.entity.create.0.id'
- *
+ *
* @param array $params
* @param array $parentResult
* @param string $separator
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-/*
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-/*
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-/*
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-// $Id$
/*
+--------------------------------------------------------------------+
| Project60 version 4.3 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-/*
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-/*
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-/*
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
return array($headers, $rows);
}
- /*
- * Helper function to provide data for contact import for Household
- * Duplicate Matching.
- */
/**
+ * Helper function to provide data for contact import for Household
+ * Duplicate Matching.
+ *
* @param $householdFields
*
* @return array
parent::setUp();
}
- /*
- * Test Multiple Relationship import for Individuals.
- */
+ /**
+ * Test Multiple Relationship import for Individuals.
+ */
public function testMultipleRelationshipImport() {
$this->webtestLogin();
$this->importContacts($headers, $rows, 'Individual', 'Skip', $fieldMapper);
}
- /*
+ /**
* Helper function to provide data for multiple relationship import
* for Individuals.
-
- */
- /**
+ *
* @return array
*/
public function _individualRelationshipCSVData() {
parent::setUp();
}
- /*
- * Test contact import for Individuals.
- */
+ /**
+ * Test contact import for Individuals.
+ */
public function testContactImportWithTag() {
$this->webtestLogin();
$this->waitForElementPresent('css=div#memberships');
}
- /*
+ /**
* Webtest for CRM-10146
*/
public function testInheritedMembershipActivity() {
$this->_roleDelete($role2);
}
- /*
+ /**
*check for CRM-10148
*/
public function testReservedReportPermission() {
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
$this->assertEquals('krypton', $params['big_rock']);
}
- /*
- * test that error doesn't occur for non-existant file
- */
+ /**
+ * test that error doesn't occur for non-existant file
+ */
public function testAPIWrapperIncludeNoFile() {
$result = $this->callAPIFailure('RandomFile', 'get', array(), 'API (RandomFile,get) does not exist (join the API team and implement it!)');
$this->assertEquals("test activity type id", $result['values'][0]['subject'], 'In line ' . __LINE__);
}
- /*
+ /**
* test that get functioning does filtering
*/
public function testGetFilter() {
}
}
- /*
+ /**
* test that get functioning does filtering
*/
public function testGetStatusID() {
}
- /*
+ /**
* test that get functioning does filtering
*/
public function testGetFilterMaxDate() {
$this->assertEquals('Test activity type', $result['values'][$activity2['id']]['activity_name'], 'In line ' . __LINE__);
}
- /*
+ /**
* test chained Activity format
*/
public function testchainedActivityGet() {
}
- /*
+ /**
* Test creating a current employer through API
*/
public function testContactCreateCurrentEmployer() {
}
- /*
+ /**
* Test creating a current employer through API
* - check it will re-activate a de-activated employer
- */
+ */
public function testContactCreateDuplicateCurrentEmployerEnables() {
//set up - create employer relationship
$employerResult = $this->callAPISuccess('contact', 'create', array_merge($this->_params, array(
$this->callAPISuccess($this->_entity, 'delete', array('id' => $c2['id']));
}
- /*
+ /**
* Test that we can retrieve contacts using
* 'id' => array('IN' => array('3,4')) syntax
- */
+ */
public function testGetINIDArray() {
$c1 = $this->callAPISuccess($this->_entity, 'create', $this->_params);
$c2 = $this->callAPISuccess($this->_entity, 'create', array(
$this->callAPISuccess($this->_entity, 'delete', array('id' => $c3['id']));
}
- /*
+ /**
* Test variants on deleted behaviour
*/
public function testGetDeleted() {
$this->assertEquals('http://civicrm.org', $result['values'][$result['id']]['api.website.getValue']);
}
- /*
+ /**
* Test checks siusage of $values to pick & choose inputs
*/
public function testChainingValuesCreate() {
$this->quickCleanup($tablesToTruncate, TRUE);
}
- /*
+ /**
* test TrueFalse format - I couldn't come up with an easy way to get an error on Get
*/
public function testContactGetFormatIsSuccessTrue() {
$this->callAPISuccess('Contact', 'Delete', $params);
}
- /*
+ /**
* test TrueFalse format
*/
public function testContactCreateFormatIsSuccessFalse() {
$this->assertEquals(0, $result);
}
- /*
+ /**
* test Single Entity format
*/
public function testContactGetSingle_entity_array() {
$this->callAPISuccess('Contact', 'Delete', $params);
}
- /*
+ /**
* test Single Entity format
*/
public function testContactGetFormatcount_only() {
$this->callAPISuccess('Contact', 'Delete', $params);
}
- /*
+ /**
* Test id only format
*/
public function testContactGetFormatID_only() {
$this->callAPISuccess('Contact', 'Delete', $params);
}
- /*
+ /**
* Test id only format
*/
public function testContactGetFormatSingleValue() {
);
}
- /*
+ /**
* Function tests that additional financial records are created when fee amount is recorded
*/
public function testCreateContributionSoft() {
$this->assertEquals($contribution['values'][$contribution['id']]['source'], 'SSF');
}
- /*
+ /**
* Create test with unique field name on source
- */
+ */
public function testCreateDefaultNow() {
$params = $this->_params;
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
$this->callAPISuccess('pledge', 'delete', array('pledge_id' => $pledge['id']));
}
- /*
+ /**
* Test that pledge with weekly schedule calculates dates correctly
- */
+ */
public function testCreatePledgeMontlySchedule() {
$params = array(
'scheduled_date' => '20110510',
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
<?php
-
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.6 |