moodle/lib
David Mudrák f2d8ed45e3 MDL-49329 admin: Introduce new \core\update\validator class
This is not really new class. Originally, the validator was implemented
in the scope of the tool_installaddon plugin. But we need its features
in other parts at the core level (e.g. during the upgrade to validate
available missing dependencies or available updates). Looking back, it
was a mistake to have it implemented at the plugin level rather than the
core level.

So this patch moves the tool_installaddon_validator class to
\core\update\validator class, together with associated unit tests,
fixture files and strings. There were changes made in the
tool_installaddon to make use of this new class instead of the old one.

This is a great step towards the bright future, hopefully there won't be
many regressions.

AMOS BEGIN
 MOV [validationmsg_componentmatch,tool_installaddon],[validationmsg_componentmatch,core_plugin]
 MOV [validationmsg_componentmismatchname,tool_installaddon],[validationmsg_componentmismatchname,core_plugin]
 MOV [validationmsg_componentmismatchname_help,tool_installaddon],[validationmsg_componentmismatchname_help,core_plugin]
 MOV [validationmsg_componentmismatchname_info,tool_installaddon],[validationmsg_componentmismatchname_info,core_plugin]
 MOV [validationmsg_componentmismatchtype,tool_installaddon],[validationmsg_componentmismatchtype,core_plugin]
 MOV [validationmsg_componentmismatchtype_info,tool_installaddon],[validationmsg_componentmismatchtype_info,core_plugin]
 MOV [validationmsg_filenotexists,tool_installaddon],[validationmsg_filenotexists,core_plugin]
 MOV [validationmsg_filesnumber,tool_installaddon],[validationmsg_filesnumber,core_plugin]
 MOV [validationmsg_filestatus,tool_installaddon],[validationmsg_filestatus,core_plugin]
 MOV [validationmsg_filestatus_info,tool_installaddon],[validationmsg_filestatus_info,core_plugin]
 MOV [validationmsg_foundlangfile,tool_installaddon],[validationmsg_foundlangfile,core_plugin]
 MOV [validationmsg_maturity,tool_installaddon],[validationmsg_maturity,core_plugin]
 MOV [validationmsg_maturity_help,tool_installaddon],[validationmsg_maturity_help,core_plugin]
 MOV [validationmsg_missingcomponent,tool_installaddon],[validationmsg_missingcomponent,core_plugin]
 MOV [validationmsg_missingcomponent_help,tool_installaddon],[validationmsg_missingcomponent_help,core_plugin]
 MOV [validationmsg_missingcomponent_link,tool_installaddon],[validationmsg_missingcomponent_link,core_plugin]
 MOV [validationmsg_missingexpectedlangenfile,tool_installaddon],[validationmsg_missingexpectedlangenfile,core_plugin]
 MOV [validationmsg_missingexpectedlangenfile_info,tool_installaddon],[validationmsg_missingexpectedlangenfile_info,core_plugin]
 MOV [validationmsg_missinglangenfile,tool_installaddon],[validationmsg_missinglangenfile,core_plugin]
 MOV [validationmsg_missinglangenfolder,tool_installaddon],[validationmsg_missinglangenfolder,core_plugin]
 MOV [validationmsg_missingversion,tool_installaddon],[validationmsg_missingversion,core_plugin]
 MOV [validationmsg_missingversionphp,tool_installaddon],[validationmsg_missingversionphp,core_plugin]
 MOV [validationmsg_multiplelangenfiles,tool_installaddon],[validationmsg_multiplelangenfiles,core_plugin]
 MOV [validationmsg_onedir,tool_installaddon],[validationmsg_onedir,core_plugin]
 MOV [validationmsg_onedir_help,tool_installaddon],[validationmsg_onedir_help,core_plugin]
 MOV [validationmsg_pathwritable,tool_installaddon],[validationmsg_pathwritable,core_plugin]
 MOV [validationmsg_pluginversion,tool_installaddon],[validationmsg_pluginversion,core_plugin]
 MOV [validationmsg_release,tool_installaddon],[validationmsg_release,core_plugin]
 MOV [validationmsg_requiresmoodle,tool_installaddon],[validationmsg_requiresmoodle,core_plugin]
 MOV [validationmsg_rootdir,tool_installaddon],[validationmsg_rootdir,core_plugin]
 MOV [validationmsg_rootdir_help,tool_installaddon],[validationmsg_rootdir_help,core_plugin]
 MOV [validationmsg_rootdirinvalid,tool_installaddon],[validationmsg_rootdirinvalid,core_plugin]
 MOV [validationmsg_rootdirinvalid_help,tool_installaddon],[validationmsg_rootdirinvalid_help,core_plugin]
 MOV [validationmsg_targetexists,tool_installaddon],[validationmsg_targetexists,core_plugin]
 MOV [validationmsg_targetexists_help,tool_installaddon],[validationmsg_targetexists_help,core_plugin]
 MOV [validationmsg_unknowntype,tool_installaddon],[validationmsg_unknowntype,core_plugin]
 MOV [validationmsg_versionphpsyntax,tool_installaddon],[validationmsg_versionphpsyntax,core_plugin]
 MOV [validationmsglevel_debug,tool_installaddon],[validationmsglevel_debug,core_plugin]
 MOV [validationmsglevel_error,tool_installaddon],[validationmsglevel_error,core_plugin]
 MOV [validationmsglevel_info,tool_installaddon],[validationmsglevel_info,core_plugin]
 MOV [validationmsglevel_warning,tool_installaddon],[validationmsglevel_warning,core_plugin]
