User objects are integrated with any profiles attached to the user. At present, profiles are supported via the content_profile module, but support for the core profile module is planned. Other additions will include classes for File, Image, Vocabulary and Role.
This module is for module developers (like myself) who need to write programs that work with data models built in CCK. It makes the code much easier to write, much more readable, and faster. Lazy-loading is implemented in the base Node class such that the full node is not loaded unless necessary. This can lead to significant performance improvements when working with large numbers of nodes.
To the best of my knowledge this module does not replicate any existing work. It's the first module that I've prepared for contribution, and would like to see it evolve. I am also planning a D7 version.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | select_province-7.x-1.x.tar_.gz | 1.41 KB | mossy2100 |
| #5 | classes.zip | 101.38 KB | mossy2100 |
| #1 | classes_module.zip | 51.54 KB | mossy2100 |
Comments
Comment #1
mossy2100Attached is the first uploaded version of the classes module, which autogenerates PHP class files for Node, User, Term, DrupalDateTime, DateTimeRange, and for any or all content types.
Comment #2
avpadernoHello, and thank you for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.
Comment #3
mossy2100Thanks kiamlaluno, looking forward to hearing the feedback.
Comment #4
Scyther commentedPlease read http://drupal.org/coding-standards and the use http://drupal.org/project/coder to check your code and correct it.
Comment #5
mossy2100Thanks Scyther
This is done now. The only thing I've retained that coder mentions is substr() instead of drupal_substr(), as it seems substr() is preferred (safer/faster) when the offsets are known.
The attached file contains the latest version of the module. Most changes since the previous upload are improvements to the DrupalDateTime class.
Can someone please tell me, is there a way I can be notified by email when anyone comments on this post?
Thanks!
Mossy
Comment #6
mossy2100Hi, please tell me what else I have to do to contrib this module so people can start using it?
Thanks,
Shaun
Comment #7
Scyther commented1. Don't put "< p >" inside t().
2. No, no, no, not a good way.
Look at this http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ad...
3. Remove commented code.
4. Put the outputed text into t(), "Yes", "No" and "Generate".
5. drupal_add_js() instead!
6. Missing CVS header in classes.install.
7. You might want to use check_plain on some text you puts out in HTML.
- - - - -
Havn't checked all the code, so there could be more similar errors in more places so please look over all your code and correct them.
Comment #8
mossy2100Thanks Scyther - I only just saw this, for some reason I'm not getting notified when a comment is added.
Thanks for the feedback. I will make the necessary changed.
The problem that I've found with using drupal_add_js() when creating a form is that if validation fails and the form is re-displayed, the JS doesn't get included again. I believe this is because the form array is remembered in a session variable, but any added JS or CSS files are not. So I have developed a workaround for this by simply adding type='markup' elements with the necessary
or tags. I will look for a better solution using drupal_add_css() and drupal_add_js(), but if I've missed anything please let me know. Cheers, ShaunComment #9
zzolo commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #10
mossy2100Hi
I am still interested in contributing code to Drupal. The classes module, which I originally applied with, is still in development, so don't worry about that at the moment. However, I have another small module I would like to contribute called "select_province" - attached.
Comment #11
avpadernoThis queue is not used anymore. Please see Migrating from CVS Applications to (Git) Full Project Applications, and Applying for permission to create full projects to understand how to proceed.