Merge pull request #7531 from JKingsnorth/CRM-17261
[civicrm-core.git] / CRM / Member / PseudoConstant.php
index 2a5f96bca5e06b91300132de6aaa73d84086885a..d16e0c7cae8ca3abe4c809625b754c45d4f271b1 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
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
 class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
 
   /**
-   * Membership types
+   * Membership types.
    * @var array
-   * @static
    */
   private static $membershipType;
 
   /**
-   * Membership types
+   * Membership types.
    * @var array
-   * @static
    */
   private static $membershipStatus;
 
   /**
-   * Get all the membership types
+   * Get all the membership types.
    *
    *
    * @param int $id
@@ -62,9 +60,8 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
    *
    * @return array
    *   array reference of all membership types if any
-   * @static
    */
-  public static function &membershipType($id = NULL, $force = FALSE) {
+  public static function membershipType($id = NULL, $force = TRUE) {
     if (!self::$membershipType || $force) {
       CRM_Core_PseudoConstant::populate(self::$membershipType,
         'CRM_Member_DAO_MembershipType',
@@ -84,7 +81,7 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
   }
 
   /**
-   * Get all the membership statuss
+   * Get all the membership statuss.
    *
    *
    * @param int $id
@@ -92,9 +89,10 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
    * @param string $column
    * @param bool $force
    *
+   * @param bool $allStatus
+   *
    * @return array
-   *   array reference of all membership statuss if any
-   * @static
+   *    array reference of all membership statuses if any
    */
   public static function &membershipStatus($id = NULL, $cond = NULL, $column = 'name', $force = FALSE, $allStatus = FALSE) {
     if (self::$membershipStatus === NULL) {
@@ -127,7 +125,6 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
    * Flush given pseudoconstant so it can be reread from db
    * next time it's requested.
    *
-   * @static
    *
    * @param bool|string $name pseudoconstant to be flushed
    */
@@ -136,4 +133,5 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant {
       self::$$name = NULL;
     }
   }
+
 }