<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
* The XMLRepository is responsible for loading XML for case-types.
}
/**
- * @param array<String,SimpleXMLElement> $xml
+ * @param array <String,SimpleXMLElement> $xml
*/
public function __construct($allCaseTypes = NULL, $xml = array()) {
$this->allCaseTypes = $allCaseTypes;
$fileXml = $this->retrieveFile($caseType);
if ($fileXml) {
$this->xml[$caseType] = $fileXml;
- } else {
+ }
+ else {
return FALSE;
}
}
/**
* @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)) {
* 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) {
* 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) {