* True if used for search else false.
* @param string $label
* Label for custom field.
- * @return \HTML_QuickForm_Element|null
+ * @return \HTML_QuickForm_element|null
* @throws \CRM_Core_Exception
*/
public static function addQuickFormElement(
* For datepicker elements this is consistent with the data
* from CRM_Utils_Date::getDatePickerExtra
*
- * @return HTML_QuickForm_Element
+ * @return HTML_QuickForm_element
* Could be an error object
*
* @throws \CRM_Core_Exception
* - context - @see CRM_Core_DAO::buildOptionsContext
* @param bool $required
* @throws CRM_Core_Exception
- * @return HTML_QuickForm_Element
+ * @return HTML_QuickForm_element
*/
public function addSelect($name, $props = [], $required = FALSE) {
if (!isset($props['entity'])) {
* @throws \CRM_Core_Exception
* @throws \Exception
* @return mixed
- * HTML_QuickForm_Element
+ * HTML_QuickForm_element
* void
*/
public function addField($name, $props = [], $required = FALSE, $legacyDate = TRUE) {
* @param string $defaultCurrency
* @param bool $freezeCurrency
*
- * @return \HTML_QuickForm_Element
+ * @return HTML_QuickForm_element
*/
public function addMoney(
$name,
* - class, etc. - other html properties
* @param bool $required
*
- * @return HTML_QuickForm_Element
+ * @return HTML_QuickForm_element
*/
public function addEntityRef($name, $label = '', $props = [], $required = FALSE) {
// Default properties
* @param string $elementName
* @param array $settings
*
- * @return HTML_QuickForm_Element
+ * @return HTML_QuickForm_element
*/
public function addChainSelect($elementName, $settings = []) {
$required = $settings['required'] ?? FALSE;
/**
* Get the complete information for one or more events.
*
- * @param date $start
+ * @param Date $start
* Get events with start date >= this date.
* @param int $type Get events on the a specific event type (by event_type_id).
* Get events on the a specific event type (by event_type_id).
* @param int $eventId Return a single event - by event id.
* Return a single event - by event id.
- * @param date $end
+ * @param Date $end
* Also get events with end date >= this date.
* @param bool $onlyPublic Include public events only, default TRUE.
* Include public events only, default TRUE.
if (empty($params['contact_id'])) {
$error = $this->checkContactDuplicate($formatValues);
- if (CRM_Core_Error::isAPIError($error, CRM_Core_ERROR::DUPLICATE_CONTACT)) {
+ if (CRM_Core_Error::isAPIError($error, CRM_Core_Error::DUPLICATE_CONTACT)) {
$matchedIDs = (array) $error['error_message']['params'];
if (count($matchedIDs) >= 1) {
foreach ($matchedIDs as $contactId) {
/**
* Determine whether downloading is supported.
*
- * @param \CRM_EXtension_Info $extensionInfo Optional info for (updated) extension
+ * @param \CRM_Extension_Info $extensionInfo Optional info for (updated) extension
*
* @return array
* list of error messages; empty if OK
if (empty($formatValues['id']) && empty($formatValues['contact_id'])) {
$error = $this->checkContactDuplicate($formatValues);
- if (CRM_Core_Error::isAPIError($error, CRM_Core_ERROR::DUPLICATE_CONTACT)) {
+ if (CRM_Core_Error::isAPIError($error, CRM_Core_Error::DUPLICATE_CONTACT)) {
$matchedIDs = (array) $error['error_message']['params'];
if (count($matchedIDs) > 1) {
throw new CRM_Core_Exception('Multiple matching contact records detected for this row. The membership was not imported', CRM_Import_Parser::ERROR);
$communicationMethods = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'preferred_communication_method');
// Explode padded values.
- $values = CRM_utils_array::explodePadded($value);
+ $values = CRM_Utils_Array::explodePadded($value);
// Flip values, compute intersection with $communicationMethods, and implode with commas.
$value = implode(', ', array_intersect_key($communicationMethods, array_flip($values)));
return $value;
* Find whether today's date lies in
* the given range
*
- * @param date $startDate
+ * @param Date $startDate
* Start date for the range.
- * @param date $endDate
+ * @param Date $endDate
* End date for the range.
*
* @return bool
/**
* Calculate Age in Years if greater than one year else in months.
*
- * @param date $birthDate
+ * @param Date $birthDate
* Birth Date.
- * @param date $targetDate
+ * @param Date $targetDate
* Target Date. (show age on specific date)
*
* @return array
return self::formatMailRfc822Digest($part, $attachments);
}
- if ($part instanceof ezcMailMultiPart) {
+ if ($part instanceof ezcMailMultipart) {
return self::formatMailMultipart($part, $attachments);
}
* @throws Exception
*/
public static function formatMailMultipart($part, &$attachments) {
- if ($part instanceof ezcMailMultiPartAlternative) {
+ if ($part instanceof ezcMailMultipartAlternative) {
return self::formatMailMultipartAlternative($part, $attachments);
}
- if ($part instanceof ezcMailMultiPartDigest) {
+ if ($part instanceof ezcMailMultipartDigest) {
return self::formatMailMultipartDigest($part, $attachments);
}
- if ($part instanceof ezcMailMultiPartRelated) {
+ if ($part instanceof ezcMailMultipartRelated) {
return self::formatMailMultipartRelated($part, $attachments);
}
- if ($part instanceof ezcMailMultiPartMixed) {
+ if ($part instanceof ezcMailMultipartMixed) {
return self::formatMailMultipartMixed($part, $attachments);
}