Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/issuetemplate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DetailManager.php')
-rw-r--r--lib/DetailManager.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/DetailManager.php b/lib/DetailManager.php
index 874dad4..6baf90d 100644
--- a/lib/DetailManager.php
+++ b/lib/DetailManager.php
@@ -55,6 +55,9 @@ class DetailManager {
* @param int $type
*/
public function createDetail($sectionIdentifier, $title, $information, $type = IDetail::TYPE_MULTI_LINE_PREFORMAT) {
+ if (!is_string($information)) {
+ $information = print_r($information, true);
+ }
$detail = new Detail($sectionIdentifier, $title, $information, $type);
/** @var ISection $sectionObject */
$sectionObject = $this->sections[$sectionIdentifier];
@@ -68,6 +71,13 @@ class DetailManager {
return $this->sections;
}
+ /**
+ * @return ISection
+ */
+ public function getSection($identifier) {
+ return $this->sections[$identifier];
+ }
+
public function getRenderedDetails() {
$result = '';
/** @var ISection $section */