mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-19235, add boilerplates to repository module files"
This commit is contained in:
parent
b73d1651fe
commit
10d53fd349
38 changed files with 634 additions and 43 deletions
|
@ -1,8 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_alfresco class
|
* repository_alfresco class
|
||||||
*
|
*
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class repository_alfresco extends repository {
|
class repository_alfresco extends repository {
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 20090080101;
|
$plugin->version = 20090080101;
|
||||||
|
|
|
@ -1,12 +1,32 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
require_once($CFG->libdir.'/boxlib.php');
|
require_once($CFG->libdir.'/boxlib.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_boxnet class
|
* repository_boxnet class
|
||||||
* This is a subclass of repository class
|
* This is a subclass of repository class
|
||||||
*
|
*
|
||||||
* @author Dongsheng Cai
|
* @since 2.0
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
class repository_boxnet extends repository {
|
class repository_boxnet extends repository {
|
||||||
private $box;
|
private $box;
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080104;
|
$plugin->version = 2009080104;
|
||||||
|
|
|
@ -1,13 +1,32 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_filesystem class
|
* repository_filesystem class
|
||||||
* Create a repository from your local filesystem
|
* Create a repository from your local filesystem
|
||||||
* *NOTE* for security issue, we use a fixed repository path
|
* *NOTE* for security issue, we use a fixed repository path
|
||||||
* which is %moodledata%/repository
|
* which is %moodledata%/repository
|
||||||
*
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
* @author Dongsheng Cai <dongsheng@moodle.com>
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
class repository_filesystem extends repository {
|
class repository_filesystem extends repository {
|
||||||
public function __construct($repositoryid, $context = SITEID, $options = array()) {
|
public function __construct($repositoryid, $context = SITEID, $options = array()) {
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,10 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_flickr class
|
* repository_flickr class
|
||||||
* This plugin is used to access user's private flickr repository
|
* This plugin is used to access user's private flickr repository
|
||||||
*
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
* @author Dongsheng Cai <dongsheng@moodle.com>
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once($CFG->libdir.'/flickrlib.php');
|
require_once($CFG->libdir.'/flickrlib.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,4 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* moodle_image class
|
||||||
|
*
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||||
|
*/
|
||||||
class moodle_image {
|
class moodle_image {
|
||||||
private $imagepath;
|
private $imagepath;
|
||||||
private $info;
|
private $info;
|
||||||
|
|
|
@ -1,12 +1,32 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_flickr_public class
|
* repository_flickr_public class
|
||||||
* This one is used to create public repository
|
* This one is used to create public repository
|
||||||
* You can set up a public account in admin page, so everyone can
|
* You can set up a public account in admin page, so everyone can
|
||||||
* access photos in this public account
|
* access photos in this public account
|
||||||
*
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
* @author Dongsheng Cai <dongsheng@moodle.com>
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once($CFG->libdir.'/flickrlib.php');
|
require_once($CFG->libdir.'/flickrlib.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,9 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Google Docs Plugin
|
* Google Docs Plugin
|
||||||
*
|
*
|
||||||
* @author Dan Poltawski <talktodan@gmail.com>
|
* @since 2.0
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dan Poltawski <talktodan@gmail.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once($CFG->libdir.'/googleapi.php');
|
require_once($CFG->libdir.'/googleapi.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @package moodlecore
|
* @package moodlecore
|
||||||
* @subpackage repository
|
* @subpackage repository
|
||||||
* @copyright 2009 Dongsheng Cai <dongsheng@moodle.com>
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,35 +1,33 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Moodle - Modular Object-Oriented Dynamic Learning Environment
|
|
||||||
* http://moodle.com
|
|
||||||
*
|
|
||||||
* LICENSE
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details:
|
|
||||||
*
|
|
||||||
* http://www.gnu.org/copyleft/gpl.html
|
|
||||||
*
|
|
||||||
* @category Moodle
|
|
||||||
* @package repository
|
|
||||||
* @copyright Copyright (c) 1999 onwards Martin Dougiamas http://dougiamas.com
|
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL License
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once($CFG->dirroot.'/repository/lib.php');
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_mahara class
|
* repository_mahara class
|
||||||
* This plugin allowed to connect a retrieve a file from Mahara site
|
* This plugin allowed to connect a retrieve a file from Mahara site
|
||||||
* This is a subclass of repository class
|
* This is a subclass of repository class
|
||||||
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Jerome Mouneyrac <mouneyrac@moodle.org>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
require_once($CFG->dirroot.'/repository/lib.php');
|
||||||
|
|
||||||
class repository_mahara extends repository {
|
class repository_mahara extends repository {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -18,8 +18,12 @@
|
||||||
/**
|
/**
|
||||||
* repository_merlot is used to search merlot.org in moodle
|
* repository_merlot is used to search merlot.org in moodle
|
||||||
*
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
* @author Dongsheng Cai <dongsheng@moodle.com>
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
class repository_merlot extends repository {
|
class repository_merlot extends repository {
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009111300;
|
$plugin->version = 2009111300;
|
||||||
|
|
|
@ -1,9 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Picasa Repository Plugin
|
* Picasa Repository Plugin
|
||||||
*
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dan Poltawski
|
||||||
* @author Dan Poltawski <talktodan@gmail.com>
|
* @author Dan Poltawski <talktodan@gmail.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once($CFG->libdir.'/googleapi.php');
|
require_once($CFG->libdir.'/googleapi.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,10 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_remotemoodle class
|
* repository_remotemoodle class
|
||||||
* This plugin allowed to connect a retrieve a file from another Moodle site
|
* This plugin allowed to connect a retrieve a file from another Moodle site
|
||||||
* This is a subclass of repository class
|
* This is a subclass of repository class
|
||||||
* @author Jerome Mouneyrac
|
*
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Jerome Mouneyrac
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once($CFG->dirroot.'/repository/lib.php');
|
require_once($CFG->dirroot.'/repository/lib.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (c) 2008, Donovan Schönknecht. All rights reserved.
|
* Copyright (c) 2008, Donovan Schönknecht. All rights reserved.
|
||||||
*
|
*
|
||||||
|
|
|
@ -22,7 +22,8 @@
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
* @package moodlecore
|
* @package moodlecore
|
||||||
* @subpackage repository
|
* @subpackage repository
|
||||||
* @copyright 2009 Dongsheng Cai <dongsheng@moodle.com>
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,9 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_upload class
|
* repository_upload class
|
||||||
* A subclass of repository, which is used to upload file
|
* A subclass of repository, which is used to upload file
|
||||||
*
|
*
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class repository_upload extends repository {
|
class repository_upload extends repository {
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (c) 2008, David R. Nadeau, NadeauSoftware.com.
|
* Copyright (c) 2008, David R. Nadeau, NadeauSoftware.com.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
|
|
@ -1,9 +1,30 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_url class
|
* repository_url class
|
||||||
* A subclass of repository, which is used to download a file from a specific url
|
* A subclass of repository, which is used to download a file from a specific url
|
||||||
*
|
*
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(dirname(__FILE__).'/lib.php');
|
require_once(dirname(__FILE__).'/lib.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,9 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_webdav class
|
* repository_webdav class
|
||||||
*
|
*
|
||||||
* @author Dongsheng Cai
|
* @since 2.0
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once($CFG->libdir.'/webdavlib.php');
|
require_once($CFG->libdir.'/webdavlib.php');
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,6 +1,34 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
require_once('wikimedia.php');
|
require_once('wikimedia.php');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* repository_wikimedia class
|
||||||
|
* This is a class used to browse images from wikimedia
|
||||||
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
|
*/
|
||||||
|
|
||||||
class repository_wikimedia extends repository {
|
class repository_wikimedia extends repository {
|
||||||
public function __construct($repositoryid, $context = SITEID, $options = array()) {
|
public function __construct($repositoryid, $context = SITEID, $options = array()) {
|
||||||
parent::__construct($repositoryid, $context, $options);
|
parent::__construct($repositoryid, $context, $options);
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
|
@ -1,5 +1,27 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wikimedia class
|
||||||
|
* A class used to browse images from wikimedia
|
||||||
|
*
|
||||||
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||||
|
*/
|
||||||
class wikimedia {
|
class wikimedia {
|
||||||
private $_conn = null;
|
private $_conn = null;
|
||||||
private $_param = array();
|
private $_param = array();
|
||||||
|
|
|
@ -1,9 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* repository_youtube class
|
* repository_youtube class
|
||||||
*
|
*
|
||||||
|
* @since 2.0
|
||||||
|
* @package moodlecore
|
||||||
|
* @subpackage repository
|
||||||
|
* @copyright 2009 Dongsheng Cai
|
||||||
* @author Dongsheng Cai <dongsheng@moodle.com>
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class repository_youtube extends repository {
|
class repository_youtube extends repository {
|
||||||
|
|
|
@ -1,2 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// This file is part of Moodle - http://moodle.org/
|
||||||
|
//
|
||||||
|
// Moodle is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// Moodle is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
$plugin->version = 2009080101;
|
$plugin->version = 2009080101;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue