function getTimeline($iStart, $iPerPage, $sFilter, $sTimeline, $aModules) { $aEvent = $this->_oDb->getEvents(array('browse' => 'last', 'owner_id' => $this->_oModule->_iOwnerId, 'filter' => $sFilter, 'modules' => $aModules)); if (empty($aEvents) || !is_array($aEvents)) { return ""; } $iMaxDuration = (int) $aEvent['ago_days'] + 1; if (empty($sTimeline)) { $sTimeline = '0' . BX_WALL_DIVIDER_TIMELINE . $iMaxDuration; } $aInput = array('type' => 'doublerange', 'name' => 'timeline', 'value' => $sTimeline, 'attrs' => array('min' => 0, 'max' => $iMaxDuration, 'onchange' => $this->_oConfig->getJsObject('view') . ".changeTimeline(e)")); bx_import('BxTemplFormView'); $oForm = new BxTemplFormView(array()); $sContent = $oForm->genInput($aInput); $sContent = $oForm->genWrapperInput($aInput, $sContent); return $this->parseHtmlByName('timeline.html', array('content' => $sContent)); }