'core_notes_get_course_notes' => array(
'classname' => 'core_notes_external',
'methodname' => 'get_course_notes',
+ 'classpath' => 'notes/externallib.php',
'description' => 'Returns all notes in specified course (or site) for the specified user.',
'type' => 'read',
'capabilities' => 'moodle/notes:view',
*/
require_once("$CFG->libdir/externallib.php");
+require_once($CFG->dirroot . "/notes/lib.php");
/**
* Notes external functions
*/
public static function create_notes($notes = array()) {
global $CFG, $DB;
- require_once($CFG->dirroot . "/notes/lib.php");
$params = self::validate_parameters(self::create_notes_parameters(), array('notes' => $notes));
*/
public static function delete_notes($notes = array()) {
global $CFG;
- require_once($CFG->dirroot . "/notes/lib.php");
$params = self::validate_parameters(self::delete_notes_parameters(), array('notes' => $notes));
*/
public static function get_notes($notes) {
global $CFG;
- require_once($CFG->dirroot . "/notes/lib.php");
$params = self::validate_parameters(self::get_notes_parameters(), array('notes' => $notes));
// Check if note system is enabled.
*/
public static function update_notes($notes = array()) {
global $CFG, $DB;
- require_once($CFG->dirroot . "/notes/lib.php");
$params = self::validate_parameters(self::update_notes_parameters(), array('notes' => $notes));
defined('MOODLE_INTERNAL') || die();
-$version = 2015040100.00; // YYYYMMDD = weekly release date of this DEV branch.
+$version = 2015040100.02; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.