MDL-21249 improved php docs and adding direct access prevention in portfolio

This commit is contained in:
Petr Skoda 2010-07-25 14:02:59 +00:00
parent 7ad5a62727
commit 0972665f65
8 changed files with 25 additions and 9 deletions

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @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
*/
defined('MOODLE_INTERNAL') || die();
/**
* base class for callers
*

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @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.
*/
defined('MOODLE_INTERNAL') || die();
// ************************************************** //
// EXPORT STAGE CONSTANTS
// ************************************************** //

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@ -26,6 +26,8 @@
* This file contains all the portfolio exception classes.
*/
defined('MOODLE_INTERNAL') || die();
/**
* top level portfolio exception.
* sometimes caught and rethrown as {@see portfolio_export_exception}

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
@ -26,6 +26,8 @@
* 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
* and the communication between the caller and the portfolio plugin.

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @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.
*/
defined('MOODLE_INTERNAL') || die();
/**
* base class to inherit from
* do not use this anywhere in supported_formats

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@liip.ch>
* @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
*/
defined('MOODLE_INTERNAL') || die();
/**
* object to encapsulate the writing of leap2a.
* should be used like:

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @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.
*/
defined('MOODLE_INTERNAL') || die();
// make sure we include moodleform first!
require_once ($CFG->libdir.'/formslib.php');

View file

@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package moodle
* @package core
* @subpackage portfolio
* @author Penny Leach <penny@catalyst.net.nz>
* @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
*/
defined('MOODLE_INTERNAL') || die();
/**
* the base class for portfolio plugins
* all plugins must subclass this