+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | 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$
*
*/
/**
* Activity types
* @var array
- * @static
*/
private static $activityType;
/**
* Campaign Type
* @var array
- * @static
*/
private static $campaignType = array();
/**
* Campaign Status
* @var array
- * @static
*/
private static $campaignStatus = array();
/**
* Engagement Level
- * @static
*/
private static $engagementLevel;
*
* @return array
* array reference of all survey activity types.
- * @static
*/
public static function &activityType($returnColumn = 'name') {
$cacheKey = $returnColumn;
*
* The static array campaignType is returned
*
- * @static
*
* @return array
* array reference of all campaign types.
- *
*/
public static function &campaignType() {
if (!self::$campaignType) {
*
* The static array campaignStatus is returned
*
- * @static
*
* @return array
* array reference of all campaign status.
- *
*/
public static function &campaignStatus() {
if (!self::$campaignStatus) {
*
* The static array Engagement Level is returned
*
- * @static
*
* @return array
* array reference of all Engagement Level.
* Flush given pseudoconstant so it can be reread from db
* next time it's requested.
*
- * @static
*
* @param bool|string $name pseudoconstant to be flushed
*/
public static function flush($name = 'cache') {
if (isset(self::$$name)) {
self::$$name = NULL;
- }
+ }
}
+
}