AMOS END
2015-10-08 23:32:03 +02:00
..
adodb MDL-50307 auth_db: Fix associative fetching in ADODB 2.19 2015-08-11 12:11:43 +08:00
ajax MDL-50783 ajax: Add specific check for NO_MOODLE_COOKIES 2015-09-14 15:10:39 +08:00
alfresco MDL-41975 repository_alfresco: Updating details about Alfresco URL and timestamps 2014-04-16 13:47:24 +08:00
amd Merge branch 'MDL-51539-master' of git://github.com/damyon/moodle 2015-10-06 16:32:02 +01:00
behat MDL-50919 behat: Step for keypress event in behat 2015-09-02 14:15:09 +08:00
bennu Merge branch 'MDL-49561_master' of git://github.com/markn86/moodle 2015-09-16 09:57:22 +08:00
classes MDL-49329 admin: Introduce new \core\update\validator class 2015-10-08 23:32:03 +02:00
db Merge branch 'MDL-51624-master' of git://github.com/jleyva/moodle 2015-10-08 01:18:39 +02:00
ddl MDL-49723 tool: deprecate guess_antolope_row_size method 2015-04-10 09:33:35 +08:00
dml MDL-49482 sqlsrv: Implement support of Offset/Fetch in SQL Server 2012+ 2015-09-24 20:07:51 +02:00
dtl MDL-45985 ddl: improve check_database_schema method in database_manager 2014-06-17 16:53:36 +12:00
editor Merge branch 'MDL-51228-master' of https://github.com/dthies/moodle 2015-10-06 16:31:34 +01:00
evalmath
external MDL-50783 Ajax: Configure how to call a webservice through db/service.php 2015-09-14 15:10:21 +08:00
filebrowser MDL-46927 core_files: fixed issue with system course restores 2015-06-01 23:08:40 -07:00
filestorage MDL-49627 core: Update uses of generate_image_thumbnail 2015-04-01 11:05:19 +08:00
flowplayer
form MDL-50685 core_form: disable hidden options, don't just hide 2015-09-11 15:08:37 +08:00
google MDL-51531 libraries: Upgrade google libraries to 1.1.5 2015-09-30 13:28:19 +08:00
grade MDL-51514 gradebook: Optimize set_usedinaggregation query for MySQL 2015-10-02 11:28:15 -06:00
horde MDL-51537 libraries: update horde library to 5.2.7 2015-10-05 09:58:44 +08:00
htmlpurifier NOBUG: Fixed file access permissions 2015-10-08 11:36:35 +01:00
jabber
jquery MDL-51535 libraries: Update Jquery to 1.11.3 2015-10-04 21:54:49 -05:00
lessphp MDL-51530 libraries: Upgrade less.php to 1.7.0.9 2015-10-02 05:03:40 +00:00
markdown MDL-49528 libraries: Upgrade Markdown to 1.5.0 2015-03-30 11:33:05 +08:00
minify MDL-51533 minify: Update to 2.2.1 2015-09-30 11:41:08 +08:00
mustache MDL-50150 Mustache: Update to 2.9.0 version of mustache.php 2015-08-20 11:44:56 +08:00
password_compat MDL-49520 libraries: Update password_compat library 2015-03-26 10:05:00 +08:00
pear MDL-51523 core: upgraded Auth_RADIUS to 1.1.0 2015-10-04 13:53:17 -07:00
phpexcel MDL-51521 lib: Import latest PHPExcel 1.8.1 2015-09-29 13:23:52 +08:00
phpmailer MDL-51526 mail: Import PHPMailer 5.2.13 2015-10-07 13:42:40 +08:00
phpunit MDL-51266 unittest: replaced low level phpunit_util calls 2015-09-23 15:42:48 +08:00
portfolio
requirejs Merge branch 'MDL-51535-master' of git://github.com/junpataleta/moodle 2015-10-06 16:32:02 +01:00
simplepie MDL-50049 deprecation: Extra minor fixes. 2015-07-10 01:59:31 +02:00
tcpdf NOBUG: Fixed file access permissions 2015-10-08 11:36:35 +01:00
templates Merge branch 'MDL-50983-master' of git://github.com/junpataleta/moodle 2015-09-15 15:25:46 +08:00
testing MDL-51636 core_tag: allow setting tags in generators 2015-10-04 22:25:37 +08:00
tests MDL-49329 admin: Introduce new \core\update\validator class 2015-10-08 23:32:03 +02:00
typo3 MDL-47301 libraries: Patch Typo3 for Moodle's use 2014-09-30 17:32:35 +08:00
xhprof
xmldb
yui Merge branch 'MDL-51292-master' of git://github.com/cameron1729/moodle 2015-09-30 17:32:57 +02:00
yuilib MDL-39190 Javascript: Pop-up calendar days of week wrong 2014-09-23 16:50:58 +12:00
zend
accesslib.php MDL-41042 coursecat: reset course contacts cache more often 2015-10-07 10:23:03 +08:00
adminlib.php Merge branch 'wip-MDL-41042-master' of git://github.com/marinaglancy/moodle 2015-10-07 10:25:56 +08:00
authlib.php MDL-51217 auth: check if recaptcha enabled for current plugin 2015-09-16 15:30:04 +08:00
badgeslib.php MDL-51390 badges: Switch backpack URL to use HTTPS 2015-09-28 10:37:03 +01:00
blocklib.php MDL-46878 my: Allow admins to reset everyone's dashboard 2015-09-18 11:40:09 +08:00
boxlib.php
cacert.pem
cacert.txt
clilib.php MDL-51423 clilib: Fix the hard-coded English text with proper string 2015-09-17 21:12:46 +02:00
completionlib.php MDL-46294 completion: Final deprecation of get_incomplete_criteria 2015-06-03 07:36:40 +05:30
componentlib.class.php MDL-49008 lang: Revert unnecessary rename warning 2015-02-25 08:54:45 +08:00
conditionlib.php MDL-44985 libraries: Final deprecation of conditional classes and apis 2014-12-10 12:20:37 +05:30
configonlylib.php MDL-49167 YUI: Fix for theme/yui_combo.php and $CFG->yuislashargs 2015-02-16 11:26:31 +08:00
cookies.js
coursecatlib.php MDL-41042 coursecat: reset course contacts cache more often 2015-10-07 10:23:03 +08:00
cronlib.php MDL-51330 Cron: In log, scheduled tasks don't show component 2015-09-07 18:40:05 +01:00
csslib.php MDL-45545 csslib: Chunking handles commas in media query definitions 2014-05-20 12:21:45 +08:00
csvlib.class.php MDL-47649 csvlib: must not leave files open 2014-10-14 10:36:25 +01:00
customcheckslib.php
datalib.php MDL-50509 datalib: Fix the typo in the variable name 2015-06-08 11:14:08 +02:00
ddllib.php MDL-50049 deprecation: Extra minor fixes. 2015-07-10 01:59:31 +02:00
default.ttf
deprecatedlib.php Merge branch 'wip-MDL-51132-master' of https://github.com/marinaglancy/moodle 2015-09-08 10:46:38 +01:00
dmllib.php MDL-50049 deprecation: Extra minor fixes. 2015-07-10 01:59:31 +02:00
dtllib.php
editorlib.php MDL-51179 editor_atto: Updating since tag to only 3.0 2015-09-01 16:00:32 +08:00
emptyfile.php
enrollib.php MDL-41042 coursecat: reset course contacts cache more often 2015-10-07 10:23:03 +08:00
environmentlib.php MDL-50624 environment: add PHP7 as unsupported version 2015-08-03 00:58:50 +00:00
eventslib.php
excellib.class.php MDL-28484 core_lib: Add function for https detection 2014-10-03 13:02:29 +01:00
externallib.php Merge branch 'MDL-51213-master' of git://github.com/damyon/moodle 2015-09-15 17:28:34 +08:00
filelib.php MDL-44828 filelib: Fix open error for force-downloaded files in mobile 2015-08-14 09:54:20 +08:00
filterlib.php MDL-50491 filters: Some final touches. 2015-06-18 04:11:24 +02:00
flickrlib.php MDL-45462 flickr: Requests are now done over HTTPS 2014-05-08 11:27:36 +08:00
formslib.php MDL-50852 formslib: Fixed client-side form validation problem. 2015-09-09 15:35:01 +08:00
gdlib.php MDL-50041 gdlib: Badges need PNG files from process_new_icon() 2015-04-29 18:50:20 +08:00
googleapi.php MDL-49684 timezones: rewrite timezone support 2015-04-06 13:53:51 +12:00
gradelib.php MDL-49332 gradebook: Raise time limit if we get into regrade 2015-03-05 10:09:40 -05:00
graphlib.php MDL-19270 - Quiz graph - Fix reverse display of Hebrew legend text in RTL mode 2014-07-09 14:57:31 +03:00
grouplib.php MDL-49314 groups: New API function groups_user_groups_visible 2015-04-01 10:19:26 +02:00
htaccess
html2text.php
html2text_readme.txt
index.html
installlib.php MDL-51261 admin: Add option to define upgradekey via cli installer 2015-09-24 21:02:33 +02:00
javascript-static.js MDL-49811 lib: Added js to skiplinks 2015-10-05 06:17:58 -05:00
javascript.php MDL-46775: Fix call to unavailable function when loading an invalid JS file 2014-08-12 14:06:37 +12:00
jslib.php
ldaplib.php MDL-47004 LDAP: improved the default objectClass setting for AD. 2015-04-15 23:53:35 +02:00
lexer.php
licenselib.php MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
listlib.php
mathslib.php
medialib.php MDL-46398 medialib : Change media player ranks 2015-07-24 15:54:45 +08:00
messagelib.php MDL-48212 messages: support the new class in message apis 2015-01-26 08:15:33 +05:30
modinfolib.php MDL-50892 mod: allow activity to have name '0' 2015-09-11 10:51:52 +08:00
moodlelib.php MDL-49189 auth: Map data to profile fields with uppercase shortnames 2015-10-03 06:58:46 -04:00
myprofilelib.php MDL-50917 navigation: Allow users with permission to access preferences. 2015-09-22 10:57:51 +08:00
navigationlib.php Merge branch 'MDL-51107-master' of git://github.com/FMCorz/moodle 2015-09-22 15:11:10 +01:00
oauthlib.php
odslib.class.php
outputactions.php
outputcomponents.php MDL-51501 themes: pix_icon should not include empty alt tags 2015-09-22 17:20:37 -04:00
outputfactories.php MDL-50085 output: Remove component and subtype from renderer 2015-05-05 03:19:47 +02:00
outputlib.php MDL-51184 themes: correctly check $CFG->svgicons 2015-08-24 11:06:24 +08:00
outputrenderers.php Merge branch 'MDL-49811_master' of git://github.com/jinhofer/moodle 2015-10-06 16:26:54 +01:00
outputrequirementslib.php MDL-49811 lib: Added js to skiplinks 2015-10-05 06:17:58 -05:00
pagelib.php MDL-35148 themes: Updated checks deciding when mobile themes are used 2015-07-28 10:59:18 +08:00
pdflib.php MDL-47333 fix support for custom fonts in tcpdf 2014-09-26 13:58:30 +12:00
plagiarismlib.php MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
portfoliolib.php MDL-45256 portfolio: Do not require strict XML when parsing content 2014-04-29 17:43:44 +08:00
questionlib.php MDL-47787 course: Added question delete to cm delete. 2015-06-25 16:35:22 -04:00
recaptchalib.php
requirejs.php MDL-49046 javascript: Add support for AMD modules and jquery. 2015-02-23 16:23:10 +08:00
resourcelib.php MDL-47995 lib: encode title properly, before additing it to image title 2015-06-04 11:13:00 +08:00
rsslib.php MDL-50641 rss: fix front page rss links 2015-08-26 08:08:43 +01:00
searchlib.php MDL-48939 core: Depreacte search_generate_text_SQL 2015-01-22 15:10:00 +08:00
sessionkeepalive_ajax.php MDL-44642 session: Remove 403 from require_sesskey() 2014-12-16 10:18:21 +08:00
sessionlib.php MDL-44642 session: Remove 403 from require_sesskey() 2014-12-16 10:18:21 +08:00
setup.php MDL-49684 timezones: rewrite timezone support 2015-04-06 13:53:51 +12:00
setuplib.php MDL-50891 useragent: Move web crawler checks to useragent class 2015-08-28 14:31:51 +08:00
soaplib.php
statslib.php MDL-49684 timezones: rewrite timezone support 2015-04-06 13:53:51 +12:00
tablelib.php MDL-51315 tablelib: Only display table preferences if necessary. 2015-09-29 14:57:19 +08:00
thirdpartylibs.xml Merge branch 'MDL-51523_master' of git://github.com/markn86/moodle 2015-10-08 11:30:54 +01:00
tokeniserlib.php
upgrade.txt Merge branch 'MDL-51531-master' of git://github.com/damyon/moodle 2015-10-07 16:39:13 +01:00
upgradelib.php MDL-51261 admin: Support upgrade key requirement on the site upgrade 2015-09-24 21:02:33 +02:00
uploadlib.php MDL-44260 uplodate: move deprecated functions to deprecatedlib 2014-12-22 15:07:59 +00:00
validateurlsyntax.php
webdavlib.php
weblib.php Merge branch 'MDL-51213-master' of git://github.com/damyon/moodle 2015-09-15 17:28:34 +08:00
wiki_to_markdown.php
womenslib.php
wordlist.txt MDL-47050 core_wordlist: Updated wordlist to include only animals. 2014-11-04 09:03:08 +13:00
xhtml.xsl
xmlize.php
xsendfilelib.php