<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | 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$
*
*/
*
* @param array $params input parameters
*/
+ /**
+ * @param $params
+ *
+ * @return object
+ * @throws API_Exception
+ */
static function create($params) {
// Ensure mysql phone function exists
CRM_Core_DAO::checkSqlFunctionsExist();
*
* @param int $id the contact id
*
+ * @param bool $updateBlankLocInfo
+ * @param null $type
+ * @param array $filters
+ *
* @return array the array of phone ids which are potential numbers
* @access public
* @static
$cond = NULL;
if ($type) {
- $phoneTypeId = array_search($type, CRM_Core_PseudoConstant::phoneType());
+ $phoneTypeId = array_search($type, CRM_Core_PseudoConstant::get('CRM_Core_DAO_Phone', 'phone_type_id'));
if ($phoneTypeId) {
$cond = " AND civicrm_phone.phone_type_id = $phoneTypeId";
}
* @param array $entityElements the array containing entity_id and
* entity_table name
*
+ * @param null $type
+ *
* @return array the array of phone ids which are potential numbers
* @access public
* @static
$cond = NULL;
if ($type) {
- $phoneTypeId = array_search($type, CRM_Core_PseudoConstant::phoneType());
+ $phoneTypeId = array_search($type, CRM_Core_PseudoConstant::get('CRM_Core_DAO_Phone', 'phone_type_id'));
if ($phoneTypeId) {
$cond = " AND civicrm_phone.phone_type_id = $phoneTypeId";
}