<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
private static $engagementLevel;
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
* Get all the survey activity types
*
* @access public
*
+ * @param string $returnColumn
+ *
* @return array - array reference of all survey activity types.
* @static
*/
}
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
* Get all campaign types.
*
* The static array campaignType is returned
}
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
* Get all campaign status.
*
* The static array campaignStatus is returned
}
/**
+ * DEPRECATED. Please use the buildOptions() method in the appropriate BAO object.
* Get all Engagement Level.
*
* The static array Engagement Level is returned
/**
* Flush given pseudoconstant so it can be reread from db
- * nex time it's requested.
+ * next time it's requested.
*
* @access public
* @static
*
- * @param boolean $name pseudoconstant to be flushed
- *
+ * @param bool|string $name pseudoconstant to be flushed
*/
- public static function flush($name) {
- self::$$name = NULL;
+ public static function flush($name = 'cache') {
+ if (isset(self::$$name)) {
+ self::$$name = NULL;
+ }
}
}