<?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$
*
*/
* process website
*
* @param array $params associated array
- * @param int $contactID contact id
+ * @param int $contactID contact id
+ *
+ * @param $skipDelete
*
* @return void
* @access public
}
}
- if (!CRM_Utils_Array::value('id', $values) &&
+ if (empty($values['id']) &&
is_array($ids) && !empty($ids)
) {
foreach ($ids as $id => $value) {
- if (($value['website_type_id'] == $values['website_type_id'])
- && CRM_Utils_Array::value('url', $values)) {
+ if (($value['website_type_id'] == $values['website_type_id']) && !empty($values['url'])) {
$values['id'] = $id;
unset($ids[$id]);
break;
}
}
$values['contact_id'] = $contactID;
- if ( CRM_Utils_Array::value('url', $values) ) {
+ if (!empty($values['url'])) {
self::add($values);
}
}
* Given the list of params in the params array, fetch the object
* and store the values in the values array
*
- * @param array entityBlock input parameters to find object
+ * @param $params
+ * @param $values
+ *
+ * @internal param \entityBlock $array input parameters to find object
*
* @return boolean
* @access public
*
* @param int $id the contact id
*
+ * @param bool $updateBlankLocInfo
+ *
* @return array the array of website details
* @access public
* @static