From ff0760e5076285bfb4c13d874445cb001baab340 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Tue, 24 Sep 2013 11:21:09 +0200 Subject: [PATCH] MainDetail: Fix doc strings refs #4611 --- application/views/helpers/MainDetail.php | 22 ++++++++++++++++++- .../controllers/ListController.php | 2 ++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/application/views/helpers/MainDetail.php b/application/views/helpers/MainDetail.php index d601e7d6e..bba30ad7a 100644 --- a/application/views/helpers/MainDetail.php +++ b/application/views/helpers/MainDetail.php @@ -28,9 +28,16 @@ */ // {{{ICINGA_LICENSE_HEADER}}} - +/** + * Helper to render main and detail contents into a container + */ class Zend_View_Helper_MainDetail extends Zend_View_Helper_Abstract { + /** + * HTML template + * + * @var string + */ private static $tpl = <<<'EOT'
{{MAIN_CONTENT}} @@ -41,6 +48,11 @@ class Zend_View_Helper_MainDetail extends Zend_View_Helper_Abstract
EOT; + /** + * Css class map when detail pane is expanded + * + * @var array + */ private static $expanded = array( 'xs' => 12, 'sm' => 12, @@ -48,6 +60,14 @@ EOT; 'lg' => 5 ); + /** + * Content render function + * + * @param string $mainContent HTML for main + * @param string $detailContent HTML for detail + * + * @return string HTML all together + */ public function mainDetail($mainContent, $detailContent = '') { $detailCls = 'hidden'; diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index ae8fde741..ed7ac8f65 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -48,6 +48,8 @@ class Monitoring_ListController extends ActionController */ protected $backend; /** + * Compact layout name + * * Set to a string containing the compact layout name to use when * 'compact' is set as the layout parameter, otherwise null *