class CRM_Case_XMLRepository

Properties

protected array $xml
protected array|NULL $hookCache
protected array|NULL $allCaseTypes

Methods

singleton(bool $fresh = FALSE)

No description

__construct(array $allCaseTypes = NULL, array $xml = array())

Class constructor.

retrieve(string $caseType)

Retrieve case.

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
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 59
static CRM_Case_XMLRepository singleton(bool $fresh = FALSE)

Parameters

bool $fresh

Return Value

CRM_Case_XMLRepository

at line 72
__construct(array $allCaseTypes = NULL, array $xml = array())

Class constructor.

Parameters

array $allCaseTypes
array $xml

at line 85
FALSE|SimpleXMLElement retrieve(string $caseType)

Retrieve case.

Parameters

string $caseType

Return Value

FALSE|SimpleXMLElement

Exceptions

CRM_Core_Exception

at line 121
SimpleXMLElement|FALSE retrieveFile(string $caseType)

Retrieve file.

Parameters

string $caseType

Return Value

SimpleXMLElement|FALSE

at line 156
null|string findXmlFile(string $caseType)

Find xml file.

Parameters

string $caseType

Return Value

null|string file path

at line 216
array getCaseTypesViaHook()

Return Value

array

See also

CRM_Utils_Hook::caseTypes

at line 227
array getAllCaseTypes()

Return Value

array symbolic names of case-types

at line 237
array getAllDeclaredActivityTypes()

Return Value

array symbolic-names of activity-types

at line 254
array getAllDeclaredRelationshipTypes()

Return Value

array symbolic-names of relationship-types

at line 276
int getActivityReferenceCount(string $activityType)

Determine the number of times a particular activity-type is referenced in CiviCase XML.

Parameters

string $activityType Symbolic-name of an activity type.

Return Value

int

at line 296
int getRelationshipReferenceCount(string $relationshipTypeName)

Determine the number of times a particular activity-type is referenced in CiviCase XML.

Parameters

string $relationshipTypeName Symbolic-name of a relationship-type.

Return Value

int