Icon cleanup
[civicrm-core.git] / CRM / Core / BAO / Persistent.php
index ab786b14f4bced4a805930334f3e55ba043ae324..a6b165a4f362af1ce29e92d1a1759076b0d302a5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -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_Core_BAO_Persistent extends CRM_Core_DAO_Persistent {
 
   /**
-   * 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
+   * @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_Persistent object
-   * @access public
-   * @static
+   * @return CRM_Core_BAO_Persistent
    */
-  static function retrieve(&$params, &$defaults) {
+  public static function retrieve(&$params, &$defaults) {
     $dao = new CRM_Core_DAO_Persistent();
     $dao->copyValues($params);
 
@@ -59,17 +59,17 @@ class CRM_Core_BAO_Persistent extends CRM_Core_DAO_Persistent {
   }
 
   /**
-   * Add the Persistent Record
+   * Add the Persistent Record.
    *
-   * @param array $params reference array contains the values submitted by the form
-   * @param array $ids    reference array contains the id
+   * @param array $params
+   *   Reference array contains the values submitted by the form.
+   * @param array $ids
+   *   Reference array contains the id.
    *
-   * @access public
-   * @static
    *
    * @return object
    */
-  static function add(&$params, &$ids) {
+  public static function add(&$params, &$ids) {
     if (CRM_Utils_Array::value('is_config', $params) == 1) {
       $params['data'] = serialize(explode(',', $params['data']));
     }
@@ -87,7 +87,7 @@ class CRM_Core_BAO_Persistent extends CRM_Core_DAO_Persistent {
    *
    * @return mixed
    */
-  static function getContext($context, $name = NULL) {
+  public static function getContext($context, $name = NULL) {
     static $contextNameData = array();
 
     if (!array_key_exists($context, $contextNameData)) {
@@ -107,5 +107,5 @@ class CRM_Core_BAO_Persistent extends CRM_Core_DAO_Persistent {
       return CRM_Utils_Array::value($name, $contextNameData[$context]);
     }
   }
-}
 
+}