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