* @return array
* as array of success/fails for each address block
*/
- public function parseAddress(&$params) {
+ public static function parseAddress(&$params) {
$parseSuccess = $parsedFields = [];
if (!is_array($params['address']) ||
CRM_Utils_System::isNull($params['address'])
*
* @return array
*/
- public function mergeSameHousehold(&$rows) {
+ public static function mergeSameHousehold(&$rows) {
// group selected contacts by type
$individuals = [];
$households = [];
*
* @param int $profileID
*/
- public function resetInSelectorANDSearchable($profileID) {
+ public static function resetInSelectorANDSearchable($profileID) {
if (!$profileID) {
return;
}
*
* @return array
*/
- public function checkFieldsEmptyValues($gid, $cid, $params, $skipCheck = FALSE) {
+ public static function checkFieldsEmptyValues($gid, $cid, $params, $skipCheck = FALSE) {
if ($gid) {
if (CRM_Core_BAO_UFGroup::filterUFGroups($gid, $cid) || $skipCheck) {
$values = [];
* @param array $configs
* Optional, for addProfileSelector(), defaults to using getProfileSelectorTypes().
*/
- public function buildMultipleProfileBottom(&$form, $count, $prefix = '', $label = 'Include Profile', $configs = NULL) {
+ public static function buildMultipleProfileBottom(&$form, $count, $prefix = '', $label = 'Include Profile', $configs = NULL) {
extract((is_null($configs)) ? self::getProfileSelectorTypes() : $configs);
$element = $prefix . "custom_post_id_multiple[$count]";
$label .= '<br />' . ts('(bottom of page)');
*
* @return string
*/
- public function formatUnrecognisedPart($part) {
+ public static function formatUnrecognisedPart($part) {
CRM_Core_Error::debug_log_message(ts('CRM_Utils_Mail_Incoming: Unable to handle message part of type "%1".', [1 => get_class($part)]));
return ts('Unrecognised message part of type "%1".', [1 => get_class($part)]);
}