| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @param array $exportParams
* @param string $queryOperator
*
- * @static
*/
- static function exportComponents(
+ public static function exportComponents(
$selectAll,
$ids,
$params,
$componentReturnProperties = CRM_Contact_BAO_Query::defaultReturnProperties($queryMode);
if ($queryMode == CRM_Contact_BAO_Query::MODE_CONTRIBUTE) {
// soft credit columns are not automatically populated, because contribution search doesn't require them by default
- $componentReturnProperties =
- array_merge(
+ $componentReturnProperties = array_merge(
$componentReturnProperties,
CRM_Contribute_BAO_Query::softCreditReturnProperties(TRUE));
}
elseif (is_object($relDAO) && in_array($relationField, array(
'email_greeting',
'postal_greeting',
- 'addressee'
+ 'addressee',
))
) {
//special case for greeting replacement
elseif (in_array($field, array(
'email_greeting',
'postal_greeting',
- 'addressee'
+ 'addressee',
))) {
//special case for greeting replacement
$fldValue = "{$field}_display";
* @param int $mode
* Export mode.
*
- * @return string name of the file
+ * @return string
+ * name of the file
*/
public static function getExportFileName($output = 'csv', $mode = CRM_Export_Form_Select::CONTACT_EXPORT) {
switch ($mode) {
/**
* Handle import error file creation.
- *
*/
public static function invoke() {
$type = CRM_Utils_Request::retrieve('type', 'Positive', CRM_Core_DAO::$_nullObject);
if ($parserClass[0] == 'CRM' &&
count($parserClass) >= 3
) {
- require_once(str_replace('_', DIRECTORY_SEPARATOR, $parserName) . ".php");
+ require_once str_replace('_', DIRECTORY_SEPARATOR, $parserName) . ".php";
// ensure the functions exists
if (method_exists($parserName, 'errorFileName') &&
method_exists($parserName, 'saveFileName')
public static function exportCustom($customSearchClass, $formValues, $order) {
$ext = CRM_Extension_System::singleton()->getMapper();
if (!$ext->isExtensionClass($customSearchClass)) {
- require_once(str_replace('_', DIRECTORY_SEPARATOR, $customSearchClass) . '.php');
+ require_once str_replace('_', DIRECTORY_SEPARATOR, $customSearchClass) . '.php';
}
else {
- require_once($ext->classToPath($customSearchClass));
+ require_once $ext->classToPath($customSearchClass);
}
$search = new $customSearchClass($formValues);
$changeFields = array(
'groups',
'tags',
- 'notes'
+ 'notes',
);
if (in_array($fieldName, $changeFields)) {
* The function unsets static part of the string, if token is the dynamic part.
* Example: 'Hello {contact.first_name}' => converted to => '{contact.first_name}'
* i.e 'Hello Alan' => converted to => 'Alan'
- *
*/
- static function _trimNonTokens(
+ public static function _trimNonTokens(
&$parsedString, $defaultGreeting,
- $addressMergeGreetings, $greetingType = 'postal_greeting'
+ $addressMergeGreetings, $greetingType = 'postal_greeting'
) {
if (!empty($addressMergeGreetings[$greetingType])) {
$greetingLabel = $addressMergeGreetings[$greetingType];
'contact_is_deleted' => 'is_deleted',
'name' => 'address_name',
'provider_id' => 'im_service_provider',
- 'phone_type_id' => 'phone_type'
+ 'phone_type_id' => 'phone_type',
);
//figure out which columns are to be replaced by which ones
/**
* Manipulate header rows for relationship fields
- *
*/
public static function manipulateHeaderRows(&$headerRows, $contactRelationshipTypes) {
foreach ($headerRows as & $header) {
/**
* Exclude contacts who are deceased, have "Do not mail" privacy setting,
* or have no street address
- *
*/
public static function postalMailingFormat($exportTempTable, &$headerRows, &$sqlColumns, $exportParams) {
$whereClause = array();
}
return $componentPaymentFields;
}
+
}