<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
if ($customFieldID = CRM_Core_BAO_CustomField::getKeyID($name)) {
$customValue = CRM_Utils_Array::value($customFieldID, $this->_customFields);
$entityColumnValue = array();
- if (CRM_Utils_Array::value('extends_entity_column_value', $customValue)) {
+ if (!empty($customValue['extends_entity_column_value'])) {
$entityColumnValue = explode(CRM_Core_DAO::VALUE_SEPARATOR,
$customValue['extends_entity_column_value']
);
*
* @access public
*
- * @return None
+ * @return void
*/
function setDefaultValues() {
if (empty($this->_fields)) {
*
* @access public
*
- * @return None
+ * @return void
*/
public function postProcess() {
$params = $this->exportValues();
);
$value['id'] = $key;
- if (CRM_Utils_Array::value('participant_register_date', $value)) {
+ if (!empty($value['participant_register_date'])) {
$value['register_date'] = CRM_Utils_Date::processDate($value['participant_register_date'], $value['participant_register_date_time']);
}
- if (CRM_Utils_Array::value('participant_role', $value)) {
+ if (!empty($value['participant_role'])) {
$participantRoles = CRM_Event_PseudoConstant::participantRole();
if (is_array($value['participant_role'])) {
$value['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, array_keys($value['participant_role']));
//need to send mail when status change
$statusChange = FALSE;
$relatedStatusChange = FALSE;
- if (CRM_Utils_Array::value('participant_status', $value)) {
+ if (!empty($value['participant_status'])) {
$value['status_id'] = $value['participant_status'];
$fromStatusId = CRM_Utils_Array::value($key, $this->_fromStatusIds);
if (!$fromStatusId) {
}
}
- if (CRM_Utils_Array::value('participant_source', $value)) {
+ if (!empty($value['participant_source'])) {
$value['source'] = $value['participant_source'];
}
unset($value['participant_register_date']);
}
//end of function
+ /**
+ * @param $participantId
+ * @param $statusId
+ *
+ * @return Ambigous|void
+ */
static function updatePendingOnlineContribution($participantId, $statusId) {
if (!$participantId || !$statusId) {
return;