Merge pull request #5338 from kurund/CRM-15756
[civicrm-core.git] / CRM / Mailing / BAO / Component.php
index 6091bad757314409ced9e3166d5a59a1b431ed56..7a632418a3b67a246a42d7b281bbadac26837a5b 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
 class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
 
   /**
-   * Class constructor
+   * Class constructor.
    */
   public function __construct() {
     parent::__construct();
   }
 
   /**
-   * Fetch object based on array of properties
+   * Fetch object based on array of properties.
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_LocaationType object
-   * @static
+   * @return CRM_Core_BAO_LocaationType
    */
   public static function retrieve(&$params, &$defaults) {
     $component = new CRM_Mailing_DAO_Component();
@@ -63,7 +62,7 @@ class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
   }
 
   /**
-   * Update the is_active flag in the db
+   * Update the is_active flag in the db.
    *
    * @param int $id
    *   Id of the database record.
@@ -72,23 +71,21 @@ class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
    *
    * @return Object
    *   DAO object on sucess, null otherwise
-   * @static
    */
   public static function setIsActive($id, $is_active) {
     return CRM_Core_DAO::setFieldValue('CRM_Mailing_DAO_Component', $id, 'is_active', $is_active);
   }
 
   /**
-   * Create and Update mailing component
+   * Create and Update mailing component.
    *
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    * @param array $ids
    *   (deprecated) the array that holds all the db ids.
    *
-   * @return CRM_Mailing_BAO_Component object
+   * @return CRM_Mailing_BAO_Component
    *
-   * @static
    */
   public static function add(&$params, $ids = array()) {
     $id = CRM_Utils_Array::value('id', $params, CRM_Utils_Array::value('id', $ids));
@@ -106,4 +103,5 @@ class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
     $component->save();
     return $component;
   }
+
 }