benbowler / paypal-donations-block Goto Github PK
View Code? Open in Web Editor NEWThis project forked from moodlehq/moodle-mod_newmodule
New Moodle module template
Home Page: http://moodle.org
This project forked from moodlehq/moodle-mod_newmodule
New Moodle module template
Home Page: http://moodle.org
$Id$ HOW TO STARTUP WITH A NEW ACTIVITY MODULE ========================================= The following steps should get you up and running with this module template code. As you are able to read this file, you have probably managed to get this source code from either the CVS repository or from the zip archive. Well done! Read this README file. Make sure you have read this file :-) Rename the NEWMODULE folder into a lower case name of your module. Make sure your name is not used by any standard or contributed modules (see http://cvs.moodle.org/contrib/plugins/mod/ for the list of currently contributed modules). Edit all the files in this directory and its subdirectories and change all the instances of string "newmodule" to your new module name (eg "widget"). Rename the file lang/en_utf8/newmodule.php to widget.php or whatever your module name is. Place the widget folder into the /mod folder of your development moodle directory. Go to http://localhost/your/moodle/admin/xmldb/ directory. Try to not to visit the main admin page (Notifications) so the module is not installed yet. If it gets installed accidentaly, uninstall it from the database via Manage activities admin page. You will probably uninstall and reinstall the module quite often during the early stages of the development. In XMLDB editor, add all tables, fields and statements needed to implement the module features. See http://docs.moodle.org/en/Development:Using_XMLDB for more information. Do not forget to use the [Save] link at the XMLDB main page so the changes are written into install.xml file. If the link is not active, the web server process (eg. apache user) does not have permission to write into mod/widget/db/install.xml file Visit the admin Notifications page (admin/index.php). The module tables should get installed. You can go to Modules > Activities in the Site Administration block. You should find that this newmodule has been added to the list of recognized modules. You may now proceed to run your own code in an attempt to develop for moodle. Good luck with that. For help with developing code for moodle, visit the "Activity modules" developers forum in the online course called "Using Moodle" at http://moodle.org. What to do next --------------- Go through the lib.php, index.php and view.php files. You will probably want to add some capabilities regarding your module. Look at db/access.php. Note that you have to increase the version number defined in version.php to let Moodle update the capabilities information. If you do any change to the database structure (adding a field, changing the field definition etc.) use XMLDB editor again. Use the PHP code generated by XMLDB and push it into db/upgrade.php. Save the change into install.xml (for fresh installations), increase the version number and go to admin/index.php again. During upgrade, Moodle calls a function in db/upgrade.php to perform the DB changes. Credits for work on this NEWMODULE template ------------------------------------------- Martin Dougiamas for the original work Chris B Stones (http://www.welcometochrisworld.com) for revision of the code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.