CRM_Utils_PseudoConstant
class CRM_Utils_PseudoConstant
Utilities for manipulating/inspecting CRM_*_PseudoConstant classes.
Methods
Get constant.
Flush constant.
Determine where a constant lives.
Scan for a list of pseudo-constants. A pseudo-constant is recognized by listing any static properties which have corresponding static methods.
Scan for a list of pseudo-constants. A pseudo-constant is recognized by listing any static properties which have corresponding static methods.
Flush all caches related to pseudo-constants.
Details
at line 66
static array
getConstant(string $constant)
Get constant.
Wrapper for Pseudoconstant methods. We use this so the calling function doesn't need to know which class the Pseudoconstant is on (some are on the Contribute_Pseudoconstant Class etc
at line 86
static array
flushConstant($constant)
Flush constant.
Wrapper for Pseudoconstant methods. We use this so the calling function doesn't need to know which class the Pseudoconstant is on (some are on the Contribute_Pseudoconsant Class etc
at line 110
static string|NULL
findConstantClass(string $constant)
Determine where a constant lives.
If there's a full, preloaded map, use it. Otherwise, use search class space.
at line 131
static array
findConstants()
Scan for a list of pseudo-constants. A pseudo-constant is recognized by listing any static properties which have corresponding static methods.
This may be inefficient and should generally be avoided.
at line 154
static array
findConstantsByClass($class)
Scan for a list of pseudo-constants. A pseudo-constant is recognized by listing any static properties which have corresponding static methods.
This may be inefficient and should generally be avoided.
at line 168
static
flushAll()
Flush all caches related to pseudo-constants.
This may be inefficient and should generally be avoided.