/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
- <?php
- namespace application\weblcms\tool\link;
-
- use application\weblcms\Tool;
- use common\libraries\Breadcrumb;
- use common\libraries\BreadcrumbTrail;
- use common\libraries\Request;
- use application\weblcms\ToolComponent;
- use common\libraries\Translation;
-
- class LinkToolUpdaterComponent extends LinkTool
- {
-
- function run()
- {
- ToolComponent :: launch($this);
- }
-
- function add_additional_breadcrumbs(BreadcrumbTrail $breadcrumbtrail)
- {
- $breadcrumbtrail->add(new Breadcrumb($this->get_url(array(Tool :: PARAM_ACTION => Tool :: ACTION_BROWSE)), Translation :: get('LinkToolBrowserComponent')));
- $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')));
-
- }
-
- function get_additional_parameters()
- {
- return array(Tool :: PARAM_PUBLICATION_ID);
- }
-
- }
-
- ?>