/php/component/rights_editor.class.php

https://bitbucket.org/chamilo/chamilo-app-weblcms-rights/ · PHP · 34 lines · 25 code · 6 blank · 3 comment · 0 complexity · df547bd4313e9b4b8f5874bdc362680d MD5 · raw file

  1. <?php
  2. namespace application\weblcms\tool\rights;
  3. use application\weblcms\WeblcmsRights;
  4. use application\weblcms\Tool;
  5. use common\libraries\Breadcrumb;
  6. use common\libraries\BreadcrumbTrail;
  7. use application\weblcms\ToolComponent;
  8. use common\libraries\DelegateComponent;
  9. use common\libraries\Translation;
  10. class RightsToolRightsEditorComponent extends RightsTool implements DelegateComponent
  11. {
  12. function run()
  13. {
  14. ToolComponent :: factory(ToolComponent :: RIGHTS_EDITOR_COMPONENT, $this)->run();
  15. //ToolComponent :: launch($this,RightsTool);
  16. //the launch method results in the default action of the toolcomponent, not the default action of the rights tool!
  17. //this needs to be looked at
  18. }
  19. function get_available_rights($location)
  20. {
  21. return WeblcmsRights :: get_available_rights($location);
  22. }
  23. function get_additional_parameters()
  24. {
  25. array(Tool :: PARAM_PUBLICATION_ID);
  26. }
  27. }
  28. ?>