projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 4.5 into master
[civicrm-core.git]
/
CRM
/
Case
/
XMLRepository.php
diff --git
a/CRM/Case/XMLRepository.php
b/CRM/Case/XMLRepository.php
index ced38f96655828944fd7bd57091a82c55695ea3c..8ec73aabfef4655a6ecbf56a14db450aae77d3a3 100644
(file)
--- a/
CRM/Case/XMLRepository.php
+++ b/
CRM/Case/XMLRepository.php
@@
-98,7
+98,8
@@
class CRM_Case_XMLRepository {
$fileXml = $this->retrieveFile($caseType);
if ($fileXml) {
$this->xml[$caseType] = $fileXml;
$fileXml = $this->retrieveFile($caseType);
if ($fileXml) {
$this->xml[$caseType] = $fileXml;
- } else {
+ }
+ else {
return FALSE;
}
}
return FALSE;
}
}
@@
-139,7
+140,8
@@
class CRM_Case_XMLRepository {
* @param string $caseType
* @return null|string file path
*/
* @param string $caseType
* @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)) {
$fileName = NULL;
if (!$fileName || !file_exists($fileName)) {
@@
-254,10
+256,11
@@
class CRM_Case_XMLRepository {
* Determine the number of times a particular activity-type is
* referenced in CiviCase XML.
*
* 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
*/
* @return int
*/
- function getActivityReferenceCount($activityType) {
+
public
function getActivityReferenceCount($activityType) {
$p = new CRM_Case_XMLProcessor_Process();
$count = 0;
foreach ($this->getAllCaseTypes() as $caseTypeName) {
$p = new CRM_Case_XMLProcessor_Process();
$count = 0;
foreach ($this->getAllCaseTypes() as $caseTypeName) {
@@
-273,10
+276,11
@@
class CRM_Case_XMLRepository {
* Determine the number of times a particular activity-type is
* referenced in CiviCase XML.
*
* 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
*/
* @return int
*/
- function getRelationshipReferenceCount($relationshipTypeName) {
+
public
function getRelationshipReferenceCount($relationshipTypeName) {
$p = new CRM_Case_XMLProcessor_Process();
$count = 0;
foreach ($this->getAllCaseTypes() as $caseTypeName) {
$p = new CRM_Case_XMLProcessor_Process();
$count = 0;
foreach ($this->getAllCaseTypes() as $caseTypeName) {