<?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. |
| |
'CRM_Event_PseudoConstant',
'CRM_Contribute_PseudoConstant',
'CRM_Member_PseudoConstant',
- 'CRM_Grant_PseudoConstant',
);
/**
* @access public
* @static
*
+ * @param $constant
+ *
* @return array - array reference of all relevant constant
*/
public static function getConstant($constant) {
* @access public
* @static
*
+ * @param $constant
+ *
* @return array - array reference of all relevant constant
*/
public static function flushConstant($constant) {
* If there's a full, preloaded map, use it. Otherwise, use search
* class space.
*
- * @param string $name constant-name
+ * @param $constant
+ *
+ * @internal param string $name constant-name
* @return string|NULL class-name
*/
public static function findConstantClass($constant) {
*
* This may be inefficient and should generally be avoided.
*
+ * @param $class
+ *
* @return array of string, constant names
*/
public static function findConstantsByClass($class) {
foreach (self::findConstants() as $constant) {
self::flushConstant($constant);
}
+ CRM_Core_PseudoConstant::flush();
}
}