/php/rights_tool.class.php
https://bitbucket.org/chamilo/chamilo-app-weblcms-rights/ · PHP · 55 lines · 20 code · 8 blank · 27 comment · 0 complexity · 44a8fb3d1a5d208a014b1e3e7cb06909 MD5 · raw file
- <?php
- namespace application\weblcms\tool\rights;
-
- use application\weblcms\Tool;
-
- /**
- * $Id: rights_tool.class.php 216 2009-11-13 14:08:06Z kariboe $
- * @package application.lib.weblcms.tool.rights
- */
-
- /**
- * This tool allows a user to manage rights in his or her course.
- */
- class RightsTool extends Tool
- {
-
- const DEFAULT_ACTION = self :: ACTION_EDIT_RIGHTS;
-
- function get_application_component_path()
- {
- return dirname(__FILE__) . '/component/';
- }
-
- /**
- * Helper function for the SubManager class,
- * pending access to class constants via variables in PHP 5.3
- * e.g. $name = $class :: DEFAULT_ACTION
- *
- * DO NOT USE IN THIS SUBMANAGER'S CONTEXT
- * Instead use:
- * - self :: DEFAULT_ACTION in the context of this class
- * - YourSubManager :: DEFAULT_ACTION in all other application classes
- */
- static function get_default_action()
- {
- return self :: DEFAULT_ACTION;
- }
-
- /**
- * Helper function for the SubManager class,
- * pending access to class constants via variables in PHP 5.3
- * e.g. $name = $class :: PARAM_ACTION
- *
- * DO NOT USE IN THIS SUBMANAGER'S CONTEXT
- * Instead use:
- * - self :: PARAM_ACTION in the context of this class
- * - YourSubManager :: PARAM_ACTION in all other application classes
- */
- static function get_action_parameter()
- {
- return self :: PARAM_ACTION;
- }
-
- }
- ?>