CRM_Case_XMLRepository
class CRM_Case_XMLRepository
Properties
protected array |
$xml | ||
protected array|null | $hookCache | ||
protected array|null | $allCaseTypes | Symbolic names of case-types. |
Methods
static CRM_Case_XMLRepository
singleton(bool $fresh = FALSE)
No description
flush()
No description
__construct(array $allCaseTypes = NULL, array $xml = [])
Class constructor.
FALSE|SimpleXMLElement
retrieve(string $caseType)
Retrieve case.
SimpleXMLElement|FALSE
retrieveFile(string $caseType)
Retrieve file.
null|string
findXmlFile(string $caseType)
Find xml file.
array
getCaseTypesViaHook()
No description
array
getAllCaseTypes()
No description
array
getAllDeclaredActivityTypes()
No description
array
getAllDeclaredRelationshipTypes()
Relationships are straight from XML, described from perspective of non-client
int
getActivityReferenceCount(string $activityType)
Determine the number of times a particular activity-type is referenced in CiviCase XML.
int
getRelationshipReferenceCount(string $relationshipTypeName)
Determine the number of times a particular activity-type is referenced in CiviCase XML.
Details
at line 61
static CRM_Case_XMLRepository
singleton(bool $fresh = FALSE)
at line 68
flush()
at line 81
__construct(array $allCaseTypes = NULL, array $xml = [])
Class constructor.
at line 94
FALSE|SimpleXMLElement
retrieve(string $caseType)
Retrieve case.
at line 130
SimpleXMLElement|FALSE
retrieveFile(string $caseType)
Retrieve file.
at line 165
null|string
findXmlFile(string $caseType)
Find xml file.
at line 225
array
getCaseTypesViaHook()
at line 236
array
getAllCaseTypes()
at line 246
array
getAllDeclaredActivityTypes()
at line 265
array
getAllDeclaredRelationshipTypes()
Relationships are straight from XML, described from perspective of non-client
at line 287
int
getActivityReferenceCount(string $activityType)
Determine the number of times a particular activity-type is referenced in CiviCase XML.
at line 307
int
getRelationshipReferenceCount(string $relationshipTypeName)
Determine the number of times a particular activity-type is referenced in CiviCase XML.