mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
forum MDL-21086 cleaned up boilderplates and php doc packages
This commit is contained in:
parent
496e3ccdd2
commit
8f685009b3
29 changed files with 721 additions and 136 deletions
|
@ -1,32 +1,51 @@
|
|||
<?php
|
||||
//
|
||||
// Capability definitions for the forum module.
|
||||
//
|
||||
// The capabilities are loaded into the database table when the module is
|
||||
// installed or updated. Whenever the capability definitions are updated,
|
||||
// the module version number should be bumped up.
|
||||
//
|
||||
// The system has four possible values for a capability:
|
||||
// CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
|
||||
//
|
||||
//
|
||||
// CAPABILITY NAMING CONVENTION
|
||||
//
|
||||
// It is important that capability names are unique. The naming convention
|
||||
// for capabilities that are specific to modules and blocks is as follows:
|
||||
// [mod/block]/<plugin_name>:<capabilityname>
|
||||
//
|
||||
// component_name should be the same as the directory name of the mod or block.
|
||||
//
|
||||
// Core moodle capabilities are defined thus:
|
||||
// moodle/<capabilityclass>:<capabilityname>
|
||||
//
|
||||
// Examples: mod/forum:viewpost
|
||||
// block/recent_activity:view
|
||||
// moodle/site:deleteuser
|
||||
//
|
||||
// The variable name for the capability definitions array is $capabilities
|
||||
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Capability definitions for the forum module.
|
||||
*
|
||||
* The capabilities are loaded into the database table when the module is
|
||||
* installed or updated. Whenever the capability definitions are updated,
|
||||
* the module version number should be bumped up.
|
||||
*
|
||||
* The system has four possible values for a capability:
|
||||
* CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
|
||||
*
|
||||
* CAPABILITY NAMING CONVENTION
|
||||
*
|
||||
* It is important that capability names are unique. The naming convention
|
||||
* for capabilities that are specific to modules and blocks is as follows:
|
||||
* [mod/block]/<plugin_name>:<capabilityname>
|
||||
*
|
||||
* component_name should be the same as the directory name of the mod or block.
|
||||
*
|
||||
* Core moodle capabilities are defined thus:
|
||||
* moodle/<capabilityclass>:<capabilityname>
|
||||
*
|
||||
* Examples: mod/forum:viewpost
|
||||
* block/recent_activity:view
|
||||
* moodle/site:deleteuser
|
||||
*
|
||||
* The variable name for the capability definitions array is $capabilities
|
||||
*
|
||||
* @package mod-forum
|
||||
* @copyright 2006 vyshane
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$capabilities = array(
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue