Moodle plugins directory: Sharing Cart | Moodle.org
Sharing Cart
Blocks ::: block_sharing_cart
Maintained by Don Hinkelman, Tue Korsgaard
**Sharing Cart 4.4, release 3 is from 5 February 2024. Requires Moodle 4.2 and PHP 8.0** Download here or go to github: https://github.com/donhinkelman/moodle-block_sharing_cart/. Sorry for any confusion: Sharing 4.2 and Sharing Cart 4.3 were skipped here on the Plugins Database. And Sharing 4.4 was an overly ambitious name--it is actually for Moodle 4.3, and requires PHP 8.0.
The Sharing Cart is a block that enables sharing of Moodle content (resources, activities) between multiple courses on your site.
Latest release:
5125 sites
1k downloads
190 fans
Current versions available: 6
New version 4.5 is due soon (end of May 2024) which is a complete rework of the plugin. Sorry, but any bugs associated with current release will not be processed. We encourage you the retest the issue after the release of the new version and resubmit the issue.
Sharing cart allows the teacher to copy sections and individual activities into a clipboard (the 'sharing cart'), so the teacher can easily move activities from one course to another without having to go into the "Reuse course" function. Another common use case for the sharing is to created shared teachers course which a teacher can easily copy her best activities into and and other teaches can reuse those in his own courses. In addition, items can be collected and saved on the Sharing Cart indefinitely, serving as a library of frequently used course items available for duplication.
The sharing cart is currently maintained by the premium Moodle partner moxis. If you have any specific feature request. feel free to reach out on support@moxis.dk. Don Hinkelman from the Moodle Association of Japan is handling bug discussion, testing and user assistance in either in this forum or the github bug tracker. Please bear in mind this a community-driven plugin with limited resources.
Sharing Cart 3.0 was submitted to Remote Learner for independent vetting and passed May 2016. In versions 3.x, new interface programmed by moxis was added, in addition to 'Section Copy' feature and Postgres compatibility (co-funded by Ulm University, Germany and Sapporo Gakuin University, Japan). Thanks also to Ponlawat Weerapanpisit and other contributors for programming assistance.
Brought to you with ❤️ from
Contributors
Don Hinkelman (Lead maintainer)
Tue Korsgaard: Maintainer
VERSION2 INC: Original Programming Team
Please login to view contributors details and/or to contact them
Error
Exception - syntax error, unexpected 'moodle_database' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 39 of /blocks/sharing_cart/classes/repositories/course_repository.php: ParseError thrown
line ? of unknownfile: call to core_component::classloader()
line 77 of /blocks/sharing_cart/classes/controller.php: call to spl_autoload_call()
line 84 of /blocks/sharing_cart/block_sharing_cart.php: call to block_sharing_cart\controller->render_tree()
line 341 of /blocks/moodleblock.class.php: call to block_sharing_cart->get_content()
line 235 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 3980 of /lib/outputrenderers.php: call to block_manager->region_has_content()
line 40 of /theme/boost/layout/columns2.php: call to core_renderer->blocks()
line 1396 of /lib/outputrenderers.php: call to include()
line 1326 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line 245 of /course/view.php: call to core_renderer->header()
line 32 of /blocks/sharing_cart/classes/files/cleaner.php: ParseError thrown
line ? of unknownfile: call to core_component::classloader()
line 33 of /blocks/sharing_cart/lib.php: call to spl_autoload_call()
line 405 of /lib/filestorage/stored_file.php: call to block_sharing_cart_after_file_deleted()
line 1187 of /lib/filelib.php: call to stored_file->delete()
line 275 of /lib/filelib.php: call to file_save_draft_area_files()
line 221 of /mod/assign/submission/onlinetext/locallib.php: call to file_postupdate_standard_editor()
line 7491 of /mod/assign/locallib.php: call to assign_submission_onlinetext->save()
line 7576 of /mod/assign/locallib.php: call to assign->save_submission()
line 493 of /mod/assign/locallib.php: call to assign->process_save_submission()
line 55 of /mod/assign/view.php: call to assign->view()
Moodle only outputs this generic message:
Exception syntax error, unexpected '\' (T_NS_SEPARATOR), expecting function (T_FUNCTION) or const (T_CONST)
I had to disable Sharing Cart to prevent it from not allowing students to add files (I couldn't even add it in assignments/quizzes as the admin). The plugin even reports two instances or the block being present in two courses; except the plugin is NOT present in those two courses. Other courses are unaffected by this.
Thank you for the plugin.
We have an issue, whenever you choose to copy a quiz between two courses, it will copy as well all the question bank with it.
Is there any fix for that.
Thank you for your support.
I have same issue as Elias Sfeir mentioned. Whenever choose to copy a quiz between courses, it will copy all the question bank with it. Any idea to resolve?
I looked at the code of the plugin, and found the "is_userdata_copyable" function in the file "moodle-block_sharing_cart/classes/controller.php" file.
The following capabilities are mentioned in this function:
moodle/backup:userinfo
moodle/backup:anonymise
moodle/restore:userinfo