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 67
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 87
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 111
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 132
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 155
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 169
static
flushAll()
Flush all caches related to pseudo-constants.
This may be inefficient and should generally be avoided.