# We hope to offer PHP 7 support in the near future.
- nightly
+services:
+ # Ensure that memcached and mongodb are running for testing of those MUC stores.
+ - memcached
+ - mongodb
+
env:
# Although we want to run these jobs and see failures as quickly as possible, we also want to get the slowest job to
# start first so that the total run time is not too high.
# Typically it should be able to use the Composer cache if any other job has already completed before we started here.
- travis_retry composer install --prefer-dist --no-interaction
+ - echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+ - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+ - echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
+
before_script:
- >
if [ "$INSTALL" = 'true' -o "$PHPUNIT" = 'true' ];
sed -i \
-e "/require_once/i \\\$CFG->phpunit_dataroot = '\/home\/travis\/roots\/phpunit';" \
-e "/require_once/i \\\$CFG->phpunit_prefix = 'p_';" \
+ -e "/require_once/i define('TEST_CACHESTORE_MEMCACHE_TESTSERVERS', '127.0.0.1:11211');" \
+ -e "/require_once/i define('TEST_CACHESTORE_MEMCACHED_TESTSERVERS', '127.0.0.1:11211');" \
+ -e "/require_once/i define('TEST_CACHESTORE_MONGODB_TESTSERVER', 'mongodb://localhost:27017');" \
config.php ;
# Initialise PHPUnit for Moodle.
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_assignmentupgrade';
-$plugin->dependencies = array('mod_assign' => 2015050500);
+$plugin->dependencies = array('mod_assign' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_availabilityconditions';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_behat'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'tool_capability'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_customlang'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'tool_dbtransfer'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_filetypes';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_generator';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_health'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_ALPHA; // this version's maturity level
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_innodb'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'tool_installaddon';
-$plugin->version = 2015080601;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->maturity = MATURITY_STABLE;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_langimport'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'logstore_database'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015070700; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'logstore_legacy'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015070700; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'logstore_standard'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'tool_log'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_messageinbound';
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'tool_monitor'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_multilangupgrade'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_phpunit'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_profiling'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_replace'; // Full name of the plugin (used for diagnostics)
$plugin->maturity = MATURITY_ALPHA; // this version's maturity level
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'tool_spamcleaner'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_task'; // Full name of the plugin (used for diagnostics)
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'tool_templatelibrary'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_unsuproles'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'tool_uploadcourse'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_uploaduser'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'tool_xmldb'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015100600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_cas'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('auth_ldap' => 2015050500);
+$plugin->dependencies = array('auth_ldap' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_db'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_email'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_fc'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_imap'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015100600; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_ldap'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_manual'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_mnet'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_nntp'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_nologin'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_none'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_pam'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_pop3'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_radius'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_shibboleth'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'auth_webservice'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'availability_completion';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'availability_date';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'availability_grade';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'availability_group';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'availability_grouping';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'availability_profile';
* point is backup when some behavior/approach channged, in order to allow
* conditional coding based on it.
*/
- const VERSION = 2015051100;
+ const VERSION = 2015111600;
/**
* Usually same than major release zero version, mainly for informative/historic purposes.
*/
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_activity_modules'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'block_activity_results'; // Full name of the plugin (used for diagnostics).
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_admin_bookmarks'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'block_badges';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_blog_menu'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_blog_recent'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_blog_tags'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_calendar_month'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_calendar_upcoming'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_comments'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_community'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'block_completionstatus';
-$plugin->dependencies = array('report_completion' => 2015050500);
+$plugin->dependencies = array('report_completion' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_course_list'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_course_overview'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_course_summary'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_feedback'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_feedback' => 2015050500);
+$plugin->dependencies = array('mod_feedback' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_glossary_random'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_glossary' => 2015050500);
+$plugin->dependencies = array('mod_glossary' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_html'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_login'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_mentees'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_messages'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_mnet_hosts'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_myprofile'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_navigation'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_news_items'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_forum' => 2015050500);
+$plugin->dependencies = array('mod_forum' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_online_users'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_participants'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_private_files'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_quiz_results'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_quiz' => 2015050500);
+$plugin->dependencies = array('mod_quiz' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_recent_activity'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 24*3600; // Cron interval 1 day.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015071700; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // 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)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_search_forums'; // Full name of the plugin (used for diagnostics)
-$plugin->dependencies = array('mod_forum' => 2015050500);
+$plugin->dependencies = array('mod_forum' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_section_links'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_selfcompletion'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_settings'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_site_main_menu'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_social_activities'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_tag_flickr'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051101; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_tag_youtube'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'block_tags'; // Full name of the plugin (used for diagnostics)
$this->delete_many($todelete);
}
// Set the time of the last invalidation.
- $this->set('lastinvalidation', cache::now());
+ if ($purgeall || !empty($todelete)) {
+ $this->set('lastinvalidation', cache::now());
+ }
}
}
$this->delete_many($todelete);
}
// Set the time of the last invalidation.
- $this->set('lastsessioninvalidation', cache::now());
+ if ($purgeall || !empty($todelete)) {
+ $this->set('lastsessioninvalidation', cache::now());
+ }
}
}
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'cachelock_file'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'cachestore_file'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'cachestore_memcache'; // Full name of the plugin.
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'cachestore_memcached'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'cachestore_mongodb'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'cachestore_session'; // Full name of the plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2015051100; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'cachestore_static'; // Full name of the plugin.
\ No newline at end of file
));
$cache = cache::make('phpunit', 'eventinvalidationtest');
$this->assertFalse($cache->get('testkey1'));
+
+ // Test 3: Verify that an existing lastinvalidation cache file is updated when needed.
+
+ // Make a new cache class. This should should invalidate testkey2.
+ $cache = cache::make('phpunit', 'eventinvalidationtest');
+ // Timestamp should have updated to cache::now().
+ $this->assertEquals(cache::now(), $cache->get('lastinvalidation'));
+
+ // Set testkey2 data.
+ $cache->set('testkey2', 'test data 2');
+ // Backdate the event invalidation time by 30 seconds.
+ $invalidationcache = cache::make('core', 'eventinvalidation');
+ $invalidationcache->set('crazyevent', array('testkey2' => cache::now() - 30));
+ // Lastinvalidation should already be cache::now().
+ $this->assertEquals(cache::now(), $cache->get('lastinvalidation'));
+ // Set it to 15 seconds ago so that we know if it changes.
+ $cache->set('lastinvalidation', cache::now() - 15);
+ // Make a new cache class. This should not invalidate anything.
+ cache_factory::instance()->reset_cache_instances();
+ $cache = cache::make('phpunit', 'eventinvalidationtest');
+ // Lastinvalidation shouldn't change since it was already newer than invalidation event.
+ $this->assertEquals(cache::now() - 15, $cache->get('lastinvalidation'));
+
+ // Now set the event invalidation to newer than the lastinvalidation time.
+ $invalidationcache->set('crazyevent', array('testkey2' => cache::now() - 5));
+ // Make a new cache class. This should should invalidate testkey2.
+ cache_factory::instance()->reset_cache_instances();
+ $cache = cache::make('phpunit', 'eventinvalidationtest');
+ // Lastinvalidation timestamp should have updated to cache::now().
+ $this->assertEquals(cache::now(), $cache->get('lastinvalidation'));
+
+ // Now simulate a purge_by_event 5 seconds ago.
+ $invalidationcache = cache::make('core', 'eventinvalidation');
+ $invalidationcache->set('crazyevent', array('purged' => cache::now() - 5));
+ // Set our lastinvalidation timestamp to 15 seconds ago.
+ $cache->set('lastinvalidation', cache::now() - 15);
+ // Make a new cache class. This should invalidate the cache.
+ cache_factory::instance()->reset_cache_instances();
+ $cache = cache::make('phpunit', 'eventinvalidationtest');
+ // Lastinvalidation timestamp should have updated to cache::now().
+ $this->assertEquals(cache::now(), $cache->get('lastinvalidation'));
+
}
/**
// Let us findout courses that we can return events from.
if (!$hassystemcap) {
+ $courses = enrol_get_my_courses('id');
+ $courses = array_keys($courses);
foreach ($params['events']['courseids'] as $id) {
try {
$context = context_course::instance($id);
'warningcode' => 'nopermissions',
'message' => 'No access rights in course context '.$e->getMessage().$e->getTraceAsString()
);
- continue;
}
}
} else {
$events = external_api::clean_returnvalue(core_calendar_external::get_calendar_events_returns(), $events);
$this->assertEquals(1, count($events['events'])); // site.
$this->assertEquals(0, count($events['warnings']));
+
+ // Try getting a course event by its id.
+ $paramevents = array ('eventids' => array($courseevent->id));
+ $events = core_calendar_external::get_calendar_events($paramevents, $options);
+ $events = external_api::clean_returnvalue(core_calendar_external::get_calendar_events_returns(), $events);
+ $this->assertEquals(1, count($events['events']));
+ $this->assertEquals(0, count($events['warnings']));
}
/**
global $CFG;
require_once($CFG->dirroot . '/lib/cronlib.php');
- // Moodle ICal URL (moodle.org events).
- $presetwhat = 'all';
- $presettime = 'recentupcoming';
- $userid = 1;
- $authtoken = 'a8bcfee2fb868a05357f650bd65dc0699b026524';
- $subscriptionurl = 'https://moodle.org/calendar/export_execute.php'
- . '?preset_what='.$presetwhat.'&preset_time='.$presettime.'&userid='.$userid.'&authtoken='.$authtoken;
+ // ICal URL from external test repo.
+ $subscriptionurl = $this->getExternalTestFileUrl('/ical.ics');
$subscription = new stdClass();
$subscription->eventtype = 'site';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'calendartype_gregorian'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'format_singleactivity'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015102100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'format_social'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'format_topics'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'format_weeks'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_category'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_cohort'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60*60; // run cron every hour by default, it is not out-of-sync often
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_database'; // Full name of the plugin (used for diagnostics)
//TODO: should we add cron sync?
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015090700; // The current plugin version (Date: YYYYMMDDRR)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDRR)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_flatfile'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015102300; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_guest'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'enrol_imsenterprise';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_ldap'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015091500; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_manual'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 600;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015082400; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_meta'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60*60; // run cron every hour by default, it is not out-of-sync often
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_mnet'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_paypal'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 60;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051101; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'enrol_self'; // Full name of the plugin (used for diagnostics)
$plugin->cron = 600;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_activitynames'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_algebra'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_censor'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component= 'filter_data';
-$plugin->dependencies = array('mod_data' => 2015050500);
+$plugin->dependencies = array('mod_data' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_emailprotect'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_emoticon'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component= 'filter_glossary';
-$plugin->dependencies = array('mod_glossary' => 2015050500);
+$plugin->dependencies = array('mod_glossary' => 2015111000);
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component= 'filter_mathjaxloader';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_mediaplugin'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_multilang'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_tex'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_tidy'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'filter_urltolink'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeexport_ods'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeexport_txt'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeexport_xls'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeexport_xml'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'gradingform_guide';
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->maturity = MATURITY_STABLE;
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'gradingform_rubric';
-$plugin->version = 2015051101;
+$plugin->version = 2015111600;
-$plugin->requires = 2015050500;
+$plugin->requires = 2015111000;
$plugin->maturity = MATURITY_STABLE;
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeimport_csv'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeimport_direct'; // Full name of the plugin (used for diagnostics).
-$plugin->dependencies = array('gradeimport_csv' => 2015050500); // Grade import csv is required for this plugin.
\ No newline at end of file
+$plugin->dependencies = array('gradeimport_csv' => 2015111000); // Grade import csv is required for this plugin.
\ No newline at end of file
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradeimport_xml'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradereport_grader'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
$plugin->component = 'gradereport_history';
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradereport_outcomes'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradereport_overview'; // Full name of the plugin (used for diagnostics)
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'gradereport_singleview'; // Full name of the plugin (used for diagnostics).
-$plugin->version = 2015051100;
-$plugin->requires = 2015050500;
+$plugin->version = 2015111600;
+$plugin->requires = 2015111000;
require_once($CFG->dirroot . '/grade/lib.php');
require_once($CFG->dirroot . '/grade/report/user/lib.php');
+ // Force regrade to update items marked as 'needupdate'.
+ grade_regrade_final_grades($course->id);
+
$gpr = new grade_plugin_return(
array(
'type' => 'report',
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
-$plugin->requires = 2015050500; // Requires this Moodle version
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX)
+$plugin->requires = 2015111000; // Requires this Moodle version
$plugin->component = 'gradereport_user'; // Full name of the plugin (used for diagnostics)
language,moodle
memorylimithelp,install
missingrequiredfield,error
+moodlelogo,moodle
next,moodle
parentlanguage,langconfig
pathserrcreatedataroot,install
$string['missingurl'] = 'Missing URL';
$string['missingusername'] = 'Missing username';
$string['moddoesnotsupporttype'] = 'Module {$a->modname} does not support uploads of type {$a->type}';
+$string['moodlelogo'] = 'Moodle logo';
$string['month'] = 'Month';
$string['months'] = 'Months';
$string['modified'] = 'Modified';
'core_calendar_get_calendar_events',
'core_enrol_get_users_courses',
'core_enrol_get_enrolled_users',
+ 'core_enrol_get_course_enrolment_methods',
'enrol_self_enrol_user',
'core_user_get_users_by_id',
'core_webservice_get_site_info',
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_accessibilitychecker'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_accessibilityhelper'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_align'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_backcolor'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_bold'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_charmap'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_clear'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_collapse'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_emoticon'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015083100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_equation'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_fontcolor'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_html'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_image'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_indent'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_italic'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_link'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_managefiles'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_media'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_noautolink'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_orderedlist'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_rtl'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_strike'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_subscript'; // Full name of the plugin (used for diagnostics).
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_superscript'; // Full name of the plugin (used for diagnostics).
$string['addrowafter'] = 'Insert row after';
$string['all'] = 'Around each cell';
$string['allowbackgroundcolour'] = 'Allow background colour';
-$string['allowbackgroundcolour_desc'] = 'Allow users to set the background colour for the table';
-$string['allowborder'] = 'Allow borders';
-$string['allowborder_desc'] = 'If enabled, table and cell borders can be customised. The default border is a solid, 1px, black line.';
-$string['allowborderstyle'] = 'Allow border styling';
-$string['allowborderstyle_desc'] = 'This setting has no effect unless \'Allow borders\' is enabled.';
-$string['allowbordersize'] = 'Allow border size control';
-$string['allowbordersize_desc'] = 'This setting has no effect unless \'Allow borders\' is enabled.';
-$string['allowbordercolour'] = 'Allow border colour';
-$string['allowbordercolour_desc'] = 'This setting has no effect unless \'Allow borders\' is enabled.';
+$string['allowborder'] = 'Allow border styling';
+$string['allowborder_desc'] = 'If enabled, table and cell borders can be customised.';
$string['allowwidth'] = 'Allow width';
-$string['allowwidth_desc'] = 'Allow users to set the width of the tables.';
$string['appearance'] = 'Appearance';
$string['backgroundcolour'] = 'Background colour';
$string['both'] = 'Both';
$string['borders'] = 'Borders';
$string['bordersize'] = 'Size of borders';
$string['borderstyles'] = 'Style of borders';
-$string['borderstyles_desc'] = 'Allowed border styles, separated by commas';
$string['caption'] = 'Caption';
$string['captionposition'] = 'Caption position';
$string['columns'] = 'Columns';
$string['deleterow'] = 'Delete row';
$string['dashed'] = 'Dashed';
$string['dotted'] = 'Dotted';
-$string['double'] = 'Double';
$string['edittable'] = 'Edit table';
-$string['groove'] = 'Groove';
$string['headers'] = 'Define headers on';
-$string['hidden'] = 'Hidden';
-$string['inherit'] = 'Inherit';
-$string['initial'] = 'Initial';
-$string['inset'] = 'Inset';
$string['movecolumnleft'] = 'Move column left';
$string['movecolumnright'] = 'Move column right';
$string['moverowdown'] = 'Move row down';
$string['numberofcolumns'] = 'Number of columns';
$string['numberofrows'] = 'Number of rows';
$string['outer'] = 'Around table';
-$string['outset'] = 'Outset';
$string['pluginname'] = 'Table';
-$string['ridge'] = 'Ridge';
$string['rows'] = 'Rows';
$string['settings'] = 'Table settings';
$string['solid'] = 'Solid';
$string['themedefault'] = 'Theme default';
$string['transparent'] = 'Transparent';
-$string['unset'] = 'Unset';
$string['updatetable'] = 'Update table';
$string['width'] = 'Table width (in %)';
'width',
'outer',
'noborder',
- 'inherit',
'themedefault',
- 'initial',
- 'unset',
- 'hidden',
'dotted',
'dashed',
- 'solid',
- 'double',
- 'groove',
- 'ridge',
- 'inset',
- 'outset'),
+ 'solid'),
'atto_table');
$PAGE->requires->strings_for_js(array('top',
*/
function atto_table_params_for_js($elementid, $options, $foptions) {
$params = array('allowBorders' => (bool) get_config('atto_table', 'allowborders'),
- 'allowBorderStyles' => (bool) get_config('atto_table', 'allowborderstyles'),
- 'borderStyles' => get_config('atto_table', 'borderstyles'),
- 'allowBorderSize' => (bool) get_config('atto_table', 'allowbordersize'),
- 'allowBorderColour' => (bool) get_config('atto_table', 'allowbordercolour'),
'allowWidth' => (bool) get_config('atto_table', 'allowwidth'),
- 'availableColors' => get_config('atto_table', 'availablecolors'),
'allowBackgroundColour' => (bool) get_config('atto_table', 'allowbackgroundcolour'));
return $params;
}
$default);
$settings->add($setting);
- $name = new lang_string('allowborderstyle', 'atto_table');
- $desc = new lang_string('allowborderstyle_desc', 'atto_table');
- $default = 0;
-
- $setting = new admin_setting_configcheckbox('atto_table/allowborderstyles',
- $name,
- $desc,
- $default);
- $settings->add($setting);
-
- $name = new lang_string('borderstyles', 'atto_table');
- $desc = new lang_string('borderstyles_desc', 'atto_table');
- $default = array(
- 'initial' => new lang_string('initial', 'atto_table'),
- 'unset' => new lang_string('unset', 'atto_table'),
- 'none' => new lang_string('none', 'atto_table'),
- 'hidden' => new lang_string('hidden', 'atto_table'),
- 'dotted' => new lang_string('dotted', 'atto_table'),
- 'dashed' => new lang_string('dashed', 'atto_table'),
- 'solid' => new lang_string('solid', 'atto_table'),
- 'double' => new lang_string('double', 'atto_table'),
- 'groove' => new lang_string('groove', 'atto_table'),
- 'ridge' => new lang_string('ridge', 'atto_table'),
- 'inset' => new lang_string('inset', 'atto_table'),
- 'outset' => new lang_string('outset', 'atto_table'),
- );
-
- $setting = new admin_setting_configmultiselect('atto_table/borderstyles',
- $name,
- $desc,
- array_keys($default),
- $default);
- $settings->add($setting);
-
- $name = new lang_string('allowbordersize', 'atto_table');
- $desc = new lang_string('allowbordersize_desc', 'atto_table');
- $default = 0;
-
- $setting = new admin_setting_configcheckbox('atto_table/allowbordersize',
- $name,
- $desc,
- $default);
- $settings->add($setting);
-
- $name = new lang_string('allowbordercolour', 'atto_table');
- $desc = new lang_string('allowbordercolour_desc', 'atto_table');
- $default = 0;
-
- $setting = new admin_setting_configcheckbox('atto_table/allowbordercolour',
- $name,
- $desc,
- $default);
- $settings->add($setting);
-
$name = new lang_string('allowbackgroundcolour', 'atto_table');
- $desc = new lang_string('allowbackgroundcolour_desc', 'atto_table');
$default = 0;
$setting = new admin_setting_configcheckbox('atto_table/allowbackgroundcolour',
$name,
- $desc,
+ '',
$default);
$settings->add($setting);
$name = new lang_string('allowwidth', 'atto_table');
- $desc = new lang_string('allowwidth_desc', 'atto_table');
$default = 0;
$setting = new admin_setting_configcheckbox('atto_table/allowwidth',
$name,
- $desc,
+ '',
$default);
$settings->add($setting);
}
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 1 | atto_table |
- | allowbordercolour | 1 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 1 | atto_table |
- | allowbordercolour | 1 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 0 | atto_table |
- | allowborderstyles | 0 | atto_table |
- | allowbordersize | 0 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 0 | atto_table |
- | allowborderstyles | 0 | atto_table |
- | allowbordersize | 0 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I click on "Show more buttons" "button"
And I click on "Table" "button"
When I click on "Edit table" "link"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I press "Update table"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 0 | atto_table |
- | allowbordersize | 0 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I click on "Show more buttons" "button"
When I click on "Table" "button"
Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
+ Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
+ Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should exist
+ Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should exist
Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 0 | atto_table |
- | allowbordersize | 0 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I click on "Show more buttons" "button"
And I click on "Table" "button"
When I click on "Edit table" "link"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around each cell"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 0 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I select the text in the "Blog entry body" Atto editor
And I click on "Show more buttons" "button"
When I click on "Table" "button"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around table"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 0 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I click on "Show more buttons" "button"
And I click on "Table" "button"
When I click on "Edit table" "link"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around table"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 1 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I select the text in the "Blog entry body" Atto editor
And I click on "Show more buttons" "button"
When I click on "Table" "button"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around table"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 1 | atto_table |
- | allowbordercolour | 0 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I click on "Show more buttons" "button"
And I click on "Table" "button"
When I click on "Edit table" "link"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should not exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around table"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 1 | atto_table |
- | allowbordercolour | 1 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I select the text in the "Blog entry body" Atto editor
And I click on "Show more buttons" "button"
When I click on "Table" "button"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "#FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around table"
Given the following config values are set as admin:
| config | value | plugin |
| allowborders | 1 | atto_table |
- | allowborderstyles | 1 | atto_table |
- | allowbordersize | 1 | atto_table |
- | allowbordercolour | 1 | atto_table |
| allowbackgroundcolour | 1 | atto_table |
| allowwidth | 1 | atto_table |
And I log in as "admin"
And I click on "Show more buttons" "button"
And I click on "Table" "button"
When I click on "Edit table" "link"
- Then ".moodle-dialogue-base .atto_form .borders" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .borderstyle" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordersize" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .bordercolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element" should exist
- Then ".moodle-dialogue-base .atto_form .customwidth" "css_element" should exist
And I click on "FFFFFF" "radio" in the ".moodle-dialogue-base .atto_form .backgroundcolour" "css_element"
And I set the field "Table width (in %)" to "100"
And I set the field "Borders" to "Around table"
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_table'; // Full name of the plugin (used for diagnostics).
var COMPONENT = 'atto_table',
DEFAULT = {
- BORDERSTYLE: 'inherit',
+ BORDERSTYLE: 'none',
BORDERWIDTH: '1'
},
DIALOGUE = {
'<option value="all">{{get_string "all" component}}' + '</option>' +
'</select>' +
'<br>' +
- '{{#if allowBorderStyles}}' +
- '<label for="{{elementid}}_atto_table_borderstyle" class="sameline">' +
- '{{get_string "borderstyles" component}}</label>' +
- '<select name="borderstyles" class="{{CSS.BORDERSTYLE}}" id="{{elementid}}_atto_table_borderstyle">' +
- '<option value="inherit">{{get_string "inherit" component}}</option>' +
- '{{#each borderStyles}}' +
- '<option value="' + '{{this}}' + '">' + '{{get_string this ../component}}' + '</option>' +
- '{{/each}}' +
- '</select>' +
- '<br>' +
- '{{/if}}' +
- '{{#if allowBorderSize}}' +
- '<label for="{{elementid}}_atto_table_bordersize" class="sameline">' +
- '{{get_string "bordersize" component}}</label>' +
- '<input name="bordersize" id="{{elementid}}_atto_table_bordersize" class="{{CSS.BORDERSIZE}}"' +
- 'type="number" value="1" size="8" min="1" max="50"/>' +
- '<label style="display: inline-block;">{{CSS.BORDERSIZEUNIT}}</label>' +
- '<br>' +
- '{{/if}}' +
- '{{#if allowBorderColour}}' +
- '<label for="{{elementid}}_atto_table_bordercolour" class="sameline">' +
- '{{get_string "bordercolour" component}}</label>' +
- '<div id="{{elementid}}_atto_table_bordercolour"' +
- 'class="{{CSS.BORDERCOLOUR}} {{CSS.AVAILABLECOLORS}}" size="1">' +
- '<label class="hideborder" for="{{../elementid}}_atto_table_bordercolour_-1"' +
- 'style="background-color:transparent;color:transparent">' +
-
- '<input id="{{../elementid}}_atto_table_bordercolour_-1"' +
- 'type="radio" name="borderColour" value="none" checked="checked"'+
- 'title="{{get_string "themedefault" component}}"></input>' +
-
- '{{get_string "themedefault" component}}' +
+ '<label for="{{elementid}}_atto_table_borderstyle" class="sameline">' +
+ '{{get_string "borderstyles" component}}</label>' +
+ '<select name="borderstyles" class="{{CSS.BORDERSTYLE}}" id="{{elementid}}_atto_table_borderstyle">' +
+ '{{#each borderStyles}}' +
+ '<option value="' + '{{this}}' + '">' + '{{get_string this ../component}}' + '</option>' +
+ '{{/each}}' +
+ '</select>' +
+ '<br>' +
+ '<label for="{{elementid}}_atto_table_bordersize" class="sameline">' +
+ '{{get_string "bordersize" component}}</label>' +
+ '<input name="bordersize" id="{{elementid}}_atto_table_bordersize" class="{{CSS.BORDERSIZE}}"' +
+ 'type="number" value="1" size="8" min="1" max="50"/>' +
+ '<label style="display: inline-block;">{{CSS.BORDERSIZEUNIT}}</label>' +
+ '<br>' +
+ '<label for="{{elementid}}_atto_table_bordercolour" class="sameline">' +
+ '{{get_string "bordercolour" component}}</label>' +
+ '<div id="{{elementid}}_atto_table_bordercolour"' +
+ 'class="{{CSS.BORDERCOLOUR}} {{CSS.AVAILABLECOLORS}}" size="1">' +
+ '<label class="hideborder" for="{{../elementid}}_atto_table_bordercolour_-1"' +
+ 'style="background-color:transparent;color:transparent">' +
+
+ '<input id="{{../elementid}}_atto_table_bordercolour_-1"' +
+ 'type="radio" name="borderColour" value="none" checked="checked"'+
+ 'title="{{get_string "themedefault" component}}"></input>' +
+
+ '{{get_string "themedefault" component}}' +
+ '</label>' +
+ '{{#each availableColours}}' +
+ '<label for="{{../elementid}}_atto_table_bordercolour_{{@index}}"' +
+ 'style="background-color:{{this}};color:{{this}}">' +
+
+ '<input id="{{../elementid}}_atto_table_bordercolour_{{@index}}"' +
+ 'type="radio" name="borderColour" value="' + '{{this}}' + '" title="{{this}}">' +
+
+ '{{this}}' +
'</label>' +
- '{{#each availableColours}}' +
- '<label for="{{../elementid}}_atto_table_bordercolour_{{@index}}"' +
- 'style="background-color:{{this}};color:{{this}}">' +
-
- '<input id="{{../elementid}}_atto_table_bordercolour_{{@index}}"' +
- 'type="radio" name="borderColour" value="' + '{{this}}' + '" title="{{this}}">' +
-
- '{{this}}' +
- '</label>' +
- '{{/each}}' +
- '</div>' +
- '<br>' +
- '{{/if}}' +
+ '{{/each}}' +
+ '</div>' +
+ '<br>' +
'{{/if}}' +
'{{#if allowBackgroundColour}}' +
'<label for="{{elementid}}_atto_table_backgroundcolour" class="sameline">' +
'{{#if allowWidth}}' +
'<label for="{{elementid}}_atto_table_width" class="sameline">' +
'{{get_string "width" component}}</label>' +
- '<input name="width" id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
+ '<input name="width" id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" ' +
+ 'type="number" min="0" max="100"/>' +
'<label style="display: inline-block;">{{CSS.WIDTHUNIT}}</label>' +
'<br>' +
'{{/if}}' +
nonedit: !edit,
allowStyling: this.get('allowStyling'),
allowBorders: allowBorders,
- allowBorderStyles: this.get('allowBorderStyles'),
borderStyles: this.get('borderStyles'),
- allowBorderSize: this.get('allowBorderSize'),
- allowBorderColour: this.get('allowBorderColour'),
allowBackgroundColour: this.get('allowBackgroundColour'),
availableColours: this.get('availableColors'),
allowWidth: this.get('allowWidth')
borderColour = tableForm.all('[name="borderColour"]'),
disabledValue = 'removeAttribute';
+ if (!enableBorders) {
+ return;
+ }
+
if (enableBorders.get('value') === 'default') {
disabledValue = 'setAttribute';
}
value: true
},
- /**
- * Whether or not to allow style of borders
- *
- * @attribute allowBorderStyle
- * @type Boolean
- */
- allowBorderStyles: {
- value: true
- },
-
/**
* What border styles to allow
*
*/
borderStyles: {
value: [
+ 'none',
'solid',
'dashed',
'dotted'
- ],
- setter: function(value) {
- if (value) {
- return value.replace(/ /g,'').split(',');
- } else {
- // Not a valid value - revert to default value.
- return Y.Attribute.INVALID_VALUE;
- }
- }
- },
-
- /**
- * Whether or not to allow border size
- *
- * @attribute allowBorderSize
- * @type Boolean
- */
- allowBorderSize: {
- value: true
- },
-
- /**
- * Whether or not to allow colourizing borders
- *
- * @attribute allowBorderColours
- * @type Boolean
- */
- allowBorderColour: {
- value: true
+ ]
},
/**
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX).
-$plugin->requires = 2015050500; // Requires this Moodle version.
+$plugin->version = 2015111600; // The current plugin version (Date: YYYYMMDDXX).
+$plugin->requires = 2015111000; // Requires this Moodle version.
$plugin->component = 'atto_title'; // Full name of the plugin (used for diagnostics).