MagicMerge - Per-request cache of path/url properties
[civicrm-core.git] / CRM / Core / BAO / Phone.php
index b83e8ff917045bb25c377414d5b959f96e35b2c3..796129085f3dea2d98977972d9f102eef39458b7 100644 (file)
@@ -1,9 +1,9 @@
 <?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 {
 
@@ -63,7 +61,7 @@ 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.
@@ -90,7 +88,7 @@ class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
    * 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
@@ -142,7 +140,6 @@ LEFT JOIN civicrm_location_type ON ( civicrm_phone.location_type_id = civicrm_lo
 WHERE     civicrm_contact.id = %1 $cond
 ORDER BY civicrm_phone.is_primary DESC,  phone_id ASC ";
 
-
     $params = array(
       1 => array(
         $id,
@@ -235,8 +232,6 @@ ORDER BY ph.is_primary DESC, phone_id ASC ";
    *
    * @param $optionId
    *   Value of option to be deleted.
-   *
-   * @return void
    */
   public static function setOptionToNull($optionId) {
     if (!$optionId) {
@@ -264,11 +259,12 @@ ORDER BY ph.is_primary DESC, phone_id ASC ";
   }
 
   /**
-   * 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);
   }
+
 }