PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1<?php
 2namespace application\weblcms\tool\rights;
 3
 4use application\weblcms\Tool;
 5
 6/**
 7 * $Id: rights_tool.class.php 216 2009-11-13 14:08:06Z kariboe $
 8 * @package application.lib.weblcms.tool.rights
 9 */
10
11/**
12 * This tool allows a user to manage rights in his or her course.
13 */
14class RightsTool extends Tool
15{
16
17    const DEFAULT_ACTION = self :: ACTION_EDIT_RIGHTS;
18
19    function get_application_component_path()
20    {
21        return dirname(__FILE__) . '/component/';
22    }
23
24    /**
25     * Helper function for the SubManager class,
26     * pending access to class constants via variables in PHP 5.3
27     * e.g. $name = $class :: DEFAULT_ACTION
28     *
29     * DO NOT USE IN THIS SUBMANAGER'S CONTEXT
30     * Instead use:
31     * - self :: DEFAULT_ACTION in the context of this class
32     * - YourSubManager :: DEFAULT_ACTION in all other application classes
33     */
34    static function get_default_action()
35    {
36        return self :: DEFAULT_ACTION;
37    }
38
39    /**
40     * Helper function for the SubManager class,
41     * pending access to class constants via variables in PHP 5.3
42     * e.g. $name = $class :: PARAM_ACTION
43     *
44     * DO NOT USE IN THIS SUBMANAGER'S CONTEXT
45     * Instead use:
46     * - self :: PARAM_ACTION in the context of this class
47     * - YourSubManager :: PARAM_ACTION in all other application classes
48     */
49    static function get_action_parameter()
50    {
51        return self :: PARAM_ACTION;
52    }
53
54}
55?>