PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/php/component/updater.class.php

https://bitbucket.org/chamilo/chamilo-app-weblcms-link/
PHP | 33 lines | 25 code | 8 blank | 0 comment | 0 complexity | 2856bef2ca81db5af9548815dfccbd43 MD5 | raw file
 1<?php
 2namespace application\weblcms\tool\link;
 3
 4use application\weblcms\Tool;
 5use common\libraries\Breadcrumb;
 6use common\libraries\BreadcrumbTrail;
 7use common\libraries\Request;
 8use application\weblcms\ToolComponent;
 9use common\libraries\Translation;
10
11class LinkToolUpdaterComponent extends LinkTool
12{
13
14    function run()
15    {
16        ToolComponent :: launch($this);
17    }
18
19    function add_additional_breadcrumbs(BreadcrumbTrail $breadcrumbtrail)
20    {
21        $breadcrumbtrail->add(new Breadcrumb($this->get_url(array(Tool :: PARAM_ACTION => Tool :: ACTION_BROWSE)), Translation :: get('LinkToolBrowserComponent')));
22        $breadcrumbtrail->add(new Breadcrumb($this->get_url(array(Tool :: PARAM_ACTION => Tool :: ACTION_VIEW, Tool :: PARAM_PUBLICATION_ID => Request :: get(Tool :: PARAM_PUBLICATION_ID))), Translation :: get('LinkToolViewerComponent')));
23
24    }
25
26    function get_additional_parameters()
27    {
28        return array(Tool :: PARAM_PUBLICATION_ID);
29    }
30
31}
32
33?>