MDL-38509 Implement the plugin ZIP package validator
authorDavid Mudrák <david@moodle.com>
Wed, 20 Mar 2013 16:08:29 +0000 (17:08 +0100)
committerDavid Mudrák <david@moodle.com>
Thu, 28 Mar 2013 10:54:06 +0000 (11:54 +0100)
commita4fcf56f0a5643497ad1521fad304ebb7ba23fcf
tree2f2215f735c5408ef1f098dc52977634260dbc13
parentddab904ba800d0aa7d7ae824c0847aeca394e334
MDL-38509 Implement the plugin ZIP package validator

The validator code contains (modified) fragments of the
local_plugins_archive_validator class copyrighted by Marina Glancy that
is part of the local_plugins plugin. It operates over an extracted
copy of the ZIP file.
26 files changed:
admin/tool/installaddon/classes/validator.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/emptydir/emptydir/README.txt [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/github/moodle-repository_mahara-master/lang/en/repository_mahara.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/github/moodle-repository_mahara-master/version.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/installed/greenbar/index.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/installed/greenbar/lang/en/local_greenbar.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/installed/greenbar/version.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/multidir/one/version.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/multidir/two/README.txt [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nolang/bah/index.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nolang/bah/lang/en/bah.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nolang/bah/lang/en/bleh.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nolang/bah/lib.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nolang/bah/version.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nolang/bah/view.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/noversionmod/noversion/lang/en/noversion.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/noversiontheme/noversion/lang/en/theme_noversion.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nowrapdir/index.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nowrapdir/lang/en/foo.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/nowrapdir/version.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/plugindir/foobar/index.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/plugindir/foobar/lang/en/local_foobar.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/plugindir/foobar/version.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/versionphp/version1.php [new file with mode: 0644]
admin/tool/installaddon/tests/fixtures/writable/local/greenbar/README.txt [new file with mode: 0644]
admin/tool/installaddon/tests/validator_test.php [new file with mode: 0644]