<?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. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
* @return array
* array reference of all membership types if any
*/
- 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',
* @param string $column
* @param bool $force
*
+ * @param bool $allStatus
+ *
* @return array
- * array reference of all membership statuss if any
+ * 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) {