<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
*/
/**
- * Class contains functions for phone
+ * Class contains functions for phone.
*/
class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
}
/**
- * Takes an associative array and adds phone
+ * Takes an associative array and adds phone.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
* 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 array $entityBlock
*
* @return array
* array of phone objects
WHERE civicrm_contact.id = %1 $cond
ORDER BY civicrm_phone.is_primary DESC, phone_id ASC ";
-
$params = array(
1 => array(
$id,
*
* @param $optionId
* Value of option to be deleted.
- *
- * @return void
*/
public static function setOptionToNull($optionId) {
if (!$optionId) {
}
/**
- * Call common delete function
+ * Call common delete function.
*/
public static function del($id) {
// Ensure mysql phone function exists
CRM_Core_DAO::checkSqlFunctionsExist();
return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('Phone', $id);
}
+
}