diff --git a/modules/monitoring/application/controllers/TimelineController.php b/modules/monitoring/application/controllers/TimelineController.php index 8052a8d24..49d07c7ef 100644 --- a/modules/monitoring/application/controllers/TimelineController.php +++ b/modules/monitoring/application/controllers/TimelineController.php @@ -45,12 +45,8 @@ class Monitoring_TimelineController extends ActionController { $this->setupIntervalBox(); $timeline = new TimeLine(); - $timeline->setName('Timeline'); - $timeline->setRequest($this->_request); $timeline->setConfiguration(Config::app()); - $timeline->buildForm(); // Necessary in order to populate request parameters - $timeline->populate($this->_request->getParams()); - $timeline->setAttrib('data-icinga-component', 'monitoring/timelineComponent'); + //$timeline->setAttrib('data-icinga-component', 'monitoring/timelineComponent'); list($displayRange, $forecastRange) = $this->buildTimeRanges($this->getTimelineInterval()); $timeline->setTimeRange($displayRange); $timeline->setDisplayData($this->loadData($displayRange)); @@ -62,7 +58,6 @@ class Monitoring_TimelineController extends ActionController { $this->setupIntervalBox(); $timeline = new TimeLine(); - $timeline->setRequest($this->_request); $timeline->setConfiguration(Config::app()); list($displayRange, $forecastRange) = $this->buildTimeRanges($this->getTimelineInterval()); $timeline->setTimeRange($displayRange); diff --git a/modules/monitoring/application/views/scripts/timeline/show.phtml b/modules/monitoring/application/views/scripts/timeline/show.phtml index 4bab9e26d..3249b5638 100644 --- a/modules/monitoring/application/views/scripts/timeline/show.phtml +++ b/modules/monitoring/application/views/scripts/timeline/show.phtml @@ -5,4 +5,4 @@ -= $this->timeline; ?> += $this->timeline->buildTimeline(); ?> diff --git a/modules/monitoring/library/Monitoring/Timeline/TimeLine.php b/modules/monitoring/library/Monitoring/Timeline/TimeLine.php index 56ace53fb..6b77d5bf9 100644 --- a/modules/monitoring/library/Monitoring/Timeline/TimeLine.php +++ b/modules/monitoring/library/Monitoring/Timeline/TimeLine.php @@ -29,17 +29,11 @@ namespace Icinga\Module\Monitoring\Timeline; use \Zend_Config; -use \DateInterval; -use \Zend_View_Interface; -use Icinga\Web\Form; -use Icinga\Web\Form\Element\Note; /** * Represents a set of events in a specific time range - * - * @see Form */ -class TimeLine extends Form +class TimeLine { /** * The range of time represented by this timeline @@ -130,53 +124,6 @@ class TimeLine extends Form } } - /** - * Disable the CSRF token - */ - public function init() - { - $this->setTokenDisabled(); - } - - /** - * Render the form and timeline to HTML - * - * @param Zend_View_Interface $view - * @return string - */ - public function render(Zend_View_Interface $view = null) - { - $this->buildForm(); - $this->postCreate(); - return parent::render($view); - } - - /** - * Add timeline elements - */ - private function postCreate() - { - $timeline = new Note( - 'timeline', - array( - 'value' => '