<?php
/**
 * This file is part of the {@link http://ontowiki.net OntoWiki} project.
 *
 * @copyright Copyright (c) 2011-2016, {@link http://aksw.org AKSW}
 * @license   http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
 */

/**
 * Helper class for the History component.
 *
 * - register the tab for all navigations except the instances list
 *   (this should be undone if the history can be created from a Query2 too)
 *
 * @category OntoWiki
 * @package Extensions_History
 * @copyright Copyright (c) 2012, {@link http://aksw.org AKSW}
 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
 */
class HistoryHelper extends OntoWiki_Component_Helper
{
    public function init()
    {
        OntoWiki::getInstance()->getNavigation()->register(
            'history',
            array(
                'controller' => 'history',     // history controller
                'action'     => 'list',        // list action
                'name'       => 'History',
                'priority'   => 30
            )
        );
    }
}

