mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-21249 improved php docs and adding direct access prevention in portfolio
This commit is contained in:
parent
7ad5a62727
commit
0972665f65
8 changed files with 25 additions and 9 deletions
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -28,6 +28,8 @@
|
||||||
* See http://docs.moodle.org/en/Development:Adding_a_Portfolio_Button_to_a_page
|
* See http://docs.moodle.org/en/Development:Adding_a_Portfolio_Button_to_a_page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* base class for callers
|
* base class for callers
|
||||||
*
|
*
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -26,6 +26,8 @@
|
||||||
* This file contains all the defined constants to do with portfolios.
|
* This file contains all the defined constants to do with portfolios.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
// ************************************************** //
|
// ************************************************** //
|
||||||
// EXPORT STAGE CONSTANTS
|
// EXPORT STAGE CONSTANTS
|
||||||
// ************************************************** //
|
// ************************************************** //
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -26,6 +26,8 @@
|
||||||
* This file contains all the portfolio exception classes.
|
* This file contains all the portfolio exception classes.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* top level portfolio exception.
|
* top level portfolio exception.
|
||||||
* sometimes caught and rethrown as {@see portfolio_export_exception}
|
* sometimes caught and rethrown as {@see portfolio_export_exception}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -26,6 +26,8 @@
|
||||||
* This file contains the class definition for the exporter object.
|
* This file contains the class definition for the exporter object.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The class that handles the various stages of the actual export
|
* The class that handles the various stages of the actual export
|
||||||
* and the communication between the caller and the portfolio plugin.
|
* and the communication between the caller and the portfolio plugin.
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -28,6 +28,8 @@
|
||||||
* Because it provides an easy way to do subtyping using php inheritance.
|
* Because it provides an easy way to do subtyping using php inheritance.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* base class to inherit from
|
* base class to inherit from
|
||||||
* do not use this anywhere in supported_formats
|
* do not use this anywhere in supported_formats
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@liip.ch>
|
* @author Penny Leach <penny@liip.ch>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -26,6 +26,8 @@
|
||||||
* This file contains the LEAP2a writer used by portfolio_format_leap2a
|
* This file contains the LEAP2a writer used by portfolio_format_leap2a
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* object to encapsulate the writing of leap2a.
|
* object to encapsulate the writing of leap2a.
|
||||||
* should be used like:
|
* should be used like:
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -26,6 +26,8 @@
|
||||||
* This file contains all the form definitions used by the portfolio code.
|
* This file contains all the form definitions used by the portfolio code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
// make sure we include moodleform first!
|
// make sure we include moodleform first!
|
||||||
require_once ($CFG->libdir.'/formslib.php');
|
require_once ($CFG->libdir.'/formslib.php');
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* @package moodle
|
* @package core
|
||||||
* @subpackage portfolio
|
* @subpackage portfolio
|
||||||
* @author Penny Leach <penny@catalyst.net.nz>
|
* @author Penny Leach <penny@catalyst.net.nz>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||||
|
@ -29,6 +29,8 @@
|
||||||
* See http://docs.moodle.org/en/Development:Writing_a_Portfolio_Plugin
|
* See http://docs.moodle.org/en/Development:Writing_a_Portfolio_Plugin
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the base class for portfolio plugins
|
* the base class for portfolio plugins
|
||||||
* all plugins must subclass this
|
* all plugins must subclass this
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue