<?php
+/**
+ * Class CRM_Case_ManagedEntities
+ */
class CRM_Case_ManagedEntities {
/**
}
/**
- * Get a list of managed activity-types by searching CiviCase XML files
+ * Get a list of managed activity-types by searching CiviCase XML files.
+ *
+ * @param \CRM_Case_XMLRepository $xmlRepo
+ * @param \CRM_Core_ManagedEntities $me
*
* @return array
* @see CRM_Utils_Hook::managed
- * @throws CRM_Core_Exception
*/
public static function createManagedActivityTypes(CRM_Case_XMLRepository $xmlRepo, CRM_Core_ManagedEntities $me) {
$result = array();
'name' => $actType,
'description' => $actType,
'component_id' => 'CiviCase',
- )
+ ),
);
// We'll create managed-entity if this record doesn't exist yet
}
/**
- * Get a list of managed relationship-types by searching CiviCase XML files
+ * Get a list of managed relationship-types by searching CiviCase XML files.
+ *
+ * @param \CRM_Case_XMLRepository $xmlRepo
+ * @param \CRM_Core_ManagedEntities $me
*
* @return array
* @see CRM_Utils_Hook::managed
- * @throws CRM_Core_Exception
*/
public static function createManagedRelationshipTypes(CRM_Case_XMLRepository $xmlRepo, CRM_Core_ManagedEntities $me) {
$result = array();
'contact_type_b' => 'Individual',
'contact_sub_type_a' => NULL,
'contact_sub_type_b' => NULL,
- )
+ ),
);
// We'll create managed-entity if this record doesn't exist yet
return $result;
}
-}
\ No newline at end of file
+
+}