# 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.
} else if ($blocksettings instanceof admin_settingpage) {
$settings = '<a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=blocksetting'.$block->name.'">'.$strsettings.'</a>';
} else {
- $settings = '<a href="block.php?block='.$blockid.'">'.$strsettings.'</a>';
+ debugging('Warning: block_'.$block->name.' returns true in has_config() but does not provide a settings.php file',
+ DEBUG_DEVELOPER);
}
}
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);
$sitelevel = $this->page->course->id == SITEID || $this->page->context->contextlevel < CONTEXT_COURSE;
- $onlineusers = new fetcher($currentgroup, $now, $timetoshowusers, $sitelevel,
- $this->page->context, $this->page->course->id);
+ $onlineusers = new fetcher($currentgroup, $now, $timetoshowusers, $this->page->context,
+ $sitelevel, $this->page->course->id);
//Calculate minutes
$minutes = floor($timetoshowusers/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 = '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)
return true;
}
- public function has_config() {
- return true;
- }
-
public function applicable_formats() {
return array('all' => true);
}
$this->config->numberoftags = 80;
}
- if (empty($this->config->tagtype)) {
- $this->config->tagtype = '';
- }
-
if ($this->content !== NULL) {
return $this->content;
}
}
$mform->addElement('select', 'config_numberoftags', get_string('numberoftags', 'blog'), $numberoftags);
$mform->setDefault('config_numberoftags', 80);
-
- $defaults = array('default'=>'default', 'official'=>'official', ''=>'both');
- $mform->addElement('select', 'config_tagtype', get_string('defaultdisplay', 'block_tags'), $defaults);
- $mform->setDefault('config_tagtype', '');
}
}
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)
$newsforumcontext = context_module::instance($newsforumcm->id, MUST_EXIST);
$forumname = format_string($newsforum->name, true, array('context' => $newsforumcontext));
- echo html_writer::link('#',
+ echo html_writer::link('#skipsitenews',
get_string('skipa', 'access', core_text::strtolower(strip_tags($forumname))),
- array('data-target' => '#skipsitenews', 'class' => 'skip-block skip'));
+ array('class' => 'skip-block skip'));
// Wraps site news forum in div container.
echo html_writer::start_tag('div', array('id' => 'site-news-forum'));
// End site news forum div container.
echo html_writer::end_tag('div');
- echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipsitenews', 'tabindex' => '-1'));
+ echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipsitenews'));
}
break;
case FRONTPAGEENROLLEDCOURSELIST:
$mycourseshtml = $courserenderer->frontpage_my_courses();
if (!empty($mycourseshtml)) {
- echo html_writer::link('#',
+ echo html_writer::link('#skipmycourses',
get_string('skipa', 'access', core_text::strtolower(get_string('mycourses'))),
- array('data-target' => '#skipmycourses', 'class' => 'skip skip-block'));
+ array('class' => 'skip skip-block'));
// Wrap frontpage course list in div container.
echo html_writer::start_tag('div', array('id' => 'frontpage-course-list'));
// End frontpage course list div container.
echo html_writer::end_tag('div');
- echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipmycourses', 'tabindex' => '-1'));
+ echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipmycourses'));
break;
}
// No "break" here. If there are no enrolled courses - continue to 'Available courses'.
case FRONTPAGEALLCOURSELIST:
$availablecourseshtml = $courserenderer->frontpage_available_courses();
if (!empty($availablecourseshtml)) {
- echo html_writer::link('#',
+ echo html_writer::link('#skipavailablecourses',
get_string('skipa', 'access', core_text::strtolower(get_string('availablecourses'))),
- array('data-target' => '#skipavailablecourses', 'class' => 'skip skip-block'));
+ array('class' => 'skip skip-block'));
// Wrap frontpage course list in div container.
echo html_writer::start_tag('div', array('id' => 'frontpage-course-list'));
// End frontpage course list div container.
echo html_writer::end_tag('div');
- echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipavailablecourses', 'tabindex' => '-1'));
+ echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipavailablecourses'));
}
break;
case FRONTPAGECATEGORYNAMES:
- echo html_writer::link('#',
+ echo html_writer::link('#skipcategories',
get_string('skipa', 'access', core_text::strtolower(get_string('categories'))),
- array('data-target' => '#skipcategories', 'class' => 'skip skip-block'));
+ array('class' => 'skip skip-block'));
// Wrap frontpage category names in div container.
echo html_writer::start_tag('div', array('id' => 'frontpage-category-names'));
// End frontpage category names div container.
echo html_writer::end_tag('div');
- echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipcategories', 'tabindex' => '-1'));
+ echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipcategories'));
break;
case FRONTPAGECATEGORYCOMBO:
- echo html_writer::link('#',
+ echo html_writer::link('#skipcourses',
get_string('skipa', 'access', core_text::strtolower(get_string('courses'))),
- array('data-target' => '#skipcourses', 'class' => 'skip skip-block'));
+ array('class' => 'skip skip-block'));
// Wrap frontpage category combo in div container.
echo html_writer::start_tag('div', array('id' => 'frontpage-category-combo'));
// End frontpage category combo div container.
echo html_writer::end_tag('div');
- echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipcourses', 'tabindex' => '-1'));
+ echo html_writer::tag('span', '', array('class' => 'skip-block-to', 'id' => 'skipcourses'));
break;
case FRONTPAGECOURSESEARCH:
$string['cliyesnoprompt'] = 'typ j (ja) of n (nee)';
$string['environmentrequireinstall'] = 'moet geïnstalleerd/ingeschakeld zijn';
$string['environmentrequireversion'] = 'versie {$a->needed} is vereist en je gebruikt nu versie {$a->current}';
+$string['upgradekeyset'] = 'Upgrade-sleutel (leeg laten om er geen in te stellen)';
defined('MOODLE_INTERNAL') || die();
+$string['cannotcreatedboninstall'] = '<p>Nu se poate crea baza de date.</p>
+<p>Baza de date specificată nu există iar utilizatorul nu are permisiunea de a crea baza de date.</p>
+<p>Admistratorul site-ului trebuie să verfice configurarea bazei de date.</p>';
$string['cannotcreatelangdir'] = 'Nu se poate crea un director lang';
$string['cannotcreatetempdir'] = 'Nu se poate crea director temporar';
$string['cannotdownloadcomponents'] = 'Nu se pot descărca componente';
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';
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).