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
|
||||
* 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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
// ************************************************** //
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -114,7 +116,7 @@ abstract class portfolio_plugin_base {
|
|||
|
||||
/**
|
||||
* override this if you are supporting the 'file' type (or a subformat)
|
||||
* but have restrictions on mimetypes
|
||||
* but have restrictions on mimetypes
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue