X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FXMLRepository.php;h=324a8c069345516c5bcc47dd06e967fe7a629c98;hb=757fc7f21936ac57c7e33ab93aa4490407cf9c8b;hp=e3fec439be76c819d2ab89a7f13ac1b7457d5acc;hpb=3c68e4951796c8b9066c922b35b1e37add12dce1;p=civicrm-core.git diff --git a/CRM/Case/XMLRepository.php b/CRM/Case/XMLRepository.php index e3fec439be..324a8c0693 100644 --- a/CRM/Case/XMLRepository.php +++ b/CRM/Case/XMLRepository.php @@ -1,9 +1,9 @@ $xml + * @param array $xml */ public function __construct($allCaseTypes = NULL, $xml = array()) { $this->allCaseTypes = $allCaseTypes; @@ -98,7 +98,8 @@ class CRM_Case_XMLRepository { $fileXml = $this->retrieveFile($caseType); if ($fileXml) { $this->xml[$caseType] = $fileXml; - } else { + } + else { return FALSE; } } @@ -137,9 +138,11 @@ class CRM_Case_XMLRepository { /** * @param string $caseType - * @return null|string file path + * @return null|string + * file path */ - public function findXmlFile($caseType) { // first check custom templates directory + public function findXmlFile($caseType) { + // first check custom templates directory $fileName = NULL; if (!$fileName || !file_exists($fileName)) { @@ -254,10 +257,11 @@ class CRM_Case_XMLRepository { * Determine the number of times a particular activity-type is * referenced in CiviCase XML. * - * @param string $activityType symbolic-name of an activity type + * @param string $activityType + * Symbolic-name of an activity type. * @return int */ - function getActivityReferenceCount($activityType) { + public function getActivityReferenceCount($activityType) { $p = new CRM_Case_XMLProcessor_Process(); $count = 0; foreach ($this->getAllCaseTypes() as $caseTypeName) { @@ -273,10 +277,11 @@ class CRM_Case_XMLRepository { * Determine the number of times a particular activity-type is * referenced in CiviCase XML. * - * @param string $relationshipTypeName symbolic-name of a relationship-type + * @param string $relationshipTypeName + * Symbolic-name of a relationship-type. * @return int */ - function getRelationshipReferenceCount($relationshipTypeName) { + public function getRelationshipReferenceCount($relationshipTypeName) { $p = new CRM_Case_XMLProcessor_Process(); $count = 0; foreach ($this->getAllCaseTypes() as $caseTypeName) {