/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
  2. namespace application\weblcms\tool\link;
  3. use application\weblcms\Tool;
  4. use common\libraries\Breadcrumb;
  5. use common\libraries\BreadcrumbTrail;
  6. use common\libraries\Request;
  7. use application\weblcms\ToolComponent;
  8. use common\libraries\Translation;
  9. class LinkToolUpdaterComponent extends LinkTool
  10. {
  11. function run()
  12. {
  13. ToolComponent :: launch($this);
  14. }
  15. function add_additional_breadcrumbs(BreadcrumbTrail $breadcrumbtrail)
  16. {
  17. $breadcrumbtrail->add(new Breadcrumb($this->get_url(array(Tool :: PARAM_ACTION => Tool :: ACTION_BROWSE)), Translation :: get('LinkToolBrowserComponent')));
  18. $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')));
  19. }
  20. function get_additional_parameters()
  21. {
  22. return array(Tool :: PARAM_PUBLICATION_ID);
  23. }
  24. }
  25. ?>