/** * Show article's history * Show all versions of an article * Versions are displayed in reverse chronological order * * @param integer $id_area Area ID * @param string $lang Language code * @param string $bid, unique ID for articles * @return void */ public function history($id_area, $lang, $bid) { // load dictionaries $this->dict->get_wordarray(array('history', 'articles')); // get the page $page = $this->get_page('articles/history'); $view = new X4View_core('container'); // left $view->content = new X4View_core('articles/history'); $view->content->page = $page; $view->content->bid = $bid; $view->content->navbar = array($this->site->get_bredcrumb($page), array('articles' => $_SESSION['referer'])); // left $mod = new Article_model(); $view->content->art = $mod->get_by_bid($bid); $view->content->history = $mod->get_history($id_area, $bid); $view->render(TRUE); }