Merge pull request #4389 from priyankakaran26/recurring-activity-46
[civicrm-core.git] / CRM / Activity / BAO / ActivityTarget.php
index 3309c1285d9e2974c0099c43a3fe9b8e66fa59f0..6ab4bdbd666a99ffa1c0d33c21a723d91e4280bb 100644 (file)
@@ -1,9 +1,9 @@
 <?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.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -47,14 +47,15 @@ class CRM_Activity_BAO_ActivityTarget extends CRM_Activity_DAO_ActivityContact {
   }
 
   /**
-   * funtion to add activity target
+   * function to add activity target
    *
-   * @param array  $activity_id           (reference ) an assoc array of name/value pairs
-   * @param array  $target_contact_id     (reference ) the array that holds all the db ids
+   * @param $params
+   *
+   * @internal param array $activity_id (reference ) an assoc array of name/value pairs
+   * @internal param array $target_contact_id (reference ) the array that holds all the db ids
    *
    * @return object activity type of object that is added
    * @access public
-   *
    */
   public static function create(&$params) {
     $target = new CRM_Activity_BAO_ActivityContact();
@@ -69,12 +70,13 @@ class CRM_Activity_BAO_ActivityTarget extends CRM_Activity_DAO_ActivityContact {
   /**
    * function to retrieve id of target contact by activity_id
    *
-   * @param int    $id  ID of the activity
+   * @param $activity_id
+   *
+   * @internal param int $id ID of the activity
    *
    * @return mixed
    *
    * @access public
-   *
    */
   static function retrieveTargetIdsByActivityId($activity_id) {
     $targetArray = array();
@@ -103,12 +105,13 @@ AND        civicrm_contact.is_deleted = 0
   /**
    * function to retrieve names of target contact by activity_id
    *
-   * @param int    $id  ID of the activity
+   * @param $activityID
+   *
+   * @internal param int $id ID of the activity
    *
    * @return array
    *
    * @access public
-   *
    */
   static function getTargetNames($activityID) {
     $targetNames = array();