comment fixes
[civicrm-core.git] / CRM / Core / BAO / UFField.php
index 5b6204053c4ea4753ec6f0a5f9c3ce13b05dd66d..d8190c4d17dc63b87e5baac5ca42c5dd4d91b2ad 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  *
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
  */
 
 /**
- * This class contains function for UFField
- *
+ * This class contains function for UFField.
  */
 class CRM_Core_BAO_UFField extends CRM_Core_DAO_UFField {
 
@@ -149,7 +146,11 @@ class CRM_Core_BAO_UFField extends CRM_Core_DAO_UFField {
   }
 
   /**
-   * Does profile consists of a multi-record custom field
+   * Does profile consists of a multi-record custom field.
+   *
+   * @param int $gId
+   *
+   * @return bool
    */
   public static function checkMultiRecordFieldExists($gId) {
     $queryString = "SELECT f.field_name
@@ -271,8 +272,6 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
    *   Custom field id.
    * @param bool $is_active
    *   Set the is_active field.
-   *
-   * @return void
    */
   public static function setUFField($customFieldId, $is_active) {
     //find the profile id given custom field
@@ -294,8 +293,6 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
    *   From which we need to copy.
    * @param bool $new_id
    *   In which to copy.
-   *
-   * @return void
    */
   public static function copy($old_id, $new_id) {
     $ufField = new CRM_Core_DAO_UFField();
@@ -314,9 +311,6 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
    *
    * @param int $customFieldId
    *   ID of the custom field to be deleted.
-   *
-   * @return void
-   *
    */
   public static function delUFField($customFieldId) {
     //find the profile id given custom field id
@@ -337,8 +331,6 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
    *   Custom group id.
    * @param bool $is_active
    *   Value we want to set the is_active field.
-   *
-   * @return void
    */
   public static function setUFFieldStatus($customGroupId, $is_active) {
     //find the profile id given custom group id
@@ -752,8 +744,6 @@ SELECT  id
    * Reset In selector and is searchable values for given $profileID.
    *
    * @param int $profileID
-   *
-   * @return void
    */
   public function resetInSelectorANDSearchable($profileID) {
     if (!$profileID) {
@@ -1137,11 +1127,11 @@ SELECT  id
         ),
         'receive_date' => array(
           'name' => 'receive_date',
-          'title' => ts('Receive Date'),
+          'title' => ts('Date Received'),
         ),
         'payment_instrument' => array(
           'name' => 'payment_instrument',
-          'title' => ts('Payment Instrument'),
+          'title' => ts('Payment Method'),
         ),
         'contribution_status_id' => array(
           'name' => 'contribution_status_id',