forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-21249 improved php docs and adding direct access prevention in po…
…rtfolio
- Loading branch information
Showing
8 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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 | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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 | ||
// ************************************************** // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
* @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 @@ public function supported_formats() { | |
|
||
/** | ||
* override this if you are supporting the 'file' type (or a subformat) | ||
* but have restrictions on mimetypes | ||
* but have restrictions on mimetypes | ||
* | ||
* @return boolean | ||
*/ | ||
|