* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
+ * Version information
+ *
* @package tool
* @subpackage customlang
* @copyright 2010 David Mudrak <david@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @copyright 2011 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500;
$plugin->requires = 2011092100;
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500;
$plugin->requires = 2011092100;
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500;
$plugin->requires = 2011092100;
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+defined('MOODLE_INTERNAL') || die();
+
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
$plugin->component = 'tool_unittest'; // Full name of the plugin (used for diagnostics)
* @copyright 2010 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @copyright 2011 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
* @copyright 2003 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+
+defined('MOODLE_INTERNAL') || die();
$plugin->version = 2011092500; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2011092100; // Requires this Moodle version
<?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 = 2010072600;
+/**
+ * Version details
+ *
+ * @package auth
+ * @subpackage cas
+ * @author Martin Dougiamas
+ * @author Jerome GUTIERREZ
+ * @author Iñaky Arenaza
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_cas'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version details
+ *
+ * @package auth
+ * @subpackage db
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_db'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package auth
+ * @subpackage email
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die;
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_email'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version details
+ *
+ * @package auth
+ * @subpackage fc
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_fc'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version details
+ *
+ * @package auth
+ * @subpackage imap
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_imap'; // Full name of the plugin (used for diagnostics)
<?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 = 2010072600;
+/**
+ * Version details
+ *
+ * @package auth
+ * @subpackage ldap
+ * @author Martin Dougiamas
+ * @author Iñaky Arenaza
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_ldap'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011022700;
-$plugin->component = 'auth_manual';
\ No newline at end of file
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_manual'; // Full name of the plugin (used for diagnostics)
<?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 = 2010071300;
+/**
+ * Manual authentication plugin version information
+ *
+ * @package auth
+ * @subpackage mnet
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_mnet'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage nntp
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_nntp'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage nologin
+ * @copyright 2011 Petr Skoda (http://skodak.org)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_nologin'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage none
+ * @copyright 2011 Petr Skoda (http://skodak.org)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_none'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage pam
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_pam'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage pop3
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_pop3'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage radius
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_radius'; // Full name of the plugin (used for diagnostics)
<?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 = 2009112400;
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage shibboleth
+ * @author Martin Dougiamas
+ * @author Lukas Haemmerle
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_shibboleth'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version information
+ *
+ * @package auth
+ * @subpackage webservice
+ * @copyright 2011 Petr Skoda (http://skodak.org)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'auth_webservice'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage activity_modules
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_activity_modules'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage admin_bookmarks
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_admin_bookmarks'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2009071700;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage blog_menu
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_blog_menu'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2009070900;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage blog_recent
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_blog_recent'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage blog_tags
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_blog_tags'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage calendar_moth
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_calendar_month'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage calendar_upcoming
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_calendar_upcoming'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2009072000;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage comments
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_comments'; // Full name of the plugin (used for diagnostics)
//Create course content html
+ $blocks = get_plugin_list('block');
+ $activities = get_plugin_list('mod');
if (!empty($course->contents)) {
$activitieshtml = '';
$blockhtml = '';
if (!empty($blockhtml)) {
$blockhtml .= ' - ';
}
- $blockhtml .= get_string('pluginname', 'block_' . $content->modulename)
- . " (" . $content->contentcount . ")";
+ if (array_key_exists($content->modulename, $blocks)) {
+ $blockname = get_string('pluginname', 'block_' . $content->modulename);
+ } else {
+ $blockname = $content->modulename;
+ }
+ $blockhtml .= $blockname . " (" . $content->contentcount . ")";
} else {
if (!empty($activitieshtml)) {
$activitieshtml .= ' - ';
}
- $activitieshtml .= get_string('modulename', $content->modulename)
- . " (" . $content->contentcount . ")";
+ if (array_key_exists($content->modulename, $activities)) {
+ $activityname = get_string('modulename', $content->modulename);
+ } else {
+ $activityname = $content->modulename;
+ }
+ $activitieshtml .= $activityname . " (" . $content->contentcount . ")";
}
}
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010042701;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage community
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_community'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011110300;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
$plugin->component = 'block_completionstatus';
$plugin->dependencies = array('report_completion' => 2011110200);
\ No newline at end of file
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage course_list
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_course_list'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010021100;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage course_overview
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_course_overview'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage course_summary
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_course_summary'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010050200;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage feedback
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_feedback'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage glossary_random
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_glossary_random'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010071900;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage html
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_html'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage login
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_login'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage mentees
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_mentees'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage messages
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_messages'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
- * Network servers block version is defined in this file
+ * Version details
+ *
+ * @package block
+ * @subpackage mnet_hosts
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$plugin->version = 2010112900;
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_mnet_hosts'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2009123100;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_myprofile'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010091400;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage navigation
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_navigation'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage news_items
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_news_items'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101510;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage online_users
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_online_users'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage participants
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_participants'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010030100;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage private_files
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_private_files'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-
defined('MOODLE_INTERNAL') || die();
-
-$plugin->version = 2011100300;
-$plugin->requires = 2011091600;
-$plugin->component = 'block_quiz_results';
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_quiz_results'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage recent_activity
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_recent_activity'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2009072901;
-$plugin->cron = 300; /// Set min time between cron executions to 300 secs (5 mins)
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage rss_client
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_rss_client'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 300; // Set min time between cron executions to 300 secs (5 mins)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage search_forums
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_search_forums'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101511;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage section_links
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_section_links'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2009072800;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage selfcompletion
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_selfcompletion'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010091400;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage settings
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_settings'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage site_main_menu
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_site_main_menu'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage social_activities
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_social_activities'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage tag_flickr
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_tag_flickr'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2007101509;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage tag_youtube
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_tag_youtube'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090502;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package block
+ * @subpackage tags
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'block_tags'; // Full name of the plugin (used for diagnostics)
);
}
}
+ if ($canview && $CFG->enablerssfeeds) {
+ $options['rss'] = array(
+ 'string' => get_string('rssfeed', 'blog'),
+ 'link' => new moodle_url(rss_get_url($sitecontext->id, $USER->id, 'blog', 'user/'.$user->id))
+ );
+ }
+
// Cache the options
$useroptions[$user->id] = $options;
// Return the options
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010081203;
-$plugin->requires = 2010090501;
-$plugin->cron = 180;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_authorize'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 180;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010061500;
-$plugin->cron = 60;
\ No newline at end of file
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_category'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 60;
\ No newline at end of file
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010073100;
-$plugin->cron = 60;
\ No newline at end of file
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_cohort'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 60;
\ No newline at end of file
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010073101;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_database'; // Full name of the plugin (used for diagnostics)
//TODO: should we add cron sync?
\ No newline at end of file
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010091400;
-$plugin->cron = 60;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_flatfile'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 60;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011110600;
-$plugin->component = 'enrol_guest';
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_guest'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011013000;
-$plugin->cron = 60;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_imsenterprise'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 60;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010071100;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_ldap'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010071201.02;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_manual'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010073101;
-$plugin->cron = 60;
\ No newline at end of file
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_meta'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 60;
\ No newline at end of file
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010071701;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_mnet'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010073100;
-$plugin->requires = 2010090501; // Requires this Moodle version
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_paypal'; // Full name of the plugin (used for diagnostics)
$mform->setDefault('customint1', $plugin->get_config('groupkey'));
if ($instance->id) {
- $roles = get_default_enrol_roles($context, $instance->roleid);
+ $roles = $this->extend_assignable_roles($context, $instance->roleid);
} else {
- $roles = get_default_enrol_roles($context, $plugin->get_config('roleid'));
+ $roles = $this->extend_assignable_roles($context, $plugin->get_config('roleid'));
}
$mform->addElement('select', 'roleid', get_string('role', 'enrol_self'), $roles);
$mform->setDefault('roleid', $plugin->get_config('roleid'));
return $errors;
}
+
+ /**
+ * Gets a list of roles that this user can assign for the course as the default for self-enrolment
+ *
+ * @param context $context the context.
+ * @param integer $defaultrole the id of the role that is set as the default for self-enrolement
+ * @return array index is the role id, value is the role name
+ */
+ function extend_assignable_roles($context, $defaultrole) {
+ global $DB;
+ $roles = get_assignable_roles($context);
+ $sql = "SELECT r.id, r.name
+ FROM {role} r
+ WHERE r.id = $defaultrole";
+ $results = $DB->get_record_sql($sql);
+ if (isset($results->name)) {
+ $roles[$results->id] = $results->name;
+ }
+ return $roles;
+ }
}
\ No newline at end of file
$string['pluginname_desc'] = 'The self enrolment plugin allows users to choose which courses they want to participate in. The courses may be protected by an enrolment key. Internally the enrolment is done via the manual enrolment plugin which has to be enabled in the same course.';
$string['requirepassword'] = 'Require enrolment key';
$string['requirepassword_desc'] = 'Require enrolment key in new courses and prevent removing of enrolment key from existing courses.';
-$string['role'] = 'Assign role';
+$string['role'] = 'Default assigned role';
$string['self:config'] = 'Configure self enrol instances';
$string['self:manage'] = 'Manage enrolled users';
$string['self:unenrol'] = 'Unenrol users from course';
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010090502;
-$plugin->cron = 180;
\ No newline at end of file
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'enrol_self'; // Full name of the plugin (used for diagnostics)
+$plugin->cron = 180;
\ No newline at end of file
$supportuser->email = $CFG->supportemail ? $CFG->supportemail : $admin->email;
$supportuser->firstname = $CFG->supportname ? $CFG->supportname : $admin->firstname;
$supportuser->lastname = $CFG->supportname ? '' : $admin->lastname;
+ // emailstop could be hard coded "false" to ensure error reports are sent
+ // but then admin's would have to alter their messaging preferences to temporarily stop them
+ $supportuser->emailstop = $admin->emailstop;
$supportuser->maildisplay = true;
/// Send the message and redirect
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package filter
+ * @subpackage activitynames
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_activitynames'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package filter
+ * @subpackage algebra
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_algebra'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package filter
+ * @subpackage censor
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_censor'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package filter
+ * @subpackage emailprotect
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_emailprotect'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
+ * Version information
+ *
* @package filter
* @subpackage emoticon
* @copyright 2010 David Mudrak <david@moodle.com>
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010102300;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_emoticon'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011030900;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_mediaplugin'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package filter
+ * @subpackage multilang
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_multilang'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011031301;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_tex'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package filter
+ * @subpackage tidy
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_tidy'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
+ * Version details
+ *
* @package filter
* @subpackage urltolink
* @copyright 2010 David Mudrak <david@moodle.com>
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010100500;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'filter_urltolink'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradeexport
+ * @subpackage ods
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradeexport_ods'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradeexport
+ * @subpackage txt
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradeexport_txt'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradeexport
+ * @subpackage xls
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradeexport_xls'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradeexport
+ * @subpackage xml
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradeexport_xml'; // Full name of the plugin (used for diagnostics)
public function test_tokenize() {
+ $UTFfailuremessage = 'A test using UTF-8 characters has failed. Consider updating PHP and PHP\'s PCRE or INTL extensions (MDL-30494)';
+
$needle = " šašek, \n\n \r a král; \t";
$tokens = testable_grading_manager::tokenize($needle);
- $this->assertEqual(2, count($tokens));
- $this->assertTrue(in_array('šašek', $tokens));
- $this->assertTrue(in_array('král', $tokens));
+ $this->assertEqual(2, count($tokens), $UTFfailuremessage);
+ $this->assertTrue(in_array('šašek', $tokens), $UTFfailuremessage);
+ $this->assertTrue(in_array('král', $tokens), $UTFfailuremessage);
$needle = ' " šašek a král " ';
$tokens = testable_grading_manager::tokenize($needle);
$needle = '<span>Aha</span>, then who\'s a bad guy here he?';
$tokens = testable_grading_manager::tokenize($needle);
- $this->assertTrue(in_array('span', $tokens));
+ $this->assertEqual(8, count($tokens));
+ $this->assertTrue(in_array('span', $tokens)); // Extracted the tag name
$this->assertTrue(in_array('Aha', $tokens));
- $this->assertTrue(in_array('who', $tokens));
+ $this->assertTrue(in_array('who', $tokens)); // Removed the trailing 's
+ $this->assertTrue(!in_array('a', $tokens)); //Single letter token was dropped
+ $this->assertTrue(in_array('he', $tokens)); // Removed the trailing ?
+
+ $needle = 'grammar, "english language"';
+ $tokens = testable_grading_manager::tokenize($needle);
+ $this->assertTrue(in_array('grammar', $tokens));
+ $this->assertTrue(in_array('english', $tokens));
+ $this->assertTrue(in_array('language', $tokens));
+ $this->assertTrue(!in_array('english language', $tokens)); // Quoting part of the string is not supported
}
}
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradeimport
+ * @subpackage csv
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradeimport_csv'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradeimport
+ * @subpackage xml
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradeimport_xml'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradereport
+ * @subpackage grader
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradereport_grader'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradereport
+ * @subpackage outcomes
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradereport_outcomes'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradereport
+ * @subpackage overview
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradereport_overview'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// 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 = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package gradereport
+ * @subpackage user
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'gradereport_user'; // Full name of the plugin (used for diagnostics)
$string['readfirst'] = 'Read this first';
$string['relatedblogentries'] = 'Related blog entries';
$string['retrievedfrom'] = 'Retrieved from';
+$string['rssfeed'] = 'Blog RSS feed';
$string['searchterm'] = 'Search: {$a}';
$string['settingsupdatederror'] = 'An error has occurred, blog preference setting could not be updated';
$string['siteblog'] = 'Site blog: {$a}';
$string['externalservices'] = 'External services';
$string['externalserviceusers'] = 'External service users';
$string['failedtolog'] = 'Failed to log';
+$string['filenameexist'] = 'File name already exists: {$a}';
$string['function'] = 'Function';
$string['functions'] = 'Functions';
$string['generalstructure'] = 'General structure';
if (empty($fields)) {
$fields = 'u.id, u.confirmed, u.username, u.firstname, u.lastname, '.
- 'u.maildisplay, u.mailformat, u.maildigest, u.email, u.city, '.
+ 'u.maildisplay, u.mailformat, u.maildigest, u.email, u.emailstop, u.city, '.
'u.country, u.picture, u.idnumber, u.department, u.institution, '.
'u.lang, u.timezone, u.lastaccess, u.mnethostid, r.name AS rolename, r.sortorder';
}
if ($dbman->table_exists($table)) {
$instances = $DB->get_records('block_instances', array('blockname'=>'search'));
foreach($instances as $instance) {
- context_helper::delete_instance(CONTEXT_BLOCK, $instance->id);
+ $context = context_block::instance($instance->id);
+ upgrade_cleanup_unwanted_block_contexts(array($context->id)); // do not use standard block deleting MDL-30517, there is no extra stuff used in block, so this should be safe
$DB->delete_records('block_positions', array('blockinstanceid' => $instance->id));
$DB->delete_records('block_instances', array('id' => $instance->id));
}
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010090501;
-$plugin->requires = 2010090501;
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'editor_textarea'; // Full name of the plugin (used for diagnostics)
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2011101600;
-$plugin->requires = 2011090700;
-$plugin->release = '3.4.6';
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'editor_tinymce'; // Full name of the plugin (used for diagnostics)
+$plugin->release = '3.4.6';
debugging('Attempt to force message delivery to user who has "'.$processor->name.'" output unconfigured', DEBUG_NORMAL);
}
+ // Warn developers that necessary data is missing regardless of how the processors are configured
+ if (!isset($eventdata->userto->emailstop)) {
+ debugging('userto->emailstop is not set. Retrieving it from the user table');
+ $eventdata->userto->emailstop = $DB->get_field('user', 'emailstop', array('id'=>$eventdata->userto->id));
+ }
+
// Populate the list of processors we will be using
if ($permitted == 'forced' && $userisconfigured) {
- // We force messages for this processor, so use this processor unconditionally if user has configured it
+ // An admin is forcing users to use this message processor. Use this processor unconditionally.
$processorlist[] = $processor->name;
} else if ($permitted == 'permitted' && $userisconfigured && !$eventdata->userto->emailstop) {
- // User settings are permitted, see if user set any, otherwise use site default ones
+ // User has not disabled notifications
+ // See if user set any notification preferences, otherwise use site default ones
$userpreferencename = 'message_provider_'.$preferencebase.'_'.$userstate;
if ($userpreference = get_user_preferences($userpreferencename, null, $eventdata->userto->id)) {
if (in_array($processor->name, explode(',', $userpreference))) {
if (count($options) > 0) {
$blogs = $usernode->add(get_string('blogs', 'blog'), null, navigation_node::TYPE_CONTAINER);
- foreach ($options as $option) {
- $blogs->add($option['string'], $option['link']);
+ foreach ($options as $type => $option) {
+ if ($type == "rss") {
+ $blogs->add($option['string'], $option['link'], settings_navigation::TYPE_SETTING, null, null, new pix_icon('i/rss', ''));
+ } else {
+ $blogs->add($option['string'], $option['link']);
+ }
}
}
}
<?php
-
-///////////////////////////////////////////////////////////////////////////
-// //
-// NOTICE OF COPYRIGHT //
-// //
-// Moodle - Modular Object-Oriented Dynamic Learning Environment //
-// http://moodle.com //
-// //
-// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
-// //
-// 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 //
-// //
-///////////////////////////////////////////////////////////////////////////
+// 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/>.
/**
* Email processor version information
*
- * @author Luis Rodrigues
- * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package
+ * @package message
+ * @subpackage email
+ * @author Luis Rodrigues
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2010090501;
-$plugin->requires = 2010090501;
-
-
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'message_email'; // Full name of the plugin (used for diagnostics)
<?php
-
-///////////////////////////////////////////////////////////////////////////
-// //
-// NOTICE OF COPYRIGHT //
-// //
-// Moodle - Modular Object-Oriented Dynamic Learning Environment //
-// http://moodle.com //
-// //
-// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
-// //
-// 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 //
-// //
-///////////////////////////////////////////////////////////////////////////
+// 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/>.
/**
* Jabber processor version information
*
- * @author Luis Rodrigues
- * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package
+ * @package message
+ * @subpackage jabber
+ * @author Luis Rodrigues
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$plugin->version = 2010090501;
-$plugin->requires = 2010090501;
-
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'message_jabber'; // Full name of the plugin (used for diagnostics)
<?php
-
-///////////////////////////////////////////////////////////////////////////
-// //
-// NOTICE OF COPYRIGHT //
-// //
-// Moodle - Modular Object-Oriented Dynamic Learning Environment //
-// http://moodle.com //
-// //
-// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
-// //
-// 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 //
-// //
-///////////////////////////////////////////////////////////////////////////
+// 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/>.
/**
* Popup processor version information
*
- * @author Luis Rodrigues
- * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package
+ * @package message
+ * @subpackage popup
+ * @author Luis Rodrigues
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$plugin->version = 2010090501;
-$plugin->requires = 2010090501;
-
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'message_popup'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+This files describes API changes in /message/ messaging system,
+information provided here is intended especially for developers.
+
+=== 2.2 ===
+
+required changes:
+* lib/messagelib.php message_send($eventdata)
+ $eventdata->userto should contain a property called "emailstop", $eventdata->userto->emailstop
+ If it is absent it will be retrieved from the user table causing an additional database query
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$plugin->version = 2010071700;
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'mnetservice_enrol'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'assignment_offline', language 'en', branch 'master'
+ *
+ * @package assignment
+ * @subpackage offline
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Offline';
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package assignment
+ * @subpackage offline
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'assignment_offline'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'assignment_online', language 'en', branch 'master'
+ *
+ * @package assignment
+ * @subpackage online
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Online';
<?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/>.
-////////////////////////////////////////////////////////////////////////////////
-// Code fragment to define the module version etc.
-// This fragment is called by /admin/index.php
-////////////////////////////////////////////////////////////////////////////////
-
-$plugin->version = 2010090501;
-$plugin->requires = 2010090501;
+/**
+ * Version details
+ *
+ * @package assignment
+ * @subpackage online
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'assignment_online'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'assignment_upload', language 'en', branch 'master'
+ *
+ * @package assignment
+ * @subpackage upload
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Upload';
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package assignment
+ * @subpackage upload
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'assignment_upload'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'assignment_uploadsingle', language 'en', branch 'master'
+ *
+ * @package assignment
+ * @subpackage uploadsingle
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Upload single';
--- /dev/null
+<?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/>.
+
+/**
+ * Version details
+ *
+ * @package assignment
+ * @subpackage uploadsingle
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'assignment_uploadsingle'; // Full name of the plugin (used for diagnostics)
<?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/>.
-////////////////////////////////////////////////////////////////////////////////
-// Code fragment to define the module version etc.
-// This fragment is called by /admin/index.php
-////////////////////////////////////////////////////////////////////////////////
-
-$module->version = 2010102600;
-$module->requires = 2010102600; // Requires this Moodle version
-$module->cron = 60;
+/**
+ * Version information
+ *
+ * @package mod
+ * @subpackage assignment
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_assignment'; // Full name of the plugin (used for diagnostics)
+$module->cron = 60;
<?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/>.
-/////////////////////////////////////////////////////////////////////////////////
-/// Code fragment to define the version of chat
-/// This fragment is called by moodle_needs_upgrading() and /admin/index.php
-/////////////////////////////////////////////////////////////////////////////////
+/**
+ * Version information
+ *
+ * @package mod
+ * @subpackage chat
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
-$module->version = 2010080302; // The (date) version of this module
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 300; // How often should cron check this module (seconds)?
+defined('MOODLE_INTERNAL') || die();
+
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_chat'; // Full name of the plugin (used for diagnostics)
+$module->cron = 300;
$repeateloptions = array();
$repeateloptions['limit']['default'] = 0;
$repeateloptions['limit']['disabledif'] = array('limitanswers', 'eq', 0);
+ $repeateloptions['limit']['rule'] = 'numeric';
$mform->setType('limit', PARAM_INT);
$repeateloptions['option']['helpbutton'] = array('choiceoptions', 'choice');
- $mform->setType('option', PARAM_CLEAN);
+ $mform->setType('option', PARAM_CLEANHTML);
$mform->setType('optionid', PARAM_INT);
<?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/>.
-////////////////////////////////////////////////////////////////////////////////
-// Code fragment to define the module version etc.
-// This fragment is called by /admin/index.php
-////////////////////////////////////////////////////////////////////////////////
-
-$module->version = 2010101301;
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0;
+/**
+ * Version information
+ *
+ * @package mod
+ * @subpackage choice
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_checkbox', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage checkbox
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Checkbox';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage checkbox
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_checkbox'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_date', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage date
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Date';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage date
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_date'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_file', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage file
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'File';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage file
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_file'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_latlong', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage latlong
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Latlong';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage latlong
+ * @copyright 2006 Dan Stowell
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_latlong'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_menu', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage menu
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Menu';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage menu
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_menu'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_multimenu', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage multimenu
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Multimenu';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage multimenu
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_multimenu'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_number', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage number
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Number';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage number
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_number'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_picture', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage picture
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Picture';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage picture
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_picture'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_radiobutton', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage radiobutton
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Radio button';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage radiobutton
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_radiobutton'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_text', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage text
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Text input';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage text
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_text'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_textarea', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage textarea
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'Text area';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage textarea
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_textarea'; // Full name of the plugin (used for diagnostics)
--- /dev/null
+<?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/>.
+
+/**
+ * Strings for component 'datafield_url', language 'en', branch 'master'
+ *
+ * @package datafield
+ * @subpackage url
+ * @copyright 2011 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+$string['pluginname'] = 'URL';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datafield
+ * @subpackage url
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datafield_url'; // Full name of the plugin (used for diagnostics)
*/
$string['modulename'] = 'Image gallery';
+$string['pluginname'] = 'Image gallery';
--- /dev/null
+<?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/>.
+
+/**
+ * @package datapreset
+ * @subpackage imagegallery
+ * @copyright 1999 onwards Martin Dougiamas (http://dougiamas.com)
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2011112900; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2011112900; // Requires this Moodle version
+$plugin->component = 'datapreset_imagegallery'; // Full name of the plugin (used for diagnostics)
*
* @package mod
* @subpackage data
- * @copyright 2005 onwards Martin Dougiamas {@link http://moodle.com}
+ * @copyright 2005 onwards Martin Dougiamas {@link http://moodle.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
-$module->version = 2011102800;
-$module->requires = 2011102700; // Requires this Moodle version
-$module->cron = 60; // Period for cron to check this module (secs)
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
+$module->cron = 60;
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
- * Code fragment to define the version of feedback
- * This fragment is called by moodle_needs_upgrading() and /admin/index.php
+ * Feedback version information
*
- * @author Andreas Grabs
- * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package feedback
+ * @package mod
+ * @subpackage feedback
+ * @author Andreas Grabs
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+defined('MOODLE_INTERNAL') || die();
-$module->version = 2011102800; // The current module version (Date: YYYYMMDDXX)
-$module->requires = 2011102700; // Requires this Moodle version
-$feedback_version_intern = 1; //this version is used for restore older backups
-$module->cron = 0; // Period for cron to check this module (secs)
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
+$feedback_version_intern = 1; //this version is used for restore older backups
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$module->version = 2010101400;
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0;
-
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_folder'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
$stryes = get_string('yes');
$strno = get_string('no');
$strrss = get_string('rss');
-$strsectionname = get_string('sectionname', 'format_'.$course->format);
$searchform = forum_search_form($course);
} else {
$tooltiptext = get_string('rsssubscriberssposts', 'forum');
}
+
+ if (!isloggedin() && $course->id == SITEID) {
+ $userid = guest_user()->id;
+ } else {
+ $userid = $USER->id;
+ }
//Get html code for RSS link
- $row[] = rss_get_link($context->id, $USER->id, 'mod_forum', $forum->id, $tooltiptext);
+ $row[] = rss_get_link($context->id, $userid, 'mod_forum', $forum->id, $tooltiptext);
} else {
$row[] = ' ';
}
/// Now let's process the learning forums
if ($course->id != SITEID) { // Only real courses have learning forums
+ // 'format_.'$course->format only applicable when not SITEID (format_site is not a format)
+ $strsectionname = get_string('sectionname', 'format_'.$course->format);
// Add extra field for section number, at the front
array_unshift($learningtable->head, $strsectionname);
array_unshift($learningtable->align, 'center');
$PAGE->set_button($searchform);
echo $OUTPUT->header();
-if (!isguestuser()) {
+if (!isguestuser() && isloggedin()) {
echo $OUTPUT->box_start('subscription');
echo html_writer::tag('div',
html_writer::link(new moodle_url('/mod/forum/index.php', array('id'=>$course->id, 'subscribe'=>1, 'sesskey'=>sesskey())),
$string['viewalldiscussions'] = 'View all discussions';
$string['warnafter'] = 'Post threshold for warning';
$string['warnafter_help'] = 'Students can be warned as they approach the maximum number of posts allowed in a given period. This setting specifies after how many posts they are warned. Users with the capability mod/forum:postwithoutthrottling are exempt from post limits.';
+$string['warnformorepost'] = 'Warning! There is more than one discussion in this forum - using the most recent';
$string['yournewquestion'] = 'Your new question';
$string['yournewtopic'] = 'Your new discussion topic';
$string['yourreply'] = 'Your reply';
}
if ($forum->type == 'single') { // Update related discussion and post.
- if (! $discussion = $DB->get_record('forum_discussions', array('forum'=>$forum->id))) {
- if ($discussions = $DB->get_records('forum_discussions', array('forum'=>$forum->id), 'timemodified ASC')) {
- echo $OUTPUT->notification('Warning! There is more than one discussion in this forum - using the most recent');
- $discussion = array_pop($discussions);
- } else {
- // try to recover by creating initial discussion - MDL-16262
- $discussion = new stdClass();
- $discussion->course = $forum->course;
- $discussion->forum = $forum->id;
- $discussion->name = $forum->name;
- $discussion->assessed = $forum->assessed;
- $discussion->message = $forum->intro;
- $discussion->messageformat = $forum->introformat;
- $discussion->messagetrust = true;
- $discussion->mailnow = false;
- $discussion->groupid = -1;
-
- $message = '';
-
- forum_add_discussion($discussion, null, $message);
-
- if (! $discussion = $DB->get_record('forum_discussions', array('forum'=>$forum->id))) {
- print_error('cannotadd', 'forum');
- }
+ $discussions = $DB->get_records('forum_discussions', array('forum'=>$forum->id), 'timemodified ASC');
+ if (!empty($discussions)) {
+ if (count($discussions) > 1) {
+ echo $OUTPUT->notification(get_string('warnformorepost', 'forum'));
+ }
+ $discussion = array_pop($discussions);
+ } else {
+ // try to recover by creating initial discussion - MDL-16262
+ $discussion = new stdClass();
+ $discussion->course = $forum->course;
+ $discussion->forum = $forum->id;
+ $discussion->name = $forum->name;
+ $discussion->assessed = $forum->assessed;
+ $discussion->message = $forum->intro;
+ $discussion->messageformat = $forum->introformat;
+ $discussion->messagetrust = true;
+ $discussion->mailnow = false;
+ $discussion->groupid = -1;
+
+ $message = '';
+
+ forum_add_discussion($discussion, null, $message);
+
+ if (! $discussion = $DB->get_record('forum_discussions', array('forum'=>$forum->id))) {
+ print_error('cannotadd', 'forum');
}
}
if (! $post = $DB->get_record('forum_posts', array('id'=>$discussion->firstpost))) {
u.maildigest,
u.imagealt,
u.email,
+ u.emailstop,
u.city,
u.country,
u.lastaccess,
}
}
- if ($enrolled && !empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forumobject->rsstype && $forumobject->rssarticles) {
+ if (!isloggedin() && $PAGE->course->id == SITEID) {
+ $userid = guest_user()->id;
+ } else {
+ $userid = $USER->id;
+ }
+
+ $hascourseaccess = ($PAGE->course->id == SITEID) || can_access_course($PAGE->course, $userid);
+ $enablerssfeeds = !empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds);
+
+ if ($enablerssfeeds && $forumobject->rsstype && $forumobject->rssarticles && $hascourseaccess) {
if (!function_exists('rss_get_url')) {
require_once("$CFG->libdir/rsslib.php");
} else {
$string = get_string('rsssubscriberssposts','forum');
}
- if (!isloggedin()) {
- $userid = 0;
- } else {
- $userid = $USER->id;
- }
+
$url = new moodle_url(rss_get_url($PAGE->cm->context->id, $userid, "mod_forum", $forumobject->id));
$forumnode->add($string, $url, settings_navigation::TYPE_SETTING, null, null, new pix_icon('i/rss', ''));
}
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
- * Code fragment to define the module version etc.
- * This fragment is called by /admin/index.php
+ * Version information
*
* @package mod
* @subpackage forum
defined('MOODLE_INTERNAL') || die();
-$module->version = 2011110601;
-$module->requires = 2011110200; // Requires this Moodle version
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
$module->cron = 60;
-$module->component = 'mod_forum';
\ No newline at end of file
// If it's a simple single discussion forum, we need to print the display
// mode control.
if ($forum->type == 'single') {
- if (! $discussion = $DB->get_record("forum_discussions", array("forum" => $forum->id))) {
- if ($discussions = $DB->get_records("forum_discussions", array("forum", $forum->id), "timemodified ASC")) {
- $discussion = array_pop($discussions);
- }
+ $discussion = NULL;
+ $discussions = $DB->get_records('forum_discussions', array('forum'=>$forum->id), 'timemodified ASC');
+ if (!empty($discussions)) {
+ $discussion = array_pop($discussions);
}
if ($discussion) {
if ($mode) {
switch ($forum->type) {
case 'single':
- if (! $discussion = $DB->get_record("forum_discussions", array("forum" => $forum->id))) {
- if ($discussions = $DB->get_records("forum_discussions", array("forum" => $forum->id), "timemodified ASC")) {
- echo $OUTPUT->notification("Warning! There is more than one discussion in this forum - using the most recent");
- $discussion = array_pop($discussions);
- } else {
- print_error('nodiscussions', 'forum');
- }
+ if (!empty($discussions) && count($discussions) > 1) {
+ echo $OUTPUT->notification(get_string('warnformorepost', 'forum'));
}
if (! $post = forum_get_post_full($discussion->firstpost)) {
print_error('cannotfindfirstpost', 'forum');
$glossary = $DB->get_record('glossary', array("id" => $PAGE->cm->instance));
- if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds) && $glossary->rsstype && $glossary->rssarticles) {
+ if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds) && $glossary->rsstype && $glossary->rssarticles && can_access_course($PAGE->course, $USER)) {
require_once("$CFG->libdir/rsslib.php");
$string = get_string('rsstype','forum');
//This function is the main entry point to glossary
//rss feeds generation.
function glossary_rss_get_feed($context, $args) {
- global $CFG, $DB;
+ global $CFG, $DB, $COURSE, $USER;
$status = true;
$cm = get_coursemodule_from_instance('glossary', $glossaryid, 0, false, MUST_EXIST);
if ($cm) {
$modcontext = get_context_instance(CONTEXT_MODULE, $cm->id);
-
+ if ($COURSE->id == $cm->course) {
+ $course = $COURSE;
+ } else {
+ $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST);
+ }
//context id from db should match the submitted one
//no specific capability required to view glossary entries so just check user is enrolled
- if ($context->id != $modcontext->id || !is_enrolled($context)) {
+ if ($context->id != $modcontext->id || !can_access_course($course, $USER)) {
return null;
}
}
defined('MOODLE_INTERNAL') || die();
-$module->version = 2011102800;
-$module->requires = 2011102700; // Requires this Moodle version
-$module->cron = 0; // Period for cron to check this module (secs)
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
defined('MOODLE_INTERNAL') || die();
-$module->version = 2010101400;
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0;
-
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
-
-$module->version = 2010080300; // The current module version (Date: YYYYMMDDXX)
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0; // Period for cron to check this module (secs)
-
+defined('MOODLE_INTERNAL') || die();
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_label'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
if ($useregexp) { //we are using 'normal analysis', which ignores case
$ignorecase = '';
- if (substr($expectedanswer,0,-2) == '/i') {
- $expectedanswer = substr($expectedanswer,0,-2);
+ if (substr($expectedanswer, -2) == '/i') {
+ $expectedanswer = substr($expectedanswer, 0, -2);
$ignorecase = 'i';
}
} else {
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
- * Code fragment to define the version of lesson
- * This fragment is called by moodle_needs_upgrading() and /admin/index.php
+ * Version information
*
* @package mod
* @subpackage lesson
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
- * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late
- **/
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
defined('MOODLE_INTERNAL') || die();
-$module->version = 2010122200; // The current module version (Date: YYYYMMDDXX)
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0; // Period for cron to check this module (secs)
-
-
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
defined('MOODLE_INTERNAL') || die;
-$module->version = 2011111601;;
-$module->requires = 2011110200; // Requires this Moodle version
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_lti'; // Full name of the plugin (used for diagnostics)
$module->cron = 0;
-$module->component = 'mod_lti';
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
-
-$module->version = 2010101400;
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0;
+defined('MOODLE_INTERNAL') || die();
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_page'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
}
// check for notifications required
- $notifyfields = 'u.id, u.username, u.firstname, u.lastname, u.idnumber, u.email, ' .
+ $notifyfields = 'u.id, u.username, u.firstname, u.lastname, u.idnumber, u.email, u.emailstop, ' .
'u.lang, u.timezone, u.mailformat, u.maildisplay';
$groups = groups_get_all_groups($course->id, $submitter->id);
if (is_array($groups) && count($groups) > 0) {
$plugin->version = 2011051200;
$plugin->requires = 2011060313;
+$plugin->component = 'quiz_grading';
$plugin->version = 2011051200;
$plugin->requires = 2011060313;
+$plugin->component = 'quiz_overview';
$plugin->version = 2011051200;
$plugin->requires = 2011060313;
+$plugin->component = 'quiz_responses';
+
$plugin->version = 2011062600;
$plugin->requires = 2011060313;
+$plugin->component = 'quiz_statistics';
defined('MOODLE_INTERNAL') || die();
-$module->version = 2011100604;
-$module->requires = 2011060313;
-$module->cron = 0;
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
+defined('MOODLE_INTERNAL') || die();
-$module->version = 2011022700;
-$module->requires = 2010080300; // Requires this Moodle version
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_resource'; // Full name of the plugin (used for diagnostics)
$module->cron = 0;
-$module->component = 'mod_resource';
}
$params = array();
- list($usql, $params) = $DB->get_in_or_equal($allowedlist);
+ list($usql, $params) = $DB->get_in_or_equal($allowedlist, SQL_PARAMS_NAMED);
// Construct the SQL
$select = 'SELECT DISTINCT '.$DB->sql_concat('u.id', '\'#\'', 'COALESCE(st.attempt, 0)').' AS uniqueid, ';
$select .= 'st.scormid AS scormid, st.attempt AS attempt, ' .
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$module->version = 2011110502; // The (date) version of this module
-$module->requires = 2010080300; // The version of Moodle that is required
-$module->cron = 300; // How often should cron check this module (seconds)?
+defined('MOODLE_INTERNAL') || die();
+
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics)
+$module->cron = 300;
<?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/>.
-////////////////////////////////////////////////////////////////////////////////
-// Code fragment to define the module version etc.
-// This fragment is called by /admin/index.php
-////////////////////////////////////////////////////////////////////////////////
-
-$module->version = 2010080300;
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0;
+/**
+ * Version information
+ *
+ * @package mod
+ * @subpackage survey
+ * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+defined('MOODLE_INTERNAL') || die();
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_survey'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-defined('MOODLE_INTERNAL') || die;
-
-$module->version = 2011092801;
-$module->requires = 2010080300; // Requires this Moodle version
-$module->cron = 0;
+defined('MOODLE_INTERNAL') || die();
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_url'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
//
// 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
+// 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/>.
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Code fragment to define the version of wiki
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
-$module->version = 2011011001; // The current module version (Date: YYYYMMDDXX)
-$module->requires = 2010080300;
-$module->cron = 0; // Period for cron to check this module (secs)
+defined('MOODLE_INTERNAL') || die();
+
+$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX)
+$module->requires = 2011112900; // Requires this Moodle version
+$module->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics)
+$module->cron = 0;
--- /dev/null
+<?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/>.
+
+/**
+ * Defines the version of the subplugin
+ *
+ * @package workshopallocation
+ * @subpackage manual
+ * @copyright 2009 David Mudrak <david.mudrak@gmail.com>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2010090501;
+$plugin->requires = 2010090501; // Requires this Moodle version
+$plugin->component = 'workshopallocation_manual';
\ No newline at end of file
--- /dev/null
+<?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/>.
+
+/**
+ * Defines the version of the subplugin
+ *
+ * @package workshopallocation
+ * @subpackage random
+ * @copyright 2009 David Mudrak <david.mudrak@gmail.com>
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+$plugin->version = 2010090501;
+$plugin->requires = 2010090501; // Requires this Moodle version
+$plugin->component = 'workshopallocation_random';
\ No newline at end of file
<?php
-
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
$plugin->version = 2010090501;
$plugin->requires = 2010090501; // Requires this Moodle version
+$plugin->component = 'workshopeval_best';
'showreviewer' => false,
'showauthor' => false,
'showform' => true,
- 'showweight' => false,
);
- $assessment = $workshop->prepare_assessment($assessment, $mform, $options);
+ $assessment = $workshop->prepare_example_reference_assessment($assessment, $mform, $options);
$assessment->title = get_string('assessmentreference', 'workshop');
echo $output->render($assessment);
'showreviewer' => true,
'showauthor' => false,
'showform' => true,
- 'showweight' => false,
);
- $assessment = $workshop->prepare_assessment($assessment, $mform, $options);
+ $assessment = $workshop->prepare_example_assessment($assessment, $mform, $options);
$assessment->title = get_string('assessmentbyyourself', 'workshop');
echo $output->render($assessment);
'showform' => true,
'showweight' => false,
);
- $assessment = $workshop->prepare_assessment($assessment, $mform, $options);
+ $assessment = $workshop->prepare_example_assessment($assessment, $mform, $options);
echo $output->render($assessment);
}
'showreviewer' => false,
'showauthor' => false,
'showform' => true,
- 'showweight' => false,
);
- $reference = $workshop->prepare_assessment($reference, $mformreference, $options);
+ $reference = $workshop->prepare_example_reference_assessment($reference, $mformreference, $options);
$reference->title = get_string('assessmentreference', 'workshop');
+ if ($canmanage) {
+ $reference->url = $workshop->exassess_url($reference->id);
+ }
echo $output->render($reference);
}
'showreviewer' => true,
'showauthor' => false,
'showform' => true,
- 'showweight' => false,
);
- $assessment = $workshop->prepare_assessment($assessment, $mformassessment, $options);
+ $assessment = $workshop->prepare_example_assessment($assessment, $mformassessment, $options);
$assessment->title = get_string('assessmentbyyourself', 'workshop');
if ($workshop->assessing_examples_allowed()) {
$assessment->add_action(
'showreviewer' => true,
'showauthor' => false,
'showform' => true,
- 'showweight' => false,
);